pkgs-graph
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -7,2 +7,3 @@ "use strict"; | ||
const R = require("ramda"); | ||
const npa = require("npm-package-arg"); | ||
const oneLine = commonTags.oneLine; | ||
@@ -24,2 +25,12 @@ const highlight = chalk.yellow; | ||
.map(depName => { | ||
const spec = npa.resolve(depName, dependencies[depName], pkg.path); | ||
if (spec.type === 'directory') { | ||
const matchedPkg = R.values(pkgMap).find(pkg => pkg.path === spec.fetchSpec); | ||
if (!matchedPkg) { | ||
return ''; | ||
} | ||
return createPkgSpec(matchedPkg); | ||
} | ||
if (spec.type !== 'version' && spec.type !== 'range') | ||
return ''; | ||
const range = dependencies[depName]; | ||
@@ -26,0 +37,0 @@ const pkgs = R.values(pkgMap).filter(pkg => pkg.manifest.name === depName); |
{ | ||
"name": "pkgs-graph", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Create a graph from an array of packages", | ||
@@ -40,2 +40,3 @@ "main": "lib/index.js", | ||
"find-packages": "^2.0.0", | ||
"npm-package-arg": "^5.1.2", | ||
"ramda": "^0.23.0", | ||
@@ -42,0 +43,0 @@ "semver": "^5.3.0", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10236
98
0
12
+ Addednpm-package-arg@^5.1.2
+ Addedbuiltins@1.0.3(transitive)
+ Addednpm-package-arg@5.1.2(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)
+ Addedvalidate-npm-package-name@3.0.0(transitive)