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
73
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 21.0.0 to 21.0.1

8

CHANGELOG.md
# @rollup/plugin-commonjs ChangeLog
## v21.0.1
_2021-10-19_
### Bugfixes
- fix: pass on isEntry and custom resolve options (#1018)
## v21.0.0

@@ -4,0 +12,0 @@

18

dist/index.es.js

@@ -589,3 +589,3 @@ import { basename, extname, dirname, join, resolve, sep } from 'path';

return function resolveId(importee, rawImporter) {
return function resolveId(importee, rawImporter, resolveOptions) {
if (isWrappedId(importee, MODULE_SUFFIX) || isWrappedId(importee, EXPORTS_SUFFIX)) {

@@ -633,6 +633,12 @@ return importee;

return this.resolve(importee, importer, {
skipSelf: true,
custom: { 'node-resolve': { isRequire: isProxyModule || isRequiredModule } }
}).then((resolved) => {
return this.resolve(
importee,
importer,
Object.assign({}, resolveOptions, {
skipSelf: true,
custom: Object.assign({}, resolveOptions.custom, {
'node-resolve': { isRequire: isProxyModule || isRequiredModule }
})
})
).then((resolved) => {
if (!resolved) {

@@ -1905,3 +1911,3 @@ resolved = resolveExtensions(importee, importer);

export default commonjs;
export { commonjs as default };
//# sourceMappingURL=index.es.js.map

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

const modifySet = Set.prototype[isNegated ? 'delete' : 'add'].bind(dynamicRequireModuleSet);
for (const path$1 of glob__default['default'].sync(isNegated ? pattern.substr(1) : pattern)) {
for (const path$1 of glob__default["default"].sync(isNegated ? pattern.substr(1) : pattern)) {
modifySet(normalizePathSlashes(path.resolve(path$1)));

@@ -599,3 +599,3 @@ if (isDirectory(path$1)) {

return function resolveId(importee, rawImporter) {
return function resolveId(importee, rawImporter, resolveOptions) {
if (isWrappedId(importee, MODULE_SUFFIX) || isWrappedId(importee, EXPORTS_SUFFIX)) {

@@ -643,6 +643,12 @@ return importee;

return this.resolve(importee, importer, {
skipSelf: true,
custom: { 'node-resolve': { isRequire: isProxyModule || isRequiredModule } }
}).then((resolved) => {
return this.resolve(
importee,
importer,
Object.assign({}, resolveOptions, {
skipSelf: true,
custom: Object.assign({}, resolveOptions.custom, {
'node-resolve': { isRequire: isProxyModule || isRequiredModule }
})
})
).then((resolved) => {
if (!resolved) {

@@ -1193,3 +1199,3 @@ resolved = resolveExtensions(importee, importer);

const ast = astCache || tryParse(parse, code, id);
const magicString = new MagicString__default['default'](code);
const magicString = new MagicString__default["default"](code);
const uses = {

@@ -1453,3 +1459,3 @@ module: false,

const { name } = node;
if (!(isReference__default['default'](node, parent) && !scope.contains(name))) return;
if (!(isReference__default["default"](node, parent) && !scope.contains(name))) return;
switch (name) {

@@ -1700,3 +1706,3 @@ case 'require':

const commonDir = isDynamicRequireModulesEnabled
? getCommonDir__default['default'](null, Array.from(dynamicRequireModuleSet).concat(process.cwd()))
? getCommonDir__default["default"](null, Array.from(dynamicRequireModuleSet).concat(process.cwd()))
: null;

@@ -1703,0 +1709,0 @@

{
"name": "@rollup/plugin-commonjs",
"version": "21.0.0",
"version": "21.0.1",
"publishConfig": {

@@ -66,3 +66,3 @@ "access": "public"

"require-relative": "^0.8.7",
"rollup": "^2.39.0",
"rollup": "^2.58.0",
"shx": "^0.3.2",

@@ -69,0 +69,0 @@ "source-map": "^0.7.3",

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