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

Function handleHash

packages/publish/src/changed.ts:16–27  ·  view source on GitHub ↗
(packagePath: string, packageJson: PackageJson)

Source from the content-addressed store, hash-verified

14 const queue = new PQueue({ concurrency: 4 });
15
16 const handleHash = async (packagePath: string, packageJson: PackageJson) => {
17 // Get hash of current package and compare with old hash
18 const hash = await getHash(packagePath);
19 if (packageJson.publishHash !== hash || ctx.force) {
20 changedList.push({
21 name: packageJson.name,
22 hash,
23 path: packagePath,
24 version: packageJson.version,
25 });
26 }
27 };
28
29 for (const packageDir of ctx.packages) {
30 const packages = await getPackages(packageDir);

Callers 1

getChangedFunction · 0.85

Calls 1

getHashFunction · 0.90

Tested by

no test coverage detected