Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-commonjs

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-commonjs - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

4

CHANGELOG.md
# rollup-plugin-commonjs changelog
## 2.2.1
# Prevent false positives with `namedExports` ([#36](https://github.com/rollup/rollup-plugin-commonjs/issues/36))
## 2.2.0

@@ -4,0 +8,0 @@

2

dist/rollup-plugin-commonjs.cjs.js

@@ -226,3 +226,3 @@ 'use strict';

if (!sources.length && !uses.module && !uses.exports && !uses.global) {
if (Object.keys(customNamedExports).length) {
if (Object.keys(namedExports).length) {
throw new Error('Custom named exports were specified for ' + id + ' but it does not appear to be a CommonJS module');

@@ -229,0 +229,0 @@ }

@@ -222,3 +222,3 @@ import { statSync } from 'fs';

if (!sources.length && !uses.module && !uses.exports && !uses.global) {
if (Object.keys(customNamedExports).length) {
if (Object.keys(namedExports).length) {
throw new Error('Custom named exports were specified for ' + id + ' but it does not appear to be a CommonJS module');

@@ -225,0 +225,0 @@ }

{
"name": "rollup-plugin-commonjs",
"version": "2.2.0",
"version": "2.2.1",
"description": "Convert CommonJS modules to ES2015",

@@ -5,0 +5,0 @@ "devDependencies": {

@@ -189,3 +189,3 @@ import { statSync } from 'fs';

if ( !sources.length && !uses.module && !uses.exports && !uses.global ) {
if ( Object.keys( customNamedExports ).length ) {
if ( Object.keys( namedExports ).length ) {
throw new Error( `Custom named exports were specified for ${id} but it does not appear to be a CommonJS module` );

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