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.1.1 to 5.2.0

5

index.js

@@ -28,2 +28,7 @@ '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);
}
break;
case 'ImportDeclaration':

@@ -30,0 +35,0 @@ if (node.source && node.source.value) {

2

package.json
{
"name": "detective-typescript",
"version": "5.1.1",
"version": "5.2.0",
"author": "Patrik Henningsson <patrik.henningsson@gmail.com>",

@@ -5,0 +5,0 @@ "description": "Get the dependencies of a TypeScript module",

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