Socket
Socket
Sign inDemoInstall

cjs-es

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cjs-es - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

5

lib/export-writer.js

@@ -69,4 +69,5 @@ function createExportWriter(context) {

}
context.s.append(
`export default ${context.moduleNodes.length ? "_module_.exports" : "_exports_"};\n`
context.s.appendLeft(
context.topLevel.get().end,
`\nexport default ${context.moduleNodes.length ? "_module_.exports" : "_exports_"};`
);

@@ -73,0 +74,0 @@ }

2

package.json
{
"name": "cjs-es",
"version": "0.4.3",
"version": "0.4.4",
"description": "Transform CommonJS module into ES module.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -238,2 +238,6 @@ cjs-es

* 0.4.4 (May 1, 2018)
- Fix: write export statement after last statement instead of the end of the file.
* 0.4.3 (May 1, 2018)

@@ -240,0 +244,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