detective-typescript
Advanced tools
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", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
3001
1