physical.PACKAGE_DIRconstno test imports itconst PACKAGE_DIR: stringThe folder of the package: the one the loader of grc reads.
The files of the package: from the two catalogs to the text of each file, with the manifest's digests, and the folder where they are kept. Making is pure; reading and writing the folder is the tool's.
import { PACKAGE_DIR } from "./package.ts";
PACKAGE_DIR.endsWith("data"); // truephysical.PACKAGE_DIRconstno test imports itconst PACKAGE_DIR: stringThe folder of the package: the one the loader of grc reads.
physical.makePackagefunctionno test imports itfunction makePackage(catalogs: Readonly<Record<"800-171" | "800-53", Catalog>>, printed: Readonly<Record<"800-171a" | "800-171r2", string>>): Promise<ReadonlyMap<string, string>>The text of every file of the package, by its path, from the catalogs by source id and the text of the two printed publications of Revision 2 (pdftotext -raw of each).
physical.digestOffunctionno test imports itfunction digestOf(bytes: Uint8Array<ArrayBufferLike>): Promise<string>The SHA-256 of the bytes of a source file, as the package pins it.
PACKAGE_DIRconstconst PACKAGE_DIR: stringThe folder of the package: the one the loader of grc reads.
makePackagefunctionfunction makePackage(catalogs: Readonly<Record<"800-171" | "800-53", Catalog>>, printed: Readonly<Record<"800-171a" | "800-171r2", string>>): Promise<ReadonlyMap<string, string>>The text of every file of the package, by its path, from the catalogs by source id and the text of the two printed publications of Revision 2 (pdftotext -raw of each).
digestOffunctionno test imports itfunction digestOf(bytes: Uint8Array<ArrayBufferLike>): Promise<string>The SHA-256 of the bytes of a source file, as the package pins it.