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.5.2 to 5.5.3

4

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

@@ -35,3 +35,3 @@ "main": "index.js",

"debug": "~2.2.0",
"filing-cabinet": "^1.4.1",
"filing-cabinet": "^1.5.0",
"precinct": "^3.1.1"

@@ -38,0 +38,0 @@ },

@@ -64,2 +64,3 @@ import assert from 'assert';

'jsx.js': `import c from './c';\n export default <jsx />;`,
'foo.jsx': `import React from 'react';\n import b from 'b';\n export default <jsx />;`,
'es7.js': `import c from './c';\n export default async function foo() {};`

@@ -353,2 +354,12 @@ }

it('resolves files with a jsx extension', function() {
const filename = `${this._directory}/foo.jsx`;
const {[filename]: tree} = dependencyTree({
filename,
directory: this._directory
});
assert.ok(tree[`${this._directory}/b.js`]);
});
it('resolves files that have es7', function() {

@@ -355,0 +366,0 @@ const filename = `${this._directory}/es7.js`;

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