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

isolated-externals-plugin

Package Overview
Dependencies
Maintainers
0
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.3-fix-safari-private-cache-d09b245.1 to 2.5.0-fix-safari-private-cache-0834389.1

22

dist/IsolatedExternalsPlugin.js

@@ -47,2 +47,7 @@ "use strict";

globalName: { type: 'string' },
urlTransformer: { type: 'string' },
includeImports: {
type: ['string', 'array'],
items: { type: 'string' },
},
},

@@ -122,5 +127,18 @@ },

finalIsolatedExternals = isolatedExternals.reduce((finalExternals, [entryName, exts]) => {
const finalExts = Object.entries(exts).reduce((allExts, [packageName, ext]) => (Object.assign(Object.assign({}, allExts), { [packageName]: Object.assign(Object.assign({}, ext), { globalName: ext.globalName ||
const finalExts = Object.entries(exts).reduce((allExts, [packageName, ext]) => {
const finalExt = Object.assign({}, ext);
delete finalExt.includeImports;
const packageConfig = Object.assign(Object.assign({}, finalExt), { globalName: ext.globalName ||
normalizedExistingExternals[packageName] ||
packageName }) })), {});
packageName });
const extraImports = Array.isArray(ext.includeImports)
? ext.includeImports
: ext.includeImports
? [ext.includeImports]
: [];
const extraImportsConfig = extraImports.reduce((allImports, importName) => {
return Object.assign(Object.assign({}, allImports), { [importName]: Object.assign({}, packageConfig) });
}, {});
return Object.assign(Object.assign(Object.assign({}, allExts), extraImportsConfig), { [packageName]: Object.assign({}, packageConfig) });
}, {});
return Object.assign(Object.assign({}, finalExternals), { [entryName]: finalExts });

@@ -127,0 +145,0 @@ }, {});

3

dist/util/externalsClasses.d.ts
export interface ExternalInfo {
url: string;
globalName?: string;
url: string;
urlTransformer?: string;
includeImports?: string | string[];
}

@@ -6,0 +7,0 @@ export interface Externals {

{
"name": "isolated-externals-plugin",
"version": "2.4.3-fix-safari-private-cache-d09b245.1",
"version": "2.5.0-fix-safari-private-cache-0834389.1",
"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