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.5.0-alpha6 to 1.5.0-alpha7

18

cli/commands/protect/prompts.js

@@ -146,3 +146,3 @@ module.exports = {

var upgrades = curr.upgradePath.slice(-1).shift();
var upgrades = curr.upgradePath[1];
if (upgrades) { // otherwise it's a patch and that's hidden for now

@@ -186,10 +186,10 @@ var p = moduleToObject(upgrades);

// console.log(JSON.stringify(res.map(function (vuln) {
// // return vuln.patches;
// return {
// from: vuln.from.slice(1).filter(Boolean).shift(),
// upgrade: vuln.upgradePath.slice(-1).shift(),
// group: vuln.grouped
// };
// }), '', 2));
console.log(JSON.stringify(res.map(function (vuln) {
// return vuln.patches;
return {
from: vuln.from.slice(1).filter(Boolean).shift(),
upgrade: (vuln.grouped || {}).upgrades,
group: vuln.grouped
};
}), '', 2));

@@ -196,0 +196,0 @@ var prompts = generatePrompt(res, policy);

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

"main": "lib/index.js",
"version": "1.5.0-alpha6",
"version": "1.5.0-alpha7",
"directories": {

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

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