@module-federation/runtime
Advanced tools
Comparing version 0.0.0-next-20240115042410 to 0.0.0-next-20240115064607
@@ -686,6 +686,9 @@ 'use strict'; | ||
}; | ||
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); | ||
}; | ||
@@ -697,4 +700,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)); | ||
@@ -705,3 +708,3 @@ } else { | ||
} | ||
if (versions[prev].loaded) { | ||
if (isLoaded(versions[prev])) { | ||
return false; | ||
@@ -708,0 +711,0 @@ } |
@@ -684,6 +684,9 @@ function getBuilderId() { | ||
}; | ||
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); | ||
}; | ||
@@ -695,4 +698,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)); | ||
@@ -703,3 +706,3 @@ } else { | ||
} | ||
if (versions[prev].loaded) { | ||
if (isLoaded(versions[prev])) { | ||
return false; | ||
@@ -706,0 +709,0 @@ } |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.0.0-next-20240115042410", | ||
"version": "0.0.0-next-20240115064607", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -48,4 +48,4 @@ "main": "./dist/index.cjs", | ||
"dependencies": { | ||
"@module-federation/sdk": "0.0.0-next-20240115042410" | ||
"@module-federation/sdk": "0.0.0-next-20240115064607" | ||
} | ||
} |
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
259859
5692
+ Added@module-federation/sdk@0.0.0-next-20240115064607(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240115042410(transitive)