feat: complete actor handoff and piloted aircraft presence
This commit is contained in:
@@ -48,6 +48,14 @@ for (const [path, entry] of Object.entries(lock.packages ?? {})) {
|
||||
if (typeof resolved === "string" && /^(?:git\+|github:|gitlab:|bitbucket:)/i.test(resolved)) {
|
||||
problems.push(`${path}: source dependency ${resolved} is not a registry artifact`);
|
||||
}
|
||||
if (path.startsWith("node_modules/") && entry.link !== true) {
|
||||
if (typeof resolved !== "string" || !/^https:\/\/registry\.npmjs\.org\//.test(resolved)) {
|
||||
problems.push(`${path}: dependency is not pinned to the npm registry in package-lock.json`);
|
||||
}
|
||||
if (typeof entry.integrity !== "string" || !/^sha(?:256|384|512)-/.test(entry.integrity)) {
|
||||
problems.push(`${path}: dependency has no recognized lockfile integrity hash`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (problems.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user