detective-typescript
Advanced tools
Comparing version 5.8.0 to 6.0.0
@@ -41,5 +41,5 @@ 'use strict'; | ||
switch (node.type) { | ||
case 'Import': | ||
if (node.parent && node.parent.type === 'CallExpression' && node.parent.arguments.length) { | ||
dependencies.push(node.parent.arguments[0].value); | ||
case 'ImportExpression': | ||
if (node.parent && node.parent.type === 'ExpressionStatement' && node.parent.expression.source.type === 'Literal') { | ||
dependencies.push(node.parent.expression.source.value); | ||
} | ||
@@ -46,0 +46,0 @@ break; |
{ | ||
"name": "detective-typescript", | ||
"version": "5.8.0", | ||
"version": "6.0.0", | ||
"author": "Patrik Henningsson <patrik.henningsson@gmail.com>", | ||
@@ -23,3 +23,3 @@ "description": "Get the dependencies of a TypeScript module", | ||
"engines": { | ||
"node": ">=6.0" | ||
"node": "^10.13 || >=12.0.0" | ||
}, | ||
@@ -29,11 +29,11 @@ "license": "MIT", | ||
"dependencies": { | ||
"@typescript-eslint/typescript-estree": "^2.29.0", | ||
"ast-module-types": "^2.6.0", | ||
"@typescript-eslint/typescript-estree": "^4.8.2", | ||
"ast-module-types": "^2.7.1", | ||
"node-source-walk": "^4.2.0", | ||
"typescript": "^3.8.3" | ||
"typescript": "^3.9.7" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^6.8.0", | ||
"mocha": "^7.1.1" | ||
"eslint": "^7.14.0", | ||
"mocha": "^8.2.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
5494
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Added@typescript-eslint/types@4.33.0(transitive)
+ Added@typescript-eslint/typescript-estree@4.33.0(transitive)
+ Added@typescript-eslint/visitor-keys@4.33.0(transitive)
+ Addedarray-union@2.1.0(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addeddir-glob@3.0.1(transitive)
+ Addedeslint-visitor-keys@2.1.0(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedglobby@11.1.0(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedslash@3.0.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
- Removed@typescript-eslint/typescript-estree@2.34.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedeslint-visitor-keys@1.3.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedlodash@4.17.21(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedast-module-types@^2.7.1
Updatedtypescript@^3.9.7