@lavamoat/aa
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "@lavamoat/aa", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"main": "src/index.js", | ||
@@ -28,3 +28,3 @@ "license": "MIT", | ||
"author": "kumavis", | ||
"gitHead": "dabfe6850e3e2668a148c10307d441f6fe24b199" | ||
"gitHead": "71758e5b9afa95e2eec40998c039356bf7a5d7cd" | ||
} |
@@ -66,4 +66,11 @@ const { readFileSync } = require('fs') | ||
// for each cache lookup. | ||
depPackageJsonPath = resolve.sync(depRelativePackageJsonPath, { basedir: packageDir }) | ||
depPackageJsonPathCache.set(key, depPackageJsonPath) | ||
try { | ||
depPackageJsonPath = resolve.sync(depRelativePackageJsonPath, { basedir: packageDir }) | ||
depPackageJsonPathCache.set(key, depPackageJsonPath) | ||
} catch (err) { | ||
if (!err.message.includes('Cannot find module')) { | ||
throw err | ||
} | ||
depPackageJsonPath = null | ||
} | ||
return depPackageJsonPath | ||
@@ -86,2 +93,5 @@ } | ||
...Object.keys(packageJson.dependencies || {}), | ||
...Object.keys(packageJson.optionalDependencies || {}), | ||
...Object.keys(packageJson.peerDependencies || {}), | ||
...Object.keys(packageJson.bundledDependencies || {}), | ||
...Object.keys(includeDevDeps ? packageJson.devDependencies || {} : {}), | ||
@@ -104,2 +114,6 @@ ] | ||
depPackageJsonPath = memoResolveSync(resolve, depName, packageDir) | ||
// ignore unresolved deps | ||
if (depPackageJsonPath === null) { | ||
continue | ||
} | ||
const childPackageDir = path.dirname(depPackageJsonPath) | ||
@@ -106,0 +120,0 @@ // avoid cycles, but still visit the same package |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15240
231
18045