Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snyk

Package Overview
Dependencies
Maintainers
2
Versions
1964
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.9.4-alpha2 to 1.10.0

13

lib/protect.js

@@ -580,10 +580,9 @@ var protect = module.exports = {

function generatePolicy(policy, tasks, live) {
var promises = ['ignore', 'update', 'patch'].filter(function (task) {
return tasks[task].length;
}).map(function (task) {
return protect[task](tasks[task], live);
});
var promises = [
protect.ignore(tasks.ignore, live),
protect.update(tasks.update, live),
protect.patch(tasks.patch, live),
log(tasks, live),
];
promises.push(log(tasks, live));
return Promise.all(promises).then(function (res) {

@@ -590,0 +589,0 @@ // we're squashing the arrays of arrays into a flat structure

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

"main": "lib/index.js",
"version":"1.9.4-alpha2",
"directories": {

@@ -16,3 +15,3 @@ "test": "test"

"lint": "jscs cli/*.js cli/**/*.js lib/*.js -v",
"test": "npm run check-tests && npm run lint && tap test/*.test.js --cov --timeout=60 && node cli/index.js test > /dev/null",
"test": "npm run check-tests && npm run lint && tap test/*.test.js --timeout=60 && node cli/index.js test > /dev/null",
"check-tests": "! grep 'test.only' test/*.test.js -n",

@@ -74,3 +73,4 @@ "watch": "nodemon -q -x 'for FILE in test/*.test.js; do echo $FILE; tape $FILE | tap-spec; if [ $? -ne 0 ]; then exit 1; fi; done'",

},
"snyk": true
}
"snyk": true,
"version": "1.10.0"
}
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