snyk-php-plugin
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -78,6 +78,7 @@ var fs = require('fs'); | ||
function generateJsonReport( | ||
fileName, composerJsonObj, composerLockObj, systemVersions) { | ||
basePath, fileName, composerJsonObj, composerLockObj, systemVersions) { | ||
var composerLockObjPackages = composerLockObj.packages; | ||
var applicationName = composerJsonObj.name; | ||
var applicationName = composerJsonObj.name || getDefaultProjectName( | ||
path.join(basePath, fileName) | ||
); | ||
var applicationVersion = getVersion(composerJsonObj) || | ||
@@ -104,2 +105,9 @@ '0.0.0'; | ||
function getDefaultProjectName(manifestPath) { | ||
return path.dirname( | ||
path.resolve(manifestPath)) | ||
.split(path.sep) | ||
.pop(); | ||
} | ||
module.exports = { | ||
@@ -106,0 +114,0 @@ loadJsonFile: loadJsonFile, |
@@ -32,3 +32,3 @@ var debug = require('debug')('snyk'); | ||
var ret = generateJsonReport( | ||
fileName, composerJsonObj, composerLockObj, systemVersions); | ||
basePath, fileName, composerJsonObj, composerLockObj, systemVersions); | ||
return Promise.resolve(ret); | ||
@@ -35,0 +35,0 @@ } |
@@ -1,1 +0,1 @@ | ||
{"name":"snyk-php-plugin","description":"Snyk CLI PHP plugin","main":"lib/index.js","scripts":{"lint":"npm run eslint","eslint":"./node_modules/.bin/eslint -c .eslintrc lib test","test-functional":"tap test/**/*test.js -R spec","test":"npm run test-functional","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"files":["lib"],"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","lodash":"^4.17.5"},"devDependencies":{"eslint":"^4.11.0","semantic-release":"^8.2.0","sync-request":"^3","tap":"^10.7.3"},"version":"1.5.0"} | ||
{"name":"snyk-php-plugin","description":"Snyk CLI PHP plugin","main":"lib/index.js","scripts":{"lint":"npm run eslint","eslint":"./node_modules/.bin/eslint -c .eslintrc lib test","test-functional":"tap test/**/*test.js -R spec","test":"npm run test-functional","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"files":["lib"],"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","lodash":"^4.17.5","path":"0.12.7"},"devDependencies":{"eslint":"^4.11.0","semantic-release":"^8.2.0","sync-request":"^3","tap":"^10.7.3"},"version":"1.5.1"} |
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
19510
190
3
+ Addedpath@0.12.7
+ Addedinherits@2.0.3(transitive)
+ Addedpath@0.12.7(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedutil@0.10.4(transitive)