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

rollup-plugin-commonjs

Package Overview
Dependencies
Maintainers
4
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.1 to 8.2.3

18

dist/rollup-plugin-commonjs.cjs.js

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

var HELPERS = "\nexport var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}";
var HELPERS = "\nexport var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}";

@@ -260,3 +260,7 @@ var PREFIX = '\0commonjs-proxy:';

if ( !name ) { name = "require$$" + (uid++); }
if ( !name ) {
do { name = "require$$" + (uid++); }
while ( scope.contains( name ) );
}
required[ source ] = { source: source, name: name, importsDefault: false };

@@ -546,6 +550,8 @@ }

namedExportDeclarations.push({
str: declaration,
name: name
});
if ( name !== 'default' ) {
namedExportDeclarations.push({
str: declaration,
name: name
});
}

@@ -552,0 +558,0 @@ defaultExportPropertyAssignments.push( (moduleName + "." + name + " = " + deconflicted + ";") );

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

var HELPERS = "\nexport var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}";
var HELPERS = "\nexport var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');\n}\n\nexport function unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}";

@@ -256,3 +256,7 @@ var PREFIX = '\0commonjs-proxy:';

if ( !name ) { name = "require$$" + (uid++); }
if ( !name ) {
do { name = "require$$" + (uid++); }
while ( scope.contains( name ) );
}
required[ source ] = { source: source, name: name, importsDefault: false };

@@ -542,6 +546,8 @@ }

namedExportDeclarations.push({
str: declaration,
name: name
});
if ( name !== 'default' ) {
namedExportDeclarations.push({
str: declaration,
name: name
});
}

@@ -548,0 +554,0 @@ defaultExportPropertyAssignments.push( (moduleName + "." + name + " = " + deconflicted + ";") );

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

@@ -22,3 +22,3 @@ "main": "dist/rollup-plugin-commonjs.cjs.js",

"dependencies": {
"acorn": "^5.1.1",
"acorn": "^5.1.2",
"estree-walker": "^0.5.0",

@@ -30,12 +30,12 @@ "magic-string": "^0.22.4",

"devDependencies": {
"eslint": "^4.5.0",
"eslint": "^4.8.0",
"locate-character": "^2.0.1",
"mocha": "^3.5.0",
"mocha": "^4.0.1",
"require-relative": "^0.8.7",
"rollup": "^0.48.2",
"rollup-plugin-buble": "^0.15.0",
"rollup": "^0.50.0",
"rollup-plugin-buble": "^0.16.0",
"rollup-plugin-node-resolve": "^3.0.0",
"shx": "^0.2.2",
"source-map": "^0.5.7",
"source-map-support": "^0.4.16"
"source-map": "^0.6.1",
"source-map-support": "^0.5.0"
},

@@ -42,0 +42,0 @@ "repository": "rollup/rollup-plugin-commonjs",

@@ -26,5 +26,7 @@ # rollup-plugin-commonjs [![Build Status][travis-img]][travis]

export default {
entry: 'main.js',
dest: 'bundle.js',
format: 'iife',
input: 'main.js',
output: {
file: 'bundle.js',
format: 'iife'
},
plugins: [

@@ -31,0 +33,0 @@ nodeResolve({

@@ -11,3 +11,3 @@ export const HELPERS_ID = '\0commonjsHelpers';

export function unwrapExports (x) {
return x && x.__esModule ? x['default'] : x;
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}

@@ -14,0 +14,0 @@

@@ -94,3 +94,7 @@ import acorn from 'acorn';

if ( !name ) name = `require$$${uid++}`;
if ( !name ) {
do name = `require$$${uid++}`;
while ( scope.contains( name ) );
}
required[ source ] = { source, name, importsDefault: false };

@@ -378,6 +382,8 @@ }

namedExportDeclarations.push({
str: declaration,
name
});
if ( name !== 'default' ) {
namedExportDeclarations.push({
str: declaration,
name
});
}

@@ -384,0 +390,0 @@ defaultExportPropertyAssignments.push( `${moduleName}.${name} = ${deconflicted};` );

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