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.2 to 1.0.3

test/DynamicImport.js

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);

3

package.json
{
"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",

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