Socket
Socket
Sign inDemoInstall

snyk-resolve-deps

Package Overview
Dependencies
Maintainers
2
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 4.5.0 to 4.6.0

4

dist/logical.js

@@ -9,3 +9,3 @@ "use strict";

const colour = require("ansicolors");
const moduleToObject = require("snyk-module");
const snyk_module_1 = require("snyk-module");
const util = require("util");

@@ -89,3 +89,3 @@ const format = util.format;

let leafPath = (from || []).slice(1, -1).map(function (pkg) {
return moduleToObject(pkg).name;
return snyk_module_1.parsePackageString(pkg).name;
});

@@ -92,0 +92,0 @@ let entry = tree.dependencies;

"use strict";
const semver = require("semver");
const moduleToObject = require("snyk-module");
const snyk_module_1 = require("snyk-module");
const debugModule = require("debug");

@@ -15,3 +15,3 @@ const debug = debugModule('snyk:resolve:pluck');

let from = path.slice(0);
let rootPath = moduleToObject(from.shift(), parseOptions).name;
let rootPath = snyk_module_1.parsePackageString(from.shift(), parseOptions).name;
// if the root of the virtual tree doesn't even match our path, bail out

@@ -24,3 +24,3 @@ if (rootPath !== root.name) {

if (from.length !== 0 &&
moduleToObject(from.slice(-1).pop(), parseOptions).name === name) {
snyk_module_1.parsePackageString(from.slice(-1).pop(), parseOptions).name === name) {
from.pop();

@@ -36,3 +36,3 @@ }

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

@@ -39,0 +39,0 @@ if (test) {

@@ -47,3 +47,3 @@ {

"semver": "^5.5.1",
"snyk-module": "^1.6.0",
"snyk-module": "^3.1.0",
"snyk-resolve": "^1.0.0",

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

},
"version": "4.5.0"
"version": "4.6.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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