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 1.0.0 to 1.0.1

12

index.js

@@ -1,3 +0,3 @@

const Parser = require('typescript-eslint-parser');
const Walker = require('node-source-walk');
var Parser = require('typescript-eslint-parser');
var Walker = require('node-source-walk');

@@ -10,8 +10,8 @@ /**

*/
module.exports = (src) => {
const walker = new Walker({
module.exports = function(src) {
var walker = new Walker({
parser: Parser
});
const dependencies = [];
var dependencies = [];

@@ -26,3 +26,3 @@ if (typeof src === 'undefined') {

walker.walk(src, (node) => {
walker.walk(src, function(node) {
switch (node.type) {

@@ -29,0 +29,0 @@ case 'ImportDeclaration':

{
"name": "detective-typescript",
"version": "1.0.0",
"version": "1.0.1",
"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