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

dependency-tree

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-tree - npm Package Compare versions

Comparing version 5.8.0 to 5.9.0

9

package.json
{
"name": "dependency-tree",
"version": "5.8.0",
"version": "5.9.0",
"description": "Get the dependency tree of a module",

@@ -27,3 +27,4 @@ "main": "index.js",

"sass",
"stylus"
"stylus",
"less"
],

@@ -39,4 +40,4 @@ "author": "Joel Kemp <joel@mrjoelkemp.com>",

"debug": "~2.2.0",
"filing-cabinet": "^1.6.1",
"precinct": "^3.5.2"
"filing-cabinet": "^1.7.0",
"precinct": "^3.6.0"
},

@@ -43,0 +44,0 @@ "devDependencies": {

@@ -7,2 +7,8 @@ ### dependency-tree [![npm](http://img.shields.io/npm/v/dependency-tree.svg)](https://npmjs.org/package/dependency-tree) [![npm](http://img.shields.io/npm/dm/dependency-tree.svg)](https://npmjs.org/package/dependency-tree)

* Works for JS (AMD, CommonJS, ES6 modules) and CSS preprocessors (Sass, Stylus, and Less); basically, any module type supported by [Precinct](https://github.com/mrjoelkemp/node-precinct).
- For CommonJS modules, 3rd party dependencies (npm installed dependencies) are included in the tree by default
- Dependency path resolutions are handled by [filing-cabinet](https://github.com/mrjoelkemp/node-filing-cabinet)
- Supports RequireJS and Webpack loaders
* All core Node modules (assert, path, fs, etc) are removed from the dependency list by default
### Usage

@@ -32,8 +38,2 @@

* Works for JS (AMD, CommonJS, ES6 modules) and CSS preprocessors (Sass, Stylus); basically, any module type supported by [Precinct](https://github.com/mrjoelkemp/node-precinct).
- For CommonJS modules, 3rd party dependencies (npm installed dependencies) are included in the tree by default
- Dependency path resolutions are handled by [filing-cabinet](https://github.com/mrjoelkemp/node-filing-cabinet)
- Supports RequireJS and Webpack loaders
* All core Node modules (assert, path, fs, etc) are removed from the dependency list by default
#### Options

@@ -40,0 +40,0 @@

@@ -56,2 +56,15 @@ import assert from 'assert';

function mockLess() {
mockfs({
[__dirname + '/example/less']: {
'a.less': `
@import "b.css";
@import "c.less";
`,
'b.css': 'body { color: blue; }',
'c.less': 'body { color: pink; }'
}
});
}
function mockes6() {

@@ -577,2 +590,11 @@ mockfs({

});
describe('less', function() {
beforeEach(function() {
mockLess();
});
testToList('less', '.less');
});
});

@@ -579,0 +601,0 @@ });

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