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

isolated-externals-plugin

Package Overview
Dependencies
Maintainers
4
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isolated-externals-plugin - npm Package Compare versions

Comparing version 2.4.2-fix-module-resolution-5c8bf43.1 to 2.4.2

17

dist/IsolatedExternalsPlugin.js

@@ -25,2 +25,5 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -32,3 +35,3 @@ const webpack_1 = require("webpack");

const proxy_1 = require("./util/proxy");
const getRequestParam_1 = __importStar(require("./util/getRequestParam"));
const getRequestParam_1 = __importDefault(require("./util/getRequestParam"));
const configSchema = {

@@ -350,4 +353,3 @@ type: 'object',

const getUnpromisedRequest = (request, globalName) => {
const req = request.endsWith('/') ? request + 'index' : request;
const newRequest = `${req}?unpromise-external&globalName=${globalName}`;
const newRequest = `${this.unpromisedExternalModuleLocation}?unpromise-external&globalName=${globalName}`;
return newRequest;

@@ -509,2 +511,6 @@ };

var _a;
if (data.request.includes('unpromise-external')) {
cb();
return;
}
const externalPath = ((_a = basePathRegex.exec(data.request)) === null || _a === void 0 ? void 0 : _a[0]) || '';

@@ -518,7 +524,2 @@ const callOriginalExternalsPlugin = () => {

}
if (data.request.includes('unpromise-external')) {
data.request = `${this.unpromisedExternalModuleLocation}${(0, getRequestParam_1.getSearchString)(data.request)}`;
cb();
return;
}
const parent = getParentModule(data);

@@ -525,0 +526,0 @@ const parents = getAllParents(parent);

type Maybe<T> = T | undefined | null;
export declare const createGetProxy: <T extends object, R extends NonNullable<T[keyof T]>>(orig: T, get: (target: T, key: NonNullable<keyof T>) => Maybe<R>) => T;
export declare const createGetProxy: <T extends object, R extends T[keyof T]>(orig: T, get: (target: T, key: keyof T) => Maybe<R>) => T;
export {};

@@ -36,4 +36,3 @@ "use strict";

}
return get(target, key) ||
Reflect.get.apply(Reflect, __spreadArray([orig, key], __read(args), false));
return get(target, key) || Reflect.get.apply(Reflect, __spreadArray([orig, key], __read(args), false));
},

@@ -40,0 +39,0 @@ });

@@ -1,2 +0,1 @@

declare const theExternal: unknown;
export default theExternal;
export {};

@@ -16,2 +16,4 @@ "use strict";

var theExternal = syncedModulesProxy[THE_GLOBAL];
exports.default = theExternal;
Object.assign(exports, theExternal, {
default: theExternal,
});
{
"name": "isolated-externals-plugin",
"version": "2.4.2-fix-module-resolution-5c8bf43.1",
"version": "2.4.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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