Socket
Socket
Sign inDemoInstall

detective-typescript

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detective-typescript - npm Package Compare versions

Comparing version 5.7.0 to 5.8.0

4

index.js

@@ -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);

12

package.json
{
"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"
}
}
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