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

rollup-plugin-commonjs

Package Overview
Dependencies
Maintainers
3
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 8.2.0 to 8.2.1

4

CHANGELOG.md
# rollup-plugin-commonjs changelog
## 8.2.1
* Fix magic-string deprecation warning
## 8.2.0

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

10

dist/rollup-plugin-commonjs.cjs.js

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

uses.global = true;
if ( !ignoreGlobal ) { magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsGlobal"), true ); }
if ( !ignoreGlobal ) { magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsGlobal"), { storeName: true } ); }
return;

@@ -322,3 +322,3 @@ }

if ( flattened.keypath === 'module.exports' || flattened.keypath === 'module' || flattened.keypath === 'exports' ) {
magicString.overwrite( node.start, node.end, "'object'", false );
magicString.overwrite( node.start, node.end, "'object'", { storeName: false } );
}

@@ -334,3 +334,3 @@ }

if ( allowDynamicRequire ) { return; }
magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsRequire"), true );
magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsRequire"), { storeName: true } );
}

@@ -340,3 +340,3 @@

if ( node.name === 'global' && !ignoreGlobal ) {
magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsGlobal"), true );
magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsGlobal"), { storeName: true } );
}

@@ -352,3 +352,3 @@

if ( node.name === 'define' ) {
magicString.overwrite( node.start, node.end, 'undefined', true );
magicString.overwrite( node.start, node.end, 'undefined', { storeName: true } );
}

@@ -355,0 +355,0 @@

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

uses.global = true;
if ( !ignoreGlobal ) { magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsGlobal"), true ); }
if ( !ignoreGlobal ) { magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsGlobal"), { storeName: true } ); }
return;

@@ -318,3 +318,3 @@ }

if ( flattened.keypath === 'module.exports' || flattened.keypath === 'module' || flattened.keypath === 'exports' ) {
magicString.overwrite( node.start, node.end, "'object'", false );
magicString.overwrite( node.start, node.end, "'object'", { storeName: false } );
}

@@ -330,3 +330,3 @@ }

if ( allowDynamicRequire ) { return; }
magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsRequire"), true );
magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsRequire"), { storeName: true } );
}

@@ -336,3 +336,3 @@

if ( node.name === 'global' && !ignoreGlobal ) {
magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsGlobal"), true );
magicString.overwrite( node.start, node.end, (HELPERS_NAME + ".commonjsGlobal"), { storeName: true } );
}

@@ -348,3 +348,3 @@

if ( node.name === 'define' ) {
magicString.overwrite( node.start, node.end, 'undefined', true );
magicString.overwrite( node.start, node.end, 'undefined', { storeName: true } );
}

@@ -351,0 +351,0 @@

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

@@ -5,0 +5,0 @@ "main": "dist/rollup-plugin-commonjs.cjs.js",

@@ -144,3 +144,3 @@ import acorn from 'acorn';

uses.global = true;
if ( !ignoreGlobal ) magicString.overwrite( node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, true );
if ( !ignoreGlobal ) magicString.overwrite( node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, { storeName: true } );
return;

@@ -157,3 +157,3 @@ }

if ( flattened.keypath === 'module.exports' || flattened.keypath === 'module' || flattened.keypath === 'exports' ) {
magicString.overwrite( node.start, node.end, `'object'`, false );
magicString.overwrite( node.start, node.end, `'object'`, { storeName: false } );
}

@@ -169,3 +169,3 @@ }

if ( allowDynamicRequire ) return;
magicString.overwrite( node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, true );
magicString.overwrite( node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, { storeName: true } );
}

@@ -175,3 +175,3 @@

if ( node.name === 'global' && !ignoreGlobal ) {
magicString.overwrite( node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, true );
magicString.overwrite( node.start, node.end, `${HELPERS_NAME}.commonjsGlobal`, { storeName: true } );
}

@@ -187,3 +187,3 @@

if ( node.name === 'define' ) {
magicString.overwrite( node.start, node.end, 'undefined', true );
magicString.overwrite( node.start, node.end, 'undefined', { storeName: true } );
}

@@ -190,0 +190,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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