Socket
Socket
Sign inDemoInstall

es-count

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-count - npm Package Compare versions

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",

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