@module-federation/webpack-bundler-runtime
Advanced tools
Comparing version 0.0.0-next-20240824225724 to 0.0.0-next-20240826075118
@@ -174,5 +174,8 @@ 'use strict'; | ||
if (!initScope) initScope = []; | ||
var mfInstance = webpackRequire.federation.instance; | ||
// handling circular init calls | ||
var initToken = initTokens[shareScopeName]; | ||
if (!initToken) initToken = initTokens[shareScopeName] = {}; | ||
if (!initToken) initToken = initTokens[shareScopeName] = { | ||
from: mfInstance.name | ||
}; | ||
if (initScope.indexOf(initToken) >= 0) return; | ||
@@ -205,3 +208,7 @@ initScope.push(initToken); | ||
}; | ||
var promises = webpackRequire.federation.instance.initializeSharing(shareScopeName); | ||
var promises = mfInstance.initializeSharing(shareScopeName, { | ||
strategy: mfInstance.options.shareStrategy, | ||
initScope: initScope, | ||
from: 'build' | ||
}); | ||
attachShareScopeMap(webpackRequire); | ||
@@ -208,0 +215,0 @@ var bundlerRuntimeRemotesOptions = webpackRequire.federation.bundlerRuntimeOptions.remotes; |
@@ -152,5 +152,8 @@ import * as runtime from '@module-federation/runtime'; | ||
if (!initScope) initScope = []; | ||
var mfInstance = webpackRequire.federation.instance; | ||
// handling circular init calls | ||
var initToken = initTokens[shareScopeName]; | ||
if (!initToken) initToken = initTokens[shareScopeName] = {}; | ||
if (!initToken) initToken = initTokens[shareScopeName] = { | ||
from: mfInstance.name | ||
}; | ||
if (initScope.indexOf(initToken) >= 0) return; | ||
@@ -183,3 +186,7 @@ initScope.push(initToken); | ||
}; | ||
var promises = webpackRequire.federation.instance.initializeSharing(shareScopeName); | ||
var promises = mfInstance.initializeSharing(shareScopeName, { | ||
strategy: mfInstance.options.shareStrategy, | ||
initScope: initScope, | ||
from: 'build' | ||
}); | ||
attachShareScopeMap(webpackRequire); | ||
@@ -186,0 +193,0 @@ var bundlerRuntimeRemotesOptions = webpackRequire.federation.bundlerRuntimeOptions.remotes; |
{ | ||
"public": true, | ||
"name": "@module-federation/webpack-bundler-runtime", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"license": "MIT", | ||
@@ -39,6 +39,2 @@ "description": "Module Federation Runtime for webpack", | ||
}, | ||
"./vendor": { | ||
"import": "./dist/vendored.esm.js", | ||
"require": "./dist/vendored.cjs.js" | ||
}, | ||
"./*": "./*" | ||
@@ -57,6 +53,4 @@ }, | ||
"devDependencies": { | ||
"@module-federation/runtime": "workspace:*", | ||
"@rollup/plugin-swc": "^0.3.1", | ||
"rollup-plugin-cleanup": "^3.2.1" | ||
"@module-federation/runtime": "workspace:*" | ||
} | ||
} |
{ | ||
"public": true, | ||
"name": "@module-federation/webpack-bundler-runtime", | ||
"version": "0.0.0-next-20240824225724", | ||
"version": "0.0.0-next-20240826075118", | ||
"license": "MIT", | ||
@@ -23,4 +23,4 @@ "description": "Module Federation Runtime for webpack", | ||
"dependencies": { | ||
"@module-federation/runtime": "0.0.0-next-20240824225724", | ||
"@module-federation/sdk": "0.0.0-next-20240824225724" | ||
"@module-federation/runtime": "0.0.0-next-20240826075118", | ||
"@module-federation/sdk": "0.0.0-next-20240826075118" | ||
}, | ||
@@ -40,6 +40,2 @@ "exports": { | ||
}, | ||
"./vendor": { | ||
"import": "./dist/vendored.esm.js", | ||
"require": "./dist/vendored.cjs.js" | ||
}, | ||
"./*": "./*" | ||
@@ -58,6 +54,4 @@ }, | ||
"devDependencies": { | ||
"@rollup/plugin-swc": "^0.3.1", | ||
"rollup-plugin-cleanup": "^3.2.1", | ||
"@module-federation/runtime": "0.0.0-next-20240824225724" | ||
"@module-federation/runtime": "0.0.0-next-20240826075118" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
1
1
3
66160
24
1507
+ Added@module-federation/runtime@0.0.0-next-20240826075118(transitive)
+ Added@module-federation/sdk@0.0.0-next-20240826075118(transitive)
- Removed@module-federation/runtime@0.0.0-next-20240824225724(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240824225724(transitive)