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

neuron-tree

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neuron-tree - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

22

index.js

@@ -17,2 +17,3 @@ 'use strict';

// - cwd {path}
// - ignore_shrink_file {Boolean=false}
function tree (pkg, options, callback) {

@@ -63,2 +64,13 @@ options || (options = {});

var keys = options.dependencyKeys;
var shrink_options = {
stableOnly: true,
async: ~keys.indexOf('asyncDependencies'),
dev: ~keys.indexOf('devDependencies')
};
if (options.ignore_shrink_file) {
return shrinkwrap(pkg, options.built_root, shrink_options, callback);
}
fs.exists(shrinkwrap_json, function(exists) {

@@ -68,11 +80,3 @@ if (exists) {

}
var keys = options.dependencyKeys;
shrinkwrap(pkg, options.built_root, {
stableOnly: true,
async: ~keys.indexOf('asyncDependencies'),
dev: ~keys.indexOf('devDependencies')
}, callback);
shrinkwrap(pkg, options.built_root, shrink_options, callback);
});

@@ -79,0 +83,0 @@ };

{
"name": "neuron-tree",
"version": "2.0.1",
"version": "2.0.2",
"description": "Generates the config.tree of neuron",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -50,2 +50,3 @@ # neuron-tree [![NPM version](https://badge.fury.io/js/neuron-tree.svg)](http://badge.fury.io/js/neuron-tree) [![Build Status](https://travis-ci.org/cortexjs/neuron-tree.svg?branch=master)](https://travis-ci.org/cortexjs/neuron-tree) [![Dependency Status](https://gemnasium.com/cortexjs/neuron-tree.svg)](https://gemnasium.com/cortexjs/neuron-tree)

- dependencyKeys `Array=['dependencies', 'asyncDependencies']`
- ignore_shrink_file `Boolean=false` if true, `neuron-tree` will always generate new shrinkwrap tree.

@@ -52,0 +53,0 @@ ##### dependencyKeys

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