snyk-php-plugin
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -13,2 +13,6 @@ var debug = require('debug')('snyk'); | ||
composerLockObj = loadJsonFile(basePath, fileName); | ||
// throw an error if improper lockfile received | ||
if (typeof composerLockObj.packages !== 'object') { | ||
throw new Error('Invalid lock file ' + basePath + '/' + fileName); | ||
} | ||
// we want to load the json file as well; usually composer.json | ||
@@ -19,3 +23,3 @@ composerJsonObj = loadJsonFile(basePath, | ||
debug(error.message); | ||
return Promise.reject(new Error('Unable to parse manifest files')); | ||
return Promise.reject(error || new Error('Unable to parse manifest files')); | ||
} | ||
@@ -22,0 +26,0 @@ var ret = generateJsonReport(fileName, composerJsonObj, composerLockObj); |
@@ -1,1 +0,1 @@ | ||
{"name":"snyk-php-plugin","description":"Snyk CLI PHP plugin","main":"lib/index.js","scripts":{"build":"mkdir dist; lodash -p -o ./dist/lodash-min.js include=get,find,clone","lint":"npm run eslint","eslint":"./node_modules/.bin/eslint -c .eslintrc lib test","test-functional":"tap `find ./test -name '*.test.js'` -R spec","test":"npm run test-functional","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"files":["lib","dist"],"homepage":"https://github.com/snyk/snyk-php-plugin","repository":{"type":"git","url":"https://github.com/snyk/snyk-php-plugin"},"author":"snyk.io","license":"Apache-2.0","dependencies":{"debug":"^3.1.0"},"devDependencies":{"lodash-cli":"^4.17.4","eslint":"^4.11.0","tap":"^10.7.3","semantic-release":"^8.2.0"},"version":"1.1.2"} | ||
{"name":"snyk-php-plugin","description":"Snyk CLI PHP plugin","main":"lib/index.js","scripts":{"build":"mkdir dist; lodash -p -o ./dist/lodash-min.js include=get,find,clone","lint":"npm run eslint","eslint":"./node_modules/.bin/eslint -c .eslintrc lib test","test-functional":"tap `find ./test -name '*.test.js'` -R spec","test":"npm run test-functional","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"files":["lib","dist"],"homepage":"https://github.com/snyk/snyk-php-plugin","repository":{"type":"git","url":"https://github.com/snyk/snyk-php-plugin"},"author":"snyk.io","license":"Apache-2.0","dependencies":{"debug":"^3.1.0"},"devDependencies":{"lodash-cli":"^4.17.4","eslint":"^4.11.0","tap":"^10.7.3","semantic-release":"^8.2.0"},"version":"1.2.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
35208
194