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
656
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-20241104024700 to 0.0.0-next-20241104032754

5

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

@@ -53,4 +53,5 @@ "main": "./index.cjs.js",

"dependencies": {
"@module-federation/sdk": "workspace:*"
"@module-federation/sdk": "workspace:*",
"@module-federation/error-codes": "workspace:*"
}
}

6

dist/share.cjs.js

@@ -95,6 +95,4 @@ 'use strict';

try {
// get real window (incase of sandbox)
return document.defaultView;
return new Function('return this')();
} catch (e) {
// node env
return globalThis;

@@ -183,3 +181,3 @@ }

globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.15";
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.14";
}

@@ -186,0 +184,0 @@ }

@@ -93,6 +93,4 @@ import { _ as _object_without_properties_loose, a as _extends } from './polyfills.esm.js';

try {
// get real window (incase of sandbox)
return document.defaultView;
return new Function('return this')();
} catch (e) {
// node env
return globalThis;

@@ -181,3 +179,3 @@ }

globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.15";
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.14";
}

@@ -874,2 +872,2 @@ }

export { warn as A, isPlainObject as B, isRemoteInfoWithEntry as C, DEFAULT_REMOTE_TYPE as D, isPureRemoteEntry as E, getRemoteEntryInfoFromSnapshot as F, Global as G, arrayOptions as H, formatShareConfigs as I, getTargetSharedOptions as J, addUniqueItem as K, getBuilderId as L, getGlobalShareScope as a, getGlobalFederationInstance as b, getGlobalFederationConstructor as c, setGlobalFederationConstructor as d, getInfoWithoutType as e, getGlobalSnapshot as f, getRegisteredShare as g, getTargetSnapshotInfoByModuleInfo as h, getGlobalSnapshotInfoByModuleInfo as i, setGlobalSnapshotInfoByModuleInfo as j, addGlobalSnapshot as k, getRemoteEntryExports as l, registerGlobalPlugins as m, nativeGlobal as n, getGlobalHostPlugins as o, getPreloaded as p, setPreloaded as q, resetFederationGlobalInfo as r, setGlobalFederationInstance as s, globalLoading as t, DEFAULT_SCOPE as u, assert as v, logger as w, getFMId as x, isObject as y, error as z };
export { isPlainObject as A, isRemoteInfoWithEntry as B, isPureRemoteEntry as C, DEFAULT_REMOTE_TYPE as D, getRemoteEntryInfoFromSnapshot as E, arrayOptions as F, Global as G, formatShareConfigs as H, getTargetSharedOptions as I, addUniqueItem as J, logger as K, getBuilderId as L, getGlobalShareScope as a, getGlobalFederationInstance as b, getGlobalFederationConstructor as c, setGlobalFederationConstructor as d, getInfoWithoutType as e, getGlobalSnapshot as f, getRegisteredShare as g, getTargetSnapshotInfoByModuleInfo as h, getGlobalSnapshotInfoByModuleInfo as i, setGlobalSnapshotInfoByModuleInfo as j, addGlobalSnapshot as k, getRemoteEntryExports as l, registerGlobalPlugins as m, nativeGlobal as n, getGlobalHostPlugins as o, getPreloaded as p, setPreloaded as q, resetFederationGlobalInfo as r, setGlobalFederationInstance as s, globalLoading as t, DEFAULT_SCOPE as u, assert as v, error as w, getFMId as x, isObject as y, warn as z };

@@ -77,2 +77,3 @@ import type { CreateScriptHookReturn, ModuleInfo } from '@module-federation/sdk';

customShareInfo?: Partial<Shared>;
from?: 'build' | 'runtime';
resolver?: (sharedOptions: ShareInfos[string]) => Shared;

@@ -79,0 +80,0 @@ }): () => T | never;

@@ -57,2 +57,3 @@ import { Federation } from '../global';

loadShareSync<T>(pkgName: string, extraOptions?: {
from?: 'build' | 'runtime';
customShareInfo?: Partial<Shared>;

@@ -59,0 +60,0 @@ resolver?: (sharedOptions: ShareInfos[string]) => Shared;

{
"name": "@module-federation/runtime",
"version": "0.0.0-next-20241104024700",
"version": "0.0.0-next-20241104032754",
"author": "zhouxiao <codingzx@gmail.com>",

@@ -53,4 +53,5 @@ "main": "./dist/index.cjs.js",

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

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

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