MCPcopy Create free account
hub / github.com/fontsource/fontsource / getPackageFile

Function getPackageFile

api/container/src/artifacts.ts:43–53  ·  view source on GitHub ↗
(
	files: ReadonlyMap<string, Uint8Array>,
	filename: string,
)

Source from the content-addressed store, hash-verified

41});
42
43const getPackageFile = (
44 files: ReadonlyMap<string, Uint8Array>,
45 filename: string,
46): Uint8Array => {
47 const bytes = files.get(filename);
48 if (!bytes) {
49 throw new Error(`Expected npm package file "${filename}" was not found`);
50 }
51
52 return bytes;
53};
54
55const uploadArtifacts = (
56 artifacts: readonly BuiltArtifact[],

Callers 1

buildDownloadArtifactsFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected