Socket
Socket
Sign inDemoInstall

snyk-resolve-deps

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-resolve-deps - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

.nyc_output/3070.json

8

lib/pluck.js

@@ -6,2 +6,3 @@ module.exports = pluck;

var debug = require('debug')('snyk:resolve:pluck');
var parseOptions = { loose: true };

@@ -17,3 +18,3 @@ function pluck(root, path, name, range) {

var from = path.slice(0);
var rootPath = moduleToObject(from.shift()).name;
var rootPath = moduleToObject(from.shift(), parseOptions).name;

@@ -27,3 +28,4 @@ // if the root of the virtual tree doesn't even match our path, bail out

// we're looking for, and if it's not, push it on
if (from.length !== 0 && moduleToObject(from.slice(-1).pop()).name === name) {
if (from.length !== 0 &&
moduleToObject(from.slice(-1).pop(), parseOptions).name === name) {
from.pop();

@@ -43,3 +45,3 @@ }

while (from.length) {
var pkg = moduleToObject(from[0]);
var pkg = moduleToObject(from[0], parseOptions);
var test = getMatch(leaf, pkg.name, pkg.version);

@@ -46,0 +48,0 @@

@@ -26,3 +26,3 @@ {

"sinon": "^1.17.3",
"snyk-resolve-deps-fixtures": "^1.1.5",
"snyk-resolve-deps-fixtures": "^1.1.6",
"tap": "^5.1.1",

@@ -42,3 +42,3 @@ "tap-only": "0.0.5",

"semver": "^5.1.0",
"snyk-module": "^1.5.0",
"snyk-module": "^1.6.0",
"snyk-resolve": "^1.0.0",

@@ -53,3 +53,3 @@ "snyk-tree": "^1.0.0",

},
"version": "1.5.1"
"version": "1.5.2"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc