Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
hashOfOwnFiles,
hashOfLockFile
])
.then(hashes => hashes.filter(notEmpty))
.then(hashes => createHash(hashes));
logger.profile("hasher:calculateHash");
// 2. Create hash to be stored in the package. Used to communicate the state
// of the package to dependent packages (parents)
await Promise.all([...hashOfDependencies, hashOfOwnFiles, hashOfLockFile])
.then(hashes => hashes.filter(notEmpty))
.then(hashes => createHash(hashes))
.then(hash => this.writeHashToDisk(hash));
logger.setHash(packageHash);
return packageHash;
}
}
done.push(packageHash);
}
const internalPackagesHash = generateHashOfInternalPackages(done);
const buildCommandHash = await hashStrings(this.buildCommandSignature);
const combinedHash = await hashStrings([
internalPackagesHash,
buildCommandHash
]);
logger.verbose(`Hash of internal packages: ${internalPackagesHash}`);
logger.verbose(`Hash of build command: ${buildCommandHash}`);
logger.verbose(`Combined hash: ${combinedHash}`);
logger.profile("hasher:calculateHash");
logger.setHash(combinedHash);
return combinedHash;
}