@module-federation/runtime
Advanced tools
Comparing version 0.6.13 to 0.6.14
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.6.13", | ||
"version": "0.6.14", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -5,0 +5,0 @@ "main": "./index.cjs.js", |
@@ -12,2 +12,4 @@ 'use strict'; | ||
const LOG_CATEGORY = '[ Federation Runtime ]'; | ||
// FIXME: pre-bundle ? | ||
const logger = sdk.createLogger(LOG_CATEGORY); | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
@@ -29,5 +31,5 @@ function assert(condition, msg) { | ||
msg.message = `${LOG_CATEGORY}: ${msg.message}`; | ||
console.warn(msg); | ||
logger.warn(msg); | ||
} else { | ||
console.warn(`${LOG_CATEGORY}: ${msg}`); | ||
logger.warn(msg); | ||
} | ||
@@ -180,3 +182,3 @@ } | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.13"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.14"; | ||
} | ||
@@ -902,2 +904,3 @@ } | ||
exports.isRemoteInfoWithEntry = isRemoteInfoWithEntry; | ||
exports.logger = logger; | ||
exports.nativeGlobal = nativeGlobal; | ||
@@ -904,0 +907,0 @@ exports.registerGlobalPlugins = registerGlobalPlugins; |
import { _ as _object_without_properties_loose, a as _extends } from './polyfills.esm.js'; | ||
import { isBrowserEnv, isDebugMode } from '@module-federation/sdk'; | ||
import { createLogger, isBrowserEnv, isDebugMode } from '@module-federation/sdk'; | ||
@@ -10,2 +10,4 @@ function getBuilderId() { | ||
const LOG_CATEGORY = '[ Federation Runtime ]'; | ||
// FIXME: pre-bundle ? | ||
const logger = createLogger(LOG_CATEGORY); | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
@@ -27,5 +29,5 @@ function assert(condition, msg) { | ||
msg.message = `${LOG_CATEGORY}: ${msg.message}`; | ||
console.warn(msg); | ||
logger.warn(msg); | ||
} else { | ||
console.warn(`${LOG_CATEGORY}: ${msg}`); | ||
logger.warn(msg); | ||
} | ||
@@ -178,3 +180,3 @@ } | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.13"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.14"; | ||
} | ||
@@ -871,2 +873,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, getBuilderId as K, 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, getFMId as w, isObject as x, error as y, warn as z }; | ||
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 }; |
@@ -0,3 +1,6 @@ | ||
declare const logger: import("@module-federation/sdk").Logger; | ||
export declare function assert(condition: any, msg: string): asserts condition; | ||
export declare function error(msg: string | Error | unknown): never; | ||
export declare function warn(msg: Parameters<typeof console.warn>[0]): void; | ||
export declare function log(...args: unknown[]): void; | ||
export { logger }; |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.6.13", | ||
"version": "0.6.14", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -53,4 +53,4 @@ "main": "./dist/index.cjs.js", | ||
"dependencies": { | ||
"@module-federation/sdk": "0.6.13" | ||
"@module-federation/sdk": "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
324085
7512
+ Added@module-federation/sdk@0.6.14(transitive)
+ Addedisomorphic-rslog@0.0.4(transitive)
- Removed@module-federation/sdk@0.6.13(transitive)