Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@module-federation/runtime

Package Overview
Dependencies
Maintainers
8
Versions
615
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@module-federation/runtime - npm Package Compare versions

Comparing version 0.0.0-next-20241105130705 to 0.0.0-next-20241105211652

dist/embedded.esm.js

1

dist/helpers.cjs.js

@@ -12,2 +12,3 @@ 'use strict';

nativeGlobal: share.nativeGlobal,
globalLoading: share.globalLoading,
resetFederationGlobalInfo: share.resetFederationGlobalInfo,

@@ -14,0 +15,0 @@ getGlobalFederationInstance: share.getGlobalFederationInstance,

10

dist/package.json
{
"name": "@module-federation/runtime",
"version": "0.7.0",
"version": "0.6.16",
"author": "zhouxiao <codingzx@gmail.com>",

@@ -19,3 +19,3 @@ "main": "./index.cjs.js",

"types": "./dist/index.cjs.d.ts",
"import": "./dist/index.esm.mjs",
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"

@@ -25,3 +25,3 @@ },

"types": "./dist/helpers.cjs.d.ts",
"import": "./dist/helpers.esm.mjs",
"import": "./dist/helpers.esm.js",
"require": "./dist/helpers.cjs.js"

@@ -31,3 +31,3 @@ },

"types": "./dist/types.cjs.d.ts",
"import": "./dist/types.esm.mjs",
"import": "./dist/types.esm.js",
"require": "./dist/types.cjs.js"

@@ -37,3 +37,3 @@ },

"types": "./dist/embedded.cjs.d.ts",
"import": "./dist/embedded.esm.mjs",
"import": "./dist/embedded.esm.js",
"require": "./dist/embedded.cjs.js"

@@ -40,0 +40,0 @@ },

@@ -182,3 +182,3 @@ 'use strict';

globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.7.0";
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.16";
}

@@ -769,5 +769,2 @@ }

};
const isLoading = (shared)=>{
return Boolean(shared.loading);
};
function findSingletonVersionOrderByVersion(shareScopeMap, scope, pkgName) {

@@ -783,7 +780,4 @@ const versions = shareScopeMap[scope][pkgName];

const callback = function(prev, cur) {
const isLoadingOrLoaded = (shared)=>{
return isLoaded(shared) || isLoading(shared);
};
if (isLoadingOrLoaded(versions[cur])) {
if (isLoadingOrLoaded(versions[prev])) {
if (isLoaded(versions[cur])) {
if (isLoaded(versions[prev])) {
return Boolean(versionLt(prev, cur));

@@ -794,3 +788,3 @@ } else {

}
if (isLoadingOrLoaded(versions[prev])) {
if (isLoaded(versions[prev])) {
return false;

@@ -797,0 +791,0 @@ }

@@ -1,2 +0,2 @@

import { resetFederationGlobalInfo, getGlobalFederationInstance, setGlobalFederationInstance, getGlobalFederationConstructor, setGlobalFederationConstructor, getInfoWithoutType, getGlobalSnapshot, getTargetSnapshotInfoByModuleInfo, getGlobalSnapshotInfoByModuleInfo, setGlobalSnapshotInfoByModuleInfo, addGlobalSnapshot, getRemoteEntryExports, registerGlobalPlugins, getGlobalHostPlugins, getPreloaded, setPreloaded, Global } from './global';
import { globalLoading, resetFederationGlobalInfo, getGlobalFederationInstance, setGlobalFederationInstance, getGlobalFederationConstructor, setGlobalFederationConstructor, getInfoWithoutType, getGlobalSnapshot, getTargetSnapshotInfoByModuleInfo, getGlobalSnapshotInfoByModuleInfo, setGlobalSnapshotInfoByModuleInfo, addGlobalSnapshot, getRemoteEntryExports, registerGlobalPlugins, getGlobalHostPlugins, getPreloaded, setPreloaded, Global } from './global';
import { getRegisteredShare, getGlobalShareScope } from './utils/share';

@@ -10,2 +10,3 @@ interface IShareUtils {

nativeGlobal: typeof global;
globalLoading: typeof globalLoading;
resetFederationGlobalInfo: typeof resetFederationGlobalInfo;

@@ -12,0 +13,0 @@ getGlobalFederationInstance: typeof getGlobalFederationInstance;

@@ -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-20241105130705",
"version": "0.0.0-next-20241105211652",
"author": "zhouxiao <codingzx@gmail.com>",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.mjs",
"module": "./dist/index.esm.js",
"types": "./dist/index.cjs.d.ts",

@@ -19,3 +19,3 @@ "license": "MIT",

"types": "./dist/index.cjs.d.ts",
"import": "./dist/index.esm.mjs",
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"

@@ -25,3 +25,3 @@ },

"types": "./dist/helpers.cjs.d.ts",
"import": "./dist/helpers.esm.mjs",
"import": "./dist/helpers.esm.js",
"require": "./dist/helpers.cjs.js"

@@ -31,3 +31,3 @@ },

"types": "./dist/types.cjs.d.ts",
"import": "./dist/types.esm.mjs",
"import": "./dist/types.esm.js",
"require": "./dist/types.cjs.js"

@@ -37,3 +37,3 @@ },

"types": "./dist/embedded.cjs.d.ts",
"import": "./dist/embedded.esm.mjs",
"import": "./dist/embedded.esm.js",
"require": "./dist/embedded.cjs.js"

@@ -57,5 +57,5 @@ },

"dependencies": {
"@module-federation/sdk": "0.0.0-next-20241105130705",
"@module-federation/error-codes": "0.0.0-next-20241105130705"
"@module-federation/sdk": "0.0.0-next-20241105211652",
"@module-federation/error-codes": "0.6.14"
}
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc