@module-federation/runtime
Advanced tools
Comparing version 0.0.0-next-20241104091124 to 0.0.0-next-20241105035816
@@ -12,2 +12,3 @@ 'use strict'; | ||
nativeGlobal: share.nativeGlobal, | ||
globalLoading: share.globalLoading, | ||
resetFederationGlobalInfo: share.resetFederationGlobalInfo, | ||
@@ -14,0 +15,0 @@ getGlobalFederationInstance: share.getGlobalFederationInstance, |
@@ -1,2 +0,2 @@ | ||
import { g as getRegisteredShare, a as getGlobalShareScope, G as Global, n as nativeGlobal, r as resetFederationGlobalInfo, b as getGlobalFederationInstance, s as setGlobalFederationInstance, c as getGlobalFederationConstructor, d as setGlobalFederationConstructor, e as getInfoWithoutType, f as getGlobalSnapshot, h as getTargetSnapshotInfoByModuleInfo, i as getGlobalSnapshotInfoByModuleInfo, j as setGlobalSnapshotInfoByModuleInfo, k as addGlobalSnapshot, l as getRemoteEntryExports, m as registerGlobalPlugins, o as getGlobalHostPlugins, p as getPreloaded, q as setPreloaded } from './share.esm.js'; | ||
import { g as getRegisteredShare, a as getGlobalShareScope, G as Global, n as nativeGlobal, b as globalLoading, r as resetFederationGlobalInfo, c as getGlobalFederationInstance, s as setGlobalFederationInstance, d as getGlobalFederationConstructor, e as setGlobalFederationConstructor, f as getInfoWithoutType, h as getGlobalSnapshot, i as getTargetSnapshotInfoByModuleInfo, j as getGlobalSnapshotInfoByModuleInfo, k as setGlobalSnapshotInfoByModuleInfo, l as addGlobalSnapshot, m as getRemoteEntryExports, o as registerGlobalPlugins, p as getGlobalHostPlugins, q as getPreloaded, t as setPreloaded } from './share.esm.js'; | ||
@@ -10,2 +10,3 @@ const ShareUtils = { | ||
nativeGlobal, | ||
globalLoading, | ||
resetFederationGlobalInfo, | ||
@@ -12,0 +13,0 @@ getGlobalFederationInstance, |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.6.15", | ||
"version": "0.6.16", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -5,0 +5,0 @@ "main": "./index.cjs.js", |
@@ -95,4 +95,6 @@ 'use strict'; | ||
try { | ||
return new Function('return this')(); | ||
// get real window (incase of sandbox) | ||
return document.defaultView; | ||
} catch (e) { | ||
// node env | ||
return globalThis; | ||
@@ -181,3 +183,3 @@ } | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.15"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.16"; | ||
} | ||
@@ -184,0 +186,0 @@ } |
@@ -93,4 +93,6 @@ import { _ as _object_without_properties_loose, a as _extends } from './polyfills.esm.js'; | ||
try { | ||
return new Function('return this')(); | ||
// get real window (incase of sandbox) | ||
return document.defaultView; | ||
} catch (e) { | ||
// node env | ||
return globalThis; | ||
@@ -179,3 +181,3 @@ } | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.15"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.16"; | ||
} | ||
@@ -872,2 +874,2 @@ } | ||
export { isPlainObject as A, isRemoteInfoWithEntry as B, isPureRemoteEntry as C, DEFAULT_REMOTE_TYPE as D, getRemoteEntryInfoFromSnapshot as E, arrayOptions as F, Global as G, formatShareConfigs as H, getTargetSharedOptions as I, addUniqueItem as J, logger as K, getBuilderId as L, getGlobalShareScope as a, getGlobalFederationInstance as b, getGlobalFederationConstructor as c, setGlobalFederationConstructor as d, getInfoWithoutType as e, getGlobalSnapshot as f, getRegisteredShare as g, getTargetSnapshotInfoByModuleInfo as h, getGlobalSnapshotInfoByModuleInfo as i, setGlobalSnapshotInfoByModuleInfo as j, addGlobalSnapshot as k, getRemoteEntryExports as l, registerGlobalPlugins as m, nativeGlobal as n, getGlobalHostPlugins as o, getPreloaded as p, setPreloaded as q, resetFederationGlobalInfo as r, setGlobalFederationInstance as s, globalLoading as t, DEFAULT_SCOPE as u, assert as v, error as w, getFMId as x, isObject as y, warn as z }; | ||
export { isPlainObject as A, isRemoteInfoWithEntry as B, isPureRemoteEntry as C, DEFAULT_REMOTE_TYPE as D, getRemoteEntryInfoFromSnapshot as E, arrayOptions as F, Global as G, formatShareConfigs as H, getTargetSharedOptions as I, addUniqueItem as J, logger as K, getBuilderId as L, getGlobalShareScope as a, globalLoading as b, getGlobalFederationInstance as c, getGlobalFederationConstructor as d, setGlobalFederationConstructor as e, getInfoWithoutType as f, getRegisteredShare as g, getGlobalSnapshot as h, getTargetSnapshotInfoByModuleInfo as i, getGlobalSnapshotInfoByModuleInfo as j, setGlobalSnapshotInfoByModuleInfo as k, addGlobalSnapshot as l, getRemoteEntryExports as m, nativeGlobal as n, registerGlobalPlugins as o, getGlobalHostPlugins as p, getPreloaded as q, resetFederationGlobalInfo as r, setGlobalFederationInstance as s, setPreloaded as t, DEFAULT_SCOPE as u, assert as v, error as w, getFMId as x, isObject as y, warn as z }; |
@@ -1,2 +0,2 @@ | ||
import { resetFederationGlobalInfo, getGlobalFederationInstance, setGlobalFederationInstance, getGlobalFederationConstructor, setGlobalFederationConstructor, getInfoWithoutType, getGlobalSnapshot, getTargetSnapshotInfoByModuleInfo, getGlobalSnapshotInfoByModuleInfo, setGlobalSnapshotInfoByModuleInfo, addGlobalSnapshot, getRemoteEntryExports, registerGlobalPlugins, getGlobalHostPlugins, getPreloaded, setPreloaded, Global } from './global'; | ||
import { globalLoading, resetFederationGlobalInfo, getGlobalFederationInstance, setGlobalFederationInstance, getGlobalFederationConstructor, setGlobalFederationConstructor, getInfoWithoutType, getGlobalSnapshot, getTargetSnapshotInfoByModuleInfo, getGlobalSnapshotInfoByModuleInfo, setGlobalSnapshotInfoByModuleInfo, addGlobalSnapshot, getRemoteEntryExports, registerGlobalPlugins, getGlobalHostPlugins, getPreloaded, setPreloaded, Global } from './global'; | ||
import { getRegisteredShare, getGlobalShareScope } from './utils/share'; | ||
@@ -10,2 +10,3 @@ interface IShareUtils { | ||
nativeGlobal: typeof global; | ||
globalLoading: typeof globalLoading; | ||
resetFederationGlobalInfo: typeof resetFederationGlobalInfo; | ||
@@ -12,0 +13,0 @@ getGlobalFederationInstance: typeof getGlobalFederationInstance; |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.0.0-next-20241104091124", | ||
"version": "0.0.0-next-20241105035816", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -53,5 +53,5 @@ "main": "./dist/index.cjs.js", | ||
"dependencies": { | ||
"@module-federation/sdk": "0.0.0-next-20241104091124", | ||
"@module-federation/sdk": "0.0.0-next-20241105035816", | ||
"@module-federation/error-codes": "0.6.14" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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
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 1 instance in 1 package
323074
7537
4
+ Added@module-federation/sdk@0.0.0-next-20241105035816(transitive)
- Removed@module-federation/sdk@0.0.0-next-20241104091124(transitive)