New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

snyk

Package Overview
Dependencies
Maintainers
2
Versions
1969
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk - npm Package Compare versions

Comparing version 1.6.1-alpha4 to 1.6.1-alpha5

.nyc_output/32305.json

8

cli/commands/protect/prompts.js

@@ -45,3 +45,2 @@ module.exports = {

// we should have the same module, so the depth should be the same
debug('sorting by upgradePath', a.upgradePath[1], b.upgradePath[1]);
if (a.upgradePath[1] && b.upgradePath[1]) {

@@ -129,3 +128,2 @@ // put upgrades ahead of patches

var last = curr.from.slice(-1).pop();
debug('last: %s',last);
if (!acc[last]) {

@@ -139,3 +137,2 @@ // only copy the biggest change

var upgrades = curr.upgradePath[1];
debug(upgrades && curr.patches.length, upgrades, curr.patches.length);
// otherwise it's a patch and that's hidden for now

@@ -193,3 +190,3 @@ if (!upgrades && curr.patches.length) {

if (!curr.patches) {
if (!curr.patches || curr.patches.length === 0) {
return false;

@@ -217,3 +214,3 @@ }

// if there's any upgrade available
if (vuln.upgradePath && vuln.upgradePath.slice(-1).shift()) {
if (vuln.upgradePath && vuln.upgradePath[1]) {
return false;

@@ -263,3 +260,2 @@ }

var upgrades = curr.upgradePath.slice(-1).shift();
debug('upgrade available? %s', upgrades && curr.upgradePath[1]);
// otherwise it's a patch and that's hidden for now

@@ -266,0 +262,0 @@ if (upgrades && curr.upgradePath[1]) {

@@ -55,3 +55,4 @@ var Promise = require('es6-promise').Promise; // jshint ignore:line

// otherwise send the error message back
message = codes[error.code || error.message];
message = codes[error.code || error.message] ||
errors[error.code || error.message];
if (message) {

@@ -58,0 +59,0 @@ message = message.replace(/(%s)/g, error.message);

module.exports = snyk;
var cluster = require('cluster');
var hook = require('./hook');
// var hook = require('./hook');

@@ -29,3 +29,3 @@ function snyk(options) {

snyk.monitor.capture();
hook();
// hook();
}

@@ -32,0 +32,0 @@

@@ -5,3 +5,3 @@ {

"main": "lib/index.js",
"version": "1.6.1-alpha4",
"version": "1.6.1-alpha5",
"directories": {

@@ -8,0 +8,0 @@ "test": "test"

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