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.8.0 to 6.0.0

6

index.js

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

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