Socket
Socket
Sign inDemoInstall

snyk-php-plugin

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-php-plugin - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

14

lib/composer.js

@@ -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"}
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