Socket
Socket
Sign inDemoInstall

snyk-policy

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-policy - npm Package Compare versions

Comparing version 1.22.0 to 1.22.1

11

lib/index.js

@@ -231,12 +231,1 @@ const fs = require('promise-fs');

}
/* istanbul ignore if */
if (!module.parent) {
load(process.argv[2])
.then(function (res) {
console.log(JSON.stringify(res, '', 2));
})
.catch(function (e) {
console.log(e.stack);
});
}

9

lib/parser/index.js

@@ -1,2 +0,1 @@

const path = require('path');
const cloneDeep = require('lodash.clonedeep');

@@ -6,2 +5,3 @@ const semver = require('semver');

const addComments = require('./add-comments');
const { version: versionFromPackageJson } = require('../../package.json');

@@ -70,7 +70,4 @@ module.exports = {

function version() {
const filename = path.resolve(__dirname, '..', '..', 'package.json');
const version = require(filename).version;
if (version && version !== '0.0.0') {
return 'v' + version;
if (versionFromPackageJson && versionFromPackageJson !== '0.0.0') {
return 'v' + versionFromPackageJson;
}

@@ -77,0 +74,0 @@

@@ -46,3 +46,3 @@ {

},
"version": "1.22.0"
"version": "1.22.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