New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

esm-to-cjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esm-to-cjs - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

6

index.js

@@ -213,5 +213,9 @@ module.exports.runTransform = runTransform;

if (str.indexWithin("async ", skipStart, DISTANCE, false) !== -1) {
skipStart += 6; // 6 === "async ".length;
}
let isDefaultExport = false;
if (str.indexWithin("default ", skipStart, DISTANCE, false) !== -1) {
skipStart += 9; // 8 === "default ".length;
skipStart += 8; // 8 === "default ".length;
isDefaultExport = true;

@@ -218,0 +222,0 @@ }

5

package.json
{
"name": "esm-to-cjs",
"version": "1.1.0",
"version": "1.2.0",
"description": "Transform ESM to Common JS for present NodeJS, without any junk wrappers or useless renaming",
"keywords": [
"commonjs",
"cjs",
"es-module",
"transpile",
"compile",

@@ -8,0 +11,0 @@ "esm",

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