dependency-tree
Advanced tools
Comparing version 5.5.2 to 5.5.3
{ | ||
"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`; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27398
702
Updatedfiling-cabinet@^1.5.0