detective-typescript
Advanced tools
Comparing version 5.7.0 to 5.8.0
@@ -19,2 +19,3 @@ 'use strict'; | ||
// https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html#import-types | ||
// https://www.typescriptlang.org/v2/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export | ||
const skipTypeImports = Boolean(options.skipTypeImports); | ||
@@ -47,2 +48,5 @@ // Remove skipTypeImports option, as this option may not be recognized by the walker/parser | ||
case 'ImportDeclaration': | ||
if (skipTypeImports && node.importKind == 'type') { | ||
break; | ||
} | ||
if (node.source && node.source.value) { | ||
@@ -49,0 +53,0 @@ dependencies.push(node.source.value); |
{ | ||
"name": "detective-typescript", | ||
"version": "5.7.0", | ||
"version": "5.8.0", | ||
"author": "Patrik Henningsson <patrik.henningsson@gmail.com>", | ||
@@ -28,11 +28,11 @@ "description": "Get the dependencies of a TypeScript module", | ||
"dependencies": { | ||
"@typescript-eslint/typescript-estree": "^2.4.0", | ||
"ast-module-types": "^2.5.0", | ||
"@typescript-eslint/typescript-estree": "^2.29.0", | ||
"ast-module-types": "^2.6.0", | ||
"node-source-walk": "^4.2.0", | ||
"typescript": "^3.6.4" | ||
"typescript": "^3.8.3" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^5.12.0", | ||
"mocha": "^5.2.0" | ||
"eslint": "^6.8.0", | ||
"mocha": "^7.1.1" | ||
} | ||
} |
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
5435
93
Updatedast-module-types@^2.6.0
Updatedtypescript@^3.8.3