Comparing version 1.0.1 to 1.0.2
15
index.js
@@ -41,8 +41,15 @@ #!/usr/bin/env node | ||
} | ||
return; | ||
} | ||
const ast = JSXParser.parse(content, { | ||
sourceType: 'module', | ||
allowHashBang: true, | ||
}); | ||
let ast | ||
try { | ||
ast = JSXParser.parse(content, { | ||
sourceType: 'module', | ||
allowHashBang: true, | ||
}); | ||
} catch (err) { | ||
console.error(`Error parsing ${file}: ${err}\n`); | ||
return; | ||
} | ||
@@ -49,0 +56,0 @@ const importNodes = ast.body.filter(node => { |
{ | ||
"name": "es-count", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A small JS utility that counts usage of modules in a code base.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
21315
494