Socket
Socket
Sign inDemoInstall

@chialab/cjs-to-esm

Package Overview
Dependencies
3
Maintainers
2
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.17.5 to 0.17.6

41

lib/umd.js

@@ -13,24 +13,23 @@ import { TokenType, extractFunctionArguments, getNextToken, nextBlock } from '@chialab/estransform';

}
if (processor.identifierNameForToken(token) !== 'module') {
return false;
if (processor.identifierNameForToken(token) === 'module') {
token = getNextToken(processor);
if (token.type !== TokenType.dot) {
return false;
}
token = getNextToken(processor);
if (token.type !== TokenType.name) {
return false;
}
if (processor.identifierNameForToken(token) !== 'exports') {
return false;
}
token = getNextToken(processor);
if (token.type !== TokenType.eq) {
return false;
}
token = getNextToken(processor);
if (token.type !== TokenType.name) {
return false;
}
}
token = getNextToken(processor);
if (token.type !== TokenType.dot) {
return false;
}
token = getNextToken(processor);
if (token.type !== TokenType.name) {
return false;
}
if (processor.identifierNameForToken(token) !== 'exports') {
return false;
}
token = getNextToken(processor);
if (token.type !== TokenType.eq) {
return false;
}
token = getNextToken(processor);
if (token.type !== TokenType.name) {
return false;
}
if (processor.identifierNameForToken(token) !== args[1]) {

@@ -37,0 +36,0 @@ return false;

{
"name": "@chialab/cjs-to-esm",
"type": "module",
"version": "0.17.5",
"version": "0.17.6",
"description": "A commonjs to esm converter.",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc