@module-federation/runtime
Advanced tools
Comparing version 0.0.0-next-20240122061426 to 0.0.0-next-20240122072901
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -5,0 +5,0 @@ "main": "./index.cjs.js", |
@@ -174,3 +174,3 @@ 'use strict'; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.8"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.9"; | ||
} | ||
@@ -706,6 +706,9 @@ } | ||
}; | ||
const isLoaded = (shared)=>{ | ||
return Boolean(shared.loaded) || typeof shared.lib === 'function'; | ||
}; | ||
function findSingletonVersionOrderByVersion(shareScopeMap, scope, pkgName) { | ||
const versions = shareScopeMap[scope][pkgName]; | ||
const callback = function(prev, cur) { | ||
return !versions[prev].loaded && versionLt(prev, cur); | ||
return !isLoaded(versions[prev]) && versionLt(prev, cur); | ||
}; | ||
@@ -717,4 +720,4 @@ return findVersion(shareScopeMap, scope, pkgName, callback); | ||
const callback = function(prev, cur) { | ||
if (versions[cur].loaded) { | ||
if (versions[prev].loaded) { | ||
if (isLoaded(versions[cur])) { | ||
if (isLoaded(versions[prev])) { | ||
return Boolean(versionLt(prev, cur)); | ||
@@ -725,3 +728,3 @@ } else { | ||
} | ||
if (versions[prev].loaded) { | ||
if (isLoaded(versions[prev])) { | ||
return false; | ||
@@ -728,0 +731,0 @@ } |
@@ -172,3 +172,3 @@ function getBuilderId() { | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.8"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.0.9"; | ||
} | ||
@@ -704,6 +704,9 @@ } | ||
}; | ||
const isLoaded = (shared)=>{ | ||
return Boolean(shared.loaded) || typeof shared.lib === 'function'; | ||
}; | ||
function findSingletonVersionOrderByVersion(shareScopeMap, scope, pkgName) { | ||
const versions = shareScopeMap[scope][pkgName]; | ||
const callback = function(prev, cur) { | ||
return !versions[prev].loaded && versionLt(prev, cur); | ||
return !isLoaded(versions[prev]) && versionLt(prev, cur); | ||
}; | ||
@@ -715,4 +718,4 @@ return findVersion(shareScopeMap, scope, pkgName, callback); | ||
const callback = function(prev, cur) { | ||
if (versions[cur].loaded) { | ||
if (versions[prev].loaded) { | ||
if (isLoaded(versions[cur])) { | ||
if (isLoaded(versions[prev])) { | ||
return Boolean(versionLt(prev, cur)); | ||
@@ -723,3 +726,3 @@ } else { | ||
} | ||
if (versions[prev].loaded) { | ||
if (isLoaded(versions[prev])) { | ||
return false; | ||
@@ -726,0 +729,0 @@ } |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.0.0-next-20240122061426", | ||
"version": "0.0.0-next-20240122072901", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -48,4 +48,4 @@ "main": "./dist/index.cjs", | ||
"dependencies": { | ||
"@module-federation/sdk": "0.0.0-next-20240122061426" | ||
"@module-federation/sdk": "0.0.0-next-20240122072901" | ||
} | ||
} |
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
256955
5611
+ Added@module-federation/sdk@0.0.0-next-20240122072901(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240122061426(transitive)