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
1967
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 0.4.0-alpha1 to 0.4.0-alpha2

2

cli/commands/protect.js

@@ -105,2 +105,3 @@ module.exports = protect;

if (vuln.patches && vuln.patches.length) {

@@ -113,2 +114,3 @@ // check that the version we have has a patch available

debug(patches);
if (patches !== null) {

@@ -115,0 +117,0 @@ debug('%s@%s', vuln.name, vuln.version, patches);

2

lib/protect.js

@@ -445,3 +445,3 @@ var protect = module.exports = {

if (semver.satisfies(vuln.version, patch.version)) {
return (patch.files || []).length ? patch : false;
return (patch.urls || []).length ? patch : false;
}

@@ -448,0 +448,0 @@ return false;

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

"main": "lib/index.js",
"version": "0.4.0-alpha1",
"version": "0.4.0-alpha2",
"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