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.0.0-webpack-5-integration.1 to 2.0.0-webpack-5-integration-7ba8dfb.1

19

dist/util/isolatedExternalsModule.js

@@ -54,2 +54,11 @@ "use strict";

};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -72,4 +81,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

}
var prevExternals = [];
function loadExternal(context, url) {
function loadExternal(context, url, previousDeps) {
return __awaiter(this, void 0, void 0, function () {

@@ -79,3 +87,3 @@ var cachedExternal, processingPromise;

switch (_a.label) {
case 0: return [4 /*yield*/, Promise.all(prevExternals)];
case 0: return [4 /*yield*/, Promise.all(previousDeps || [])];
case 1:

@@ -85,3 +93,2 @@ _a.sent();

processingPromise = (0, processExternals_1.processExternal)(context, cachedExternal);
prevExternals.push(processingPromise);
return [2 /*return*/, processingPromise];

@@ -94,2 +101,3 @@ }

var _this = this;
var orderedDeps = [];
var externalsContext = {};

@@ -100,3 +108,4 @@ return Object.entries(externalsInfo).reduce(function (extObj, _a) {

return extObj;
var externalLoad = loadExternal(externalsContext, url);
var externalLoad = loadExternal(externalsContext, url, orderedDeps);
orderedDeps = __spreadArray(__spreadArray([], __read(orderedDeps), false), [externalLoad], false);
Object.defineProperty(extObj, globalName, {

@@ -103,0 +112,0 @@ get: function () { return __awaiter(_this, void 0, void 0, function () {

{
"name": "isolated-externals-plugin",
"version": "2.0.0-webpack-5-integration.1",
"version": "2.0.0-webpack-5-integration-7ba8dfb.1",
"description": "",

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

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