Comparing version 1.9.4-alpha2 to 1.10.0
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
145057
55
3786