@module-federation/runtime
Advanced tools
Comparing version 0.0.0-next-20241105061413 to 0.0.0-next-20241105074545
@@ -19,3 +19,3 @@ { | ||
"types": "./dist/index.cjs.d.ts", | ||
"import": "./dist/index.esm.js", | ||
"import": "./dist/index.esm.mjs", | ||
"require": "./dist/index.cjs.js" | ||
@@ -25,3 +25,3 @@ }, | ||
"types": "./dist/helpers.cjs.d.ts", | ||
"import": "./dist/helpers.esm.js", | ||
"import": "./dist/helpers.esm.mjs", | ||
"require": "./dist/helpers.cjs.js" | ||
@@ -31,3 +31,3 @@ }, | ||
"types": "./dist/types.cjs.d.ts", | ||
"import": "./dist/types.esm.js", | ||
"import": "./dist/types.esm.mjs", | ||
"require": "./dist/types.cjs.js" | ||
@@ -37,3 +37,3 @@ }, | ||
"types": "./dist/embedded.cjs.d.ts", | ||
"import": "./dist/embedded.esm.js", | ||
"import": "./dist/embedded.esm.mjs", | ||
"require": "./dist/embedded.cjs.js" | ||
@@ -40,0 +40,0 @@ }, |
@@ -768,2 +768,5 @@ 'use strict'; | ||
}; | ||
const isLoading = (shared)=>{ | ||
return Boolean(shared.loading); | ||
}; | ||
function findSingletonVersionOrderByVersion(shareScopeMap, scope, pkgName) { | ||
@@ -779,4 +782,7 @@ const versions = shareScopeMap[scope][pkgName]; | ||
const callback = function(prev, cur) { | ||
if (isLoaded(versions[cur])) { | ||
if (isLoaded(versions[prev])) { | ||
const isLoadingOrLoaded = (shared)=>{ | ||
return isLoaded(shared) || isLoading(shared); | ||
}; | ||
if (isLoadingOrLoaded(versions[cur])) { | ||
if (isLoadingOrLoaded(versions[prev])) { | ||
return Boolean(versionLt(prev, cur)); | ||
@@ -787,3 +793,3 @@ } else { | ||
} | ||
if (isLoaded(versions[prev])) { | ||
if (isLoadingOrLoaded(versions[prev])) { | ||
return false; | ||
@@ -790,0 +796,0 @@ } |
@@ -82,3 +82,3 @@ import { ModuleInfo, GlobalModuleInfo } from '@module-federation/sdk'; | ||
loadEntry: AsyncHook<[{ | ||
loaderHook: FederationHost["loaderHook"]; | ||
createScriptHook: FederationHost["loaderHook"]["lifecycle"]["createScript"]; | ||
remoteInfo: RemoteInfo; | ||
@@ -85,0 +85,0 @@ remoteEntryExports?: RemoteEntryExports; |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.0.0-next-20241105061413", | ||
"version": "0.0.0-next-20241105074545", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
"main": "./dist/index.cjs.js", | ||
"module": "./dist/index.esm.js", | ||
"module": "./dist/index.esm.mjs", | ||
"types": "./dist/index.cjs.d.ts", | ||
@@ -19,3 +19,3 @@ "license": "MIT", | ||
"types": "./dist/index.cjs.d.ts", | ||
"import": "./dist/index.esm.js", | ||
"import": "./dist/index.esm.mjs", | ||
"require": "./dist/index.cjs.js" | ||
@@ -25,3 +25,3 @@ }, | ||
"types": "./dist/helpers.cjs.d.ts", | ||
"import": "./dist/helpers.esm.js", | ||
"import": "./dist/helpers.esm.mjs", | ||
"require": "./dist/helpers.cjs.js" | ||
@@ -31,3 +31,3 @@ }, | ||
"types": "./dist/types.cjs.d.ts", | ||
"import": "./dist/types.esm.js", | ||
"import": "./dist/types.esm.mjs", | ||
"require": "./dist/types.cjs.js" | ||
@@ -37,3 +37,3 @@ }, | ||
"types": "./dist/embedded.cjs.d.ts", | ||
"import": "./dist/embedded.esm.js", | ||
"import": "./dist/embedded.esm.mjs", | ||
"require": "./dist/embedded.cjs.js" | ||
@@ -57,5 +57,5 @@ }, | ||
"dependencies": { | ||
"@module-federation/sdk": "0.0.0-next-20241105061413", | ||
"@module-federation/sdk": "0.0.0-next-20241105074545", | ||
"@module-federation/error-codes": "0.6.14" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
323375
7546
+ Added@module-federation/sdk@0.0.0-next-20241105074545(transitive)
- Removed@module-federation/sdk@0.0.0-next-20241105061413(transitive)