Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snyk

Package Overview
Dependencies
Maintainers
2
Versions
1964
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1-alpha1

.nyc_output/62842.json

34

cli/index.js

@@ -9,3 +9,3 @@ #!/usr/bin/env node

args.method.apply(null, args.options._).then(function (result) {
var cli = args.method.apply(null, args.options._).then(function (result) {
var analytics = require('../lib/analytics');

@@ -28,4 +28,5 @@ var res = analytics({

analytics.add('error', error.stack);
analytics.add('command', args.command);
var res = analytics({
command: args.command,
command: 'cli-bad-command',
args: args.options._,

@@ -53,18 +54,23 @@ });

console.log('super fail', e.stack);
}).then(function () {
if (exitcode) {
process.exit(1);
}).then(function (res) {
if (!process.env.TAP && exitcode) {
return process.exit(1);
}
return res;
});
debug('checking for cli updates');
// finally, check for available update and returns an instance
var defaults = require('lodash').defaults;
var pkg = require('../package.json');
if (module.parent) {
module.exports = cli;
} else {
debug('checking for cli updates');
// finally, check for available update and returns an instance
var defaults = require('lodash').defaults;
var pkg = require('../package.json');
// only run if we're not inside an npm.script
if (!process.env['npm_config_node_version']) { // jshint ignore:line
require('update-notifier')({
pkg: defaults(pkg, { version: '0.0.0' }),
}).notify();
// only run if we're not inside an npm.script
if (!process.env['npm_config_node_version']) { // jshint ignore:line
require('update-notifier')({
pkg: defaults(pkg, { version: '0.0.0' }),
}).notify();
}
}

@@ -38,3 +38,4 @@ module.exports = analytics;

// ths applies to all sending to protect user's privacy
if (snyk.config.get('disable-analytics')) {
if (snyk.config.get('disable-analytics') || config.DISABLE_ANALYTICS) {
debug('analytics disabled');
return Promise.resolve();

@@ -41,0 +42,0 @@ }

@@ -580,9 +580,10 @@ var protect = module.exports = {

function generatePolicy(policy, tasks, live) {
var promises = [
protect.ignore(tasks.ignore, live),
protect.update(tasks.update, live),
protect.patch(tasks.patch, live),
log(tasks, live),
];
var promises = ['ignore', 'update', 'patch'].filter(function (task) {
return tasks[task].length;
}).map(function (task) {
return protect[task](tasks[task], live);
});
promises.push(log(tasks, live));
return Promise.all(promises).then(function (res) {

@@ -589,0 +590,0 @@ // we're squashing the arrays of arrays into a flat structure

{
"name": "snyk",
"description": "snyk library and cli utility",
"version": "1.11.1-alpha1",
"main": "lib/index.js",

@@ -57,3 +58,3 @@ "directories": {

"nodemon": "^1.3.7",
"proxyquire": "^1.7.3",
"proxyquire": "^1.7.4",
"restify": "^4.0.4",

@@ -70,4 +71,3 @@ "semantic-release": "^4.3.5",

},
"snyk": true,
"version": "1.11.0"
}
"snyk": true
}

Sorry, the diff of this file is not supported yet

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