Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const externalDeoendencies = resolveExternalDependencies(
allDependencies,
workspaces,
yarnLock
);
const resolvedDependencies = [
...internalDependencies,
...externalDeoendencies
];
const filesHash = await generateHashOfFiles(packageRoot);
const dependenciesHash = hashStrings(resolvedDependencies);
logger.silly(name);
logger.silly(` ${filesHash} (fileHash)`);
logger.silly(` ${dependenciesHash} (dependenciesHash)`);
const packageHash = {
name,
filesHash,
dependenciesHash,
internalDependencies
};
return packageHash;
}
.on("all", (event, filePath) => {
const logLine = `${filePath} (${event})`;
logger.silly(`[audit] File change: ${logLine}`);
if (!anymatch(cacheFolderGlob, filePath)) {
changedFilesOutsideScope.push(logLine);
} else {
changedFilesInsideScope.push(logLine);
}
});
}
const externalDeoendencies = resolveExternalDependencies(
allDependencies,
workspaces,
yarnLock
);
const resolvedDependencies = [
...internalDependencies,
...externalDeoendencies
];
const filesHash = await generateHashOfFiles(packageRoot);
const dependenciesHash = hashStrings(resolvedDependencies);
logger.silly(name);
logger.silly(` ${filesHash} (fileHash)`);
logger.silly(` ${dependenciesHash} (dependenciesHash)`);
const packageHash = {
name,
filesHash,
dependenciesHash,
internalDependencies
};
return packageHash;
}
}).then(result => {
logger.silly("getHashOfOwnFiles:", result);
return result.hash;
});
}
return this.getPackageHash(dependencyPath, dependency).then(hash => {
logger.silly(`getHashOfDependencies: ${dependency}: ${hash}`);
return hash;
});
} else {