Comparing version 1.0.2 to 1.0.3
10
index.js
@@ -8,5 +8,6 @@ #!/usr/bin/env node | ||
const stage3 = require('acorn-stage3'); | ||
const dynamicImport = require('acorn-dynamic-import').default; | ||
const glob = require('glob'); | ||
const JSXParser = Parser.extend(jsx()).extend(stage3); | ||
const AcornParser = Parser.extend(dynamicImport).extend(jsx()).extend(stage3); | ||
@@ -47,5 +48,6 @@ /* | ||
try { | ||
ast = JSXParser.parse(content, { | ||
ast = AcornParser.parse(content, { | ||
sourceType: 'module', | ||
allowHashBang: true, | ||
allowImportExportEverywhere: true, | ||
}); | ||
@@ -78,5 +80,1 @@ } catch (err) { | ||
program.parse(process.argv); | ||
// console.log({program}); | ||
// console.log('module', program.module); | ||
// console.log('glob', program.module); |
{ | ||
"name": "es-count", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A small JS utility that counts usage of modules in a code base.", | ||
@@ -31,2 +31,3 @@ "main": "index.js", | ||
"acorn": "7.3.1", | ||
"acorn-dynamic-import": "4.0.0", | ||
"acorn-jsx": "5.2.0", | ||
@@ -33,0 +34,0 @@ "acorn-stage3": "3.0.0", |
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
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
22560
7
525
7
+ Addedacorn-dynamic-import@4.0.0
+ Addedacorn@6.4.2(transitive)
+ Addedacorn-dynamic-import@4.0.0(transitive)