@module-federation/runtime
Advanced tools
Comparing version 0.0.0-next-20241104024700 to 0.0.0-next-20241104032754
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.6.15", | ||
"version": "0.6.14", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -53,4 +53,5 @@ "main": "./index.cjs.js", | ||
"dependencies": { | ||
"@module-federation/sdk": "workspace:*" | ||
"@module-federation/sdk": "workspace:*", | ||
"@module-federation/error-codes": "workspace:*" | ||
} | ||
} |
@@ -95,6 +95,4 @@ 'use strict'; | ||
try { | ||
// get real window (incase of sandbox) | ||
return document.defaultView; | ||
return new Function('return this')(); | ||
} catch (e) { | ||
// node env | ||
return globalThis; | ||
@@ -183,3 +181,3 @@ } | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.15"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.14"; | ||
} | ||
@@ -186,0 +184,0 @@ } |
@@ -93,6 +93,4 @@ import { _ as _object_without_properties_loose, a as _extends } from './polyfills.esm.js'; | ||
try { | ||
// get real window (incase of sandbox) | ||
return document.defaultView; | ||
return new Function('return this')(); | ||
} catch (e) { | ||
// node env | ||
return globalThis; | ||
@@ -181,3 +179,3 @@ } | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.15"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.14"; | ||
} | ||
@@ -874,2 +872,2 @@ } | ||
export { warn as A, isPlainObject as B, isRemoteInfoWithEntry as C, DEFAULT_REMOTE_TYPE as D, isPureRemoteEntry as E, getRemoteEntryInfoFromSnapshot as F, Global as G, arrayOptions as H, formatShareConfigs as I, getTargetSharedOptions as J, addUniqueItem 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, logger as w, getFMId as x, isObject as y, error 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, 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 }; |
@@ -77,2 +77,3 @@ import type { CreateScriptHookReturn, ModuleInfo } from '@module-federation/sdk'; | ||
customShareInfo?: Partial<Shared>; | ||
from?: 'build' | 'runtime'; | ||
resolver?: (sharedOptions: ShareInfos[string]) => Shared; | ||
@@ -79,0 +80,0 @@ }): () => T | never; |
@@ -57,2 +57,3 @@ import { Federation } from '../global'; | ||
loadShareSync<T>(pkgName: string, extraOptions?: { | ||
from?: 'build' | 'runtime'; | ||
customShareInfo?: Partial<Shared>; | ||
@@ -59,0 +60,0 @@ resolver?: (sharedOptions: ShareInfos[string]) => Shared; |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.0.0-next-20241104024700", | ||
"version": "0.0.0-next-20241104032754", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -53,4 +53,5 @@ "main": "./dist/index.cjs.js", | ||
"dependencies": { | ||
"@module-federation/sdk": "0.0.0-next-20241104024700" | ||
"@module-federation/sdk": "0.0.0-next-20241104032754", | ||
"@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
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
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
322951
2
7534
6
+ Added@module-federation/error-codes@0.6.14(transitive)
+ Added@module-federation/sdk@0.0.0-next-20241104032754(transitive)
- Removed@module-federation/sdk@0.0.0-next-20241104024700(transitive)