@module-federation/runtime
Advanced tools
Comparing version 0.0.14 to 0.0.15
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -5,0 +5,0 @@ "main": "./index.cjs.js", |
@@ -22,6 +22,15 @@ 'use strict'; | ||
function error(msg) { | ||
if (msg instanceof Error) { | ||
msg.message = `${LOG_CATEGORY}: ${msg.message}`; | ||
throw msg; | ||
} | ||
throw new Error(`${LOG_CATEGORY}: ${msg}`); | ||
} | ||
function warn(msg) { | ||
console.warn(`${LOG_CATEGORY}: ${msg}`); | ||
if (msg instanceof Error) { | ||
msg.message = `${LOG_CATEGORY}: ${msg.message}`; | ||
console.warn(msg); | ||
} else { | ||
console.warn(`${LOG_CATEGORY}: ${msg}`); | ||
} | ||
} | ||
@@ -180,3 +189,3 @@ | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.14"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.15"; | ||
} | ||
@@ -183,0 +192,0 @@ } |
@@ -20,6 +20,15 @@ function getBuilderId() { | ||
function error(msg) { | ||
if (msg instanceof Error) { | ||
msg.message = `${LOG_CATEGORY}: ${msg.message}`; | ||
throw msg; | ||
} | ||
throw new Error(`${LOG_CATEGORY}: ${msg}`); | ||
} | ||
function warn(msg) { | ||
console.warn(`${LOG_CATEGORY}: ${msg}`); | ||
if (msg instanceof Error) { | ||
msg.message = `${LOG_CATEGORY}: ${msg.message}`; | ||
console.warn(msg); | ||
} else { | ||
console.warn(`${LOG_CATEGORY}: ${msg}`); | ||
} | ||
} | ||
@@ -178,3 +187,3 @@ | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.14"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.15"; | ||
} | ||
@@ -181,0 +190,0 @@ } |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -48,4 +48,4 @@ "main": "./dist/index.cjs", | ||
"dependencies": { | ||
"@module-federation/sdk": "0.0.14" | ||
"@module-federation/sdk": "0.0.15" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
259113
5701
+ Added@module-federation/sdk@0.0.15(transitive)
- Removed@module-federation/sdk@0.0.14(transitive)