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
683
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-20241106110902 to 0.0.0-next-20241107071851

8

dist/src/core.d.ts

@@ -70,6 +70,6 @@ import type { CreateScriptHookReturn, ModuleInfo } from '@module-federation/sdk';

bridgeHook: PluginSystem<{
beforeBridgeRender: SyncHook<[Record<string, any>], any>;
afterBridgeRender: SyncHook<[Record<string, any>], any>;
beforeBridgeDestroy: SyncHook<[Record<string, any>], any>;
afterBridgeDestroy: SyncHook<[Record<string, any>], any>;
beforeBridgeRender: SyncHook<[Record<string, any>], void | Record<string, any>>;
afterBridgeRender: SyncHook<[Record<string, any>], void | Record<string, any>>;
beforeBridgeDestroy: SyncHook<[Record<string, any>], void | Record<string, any>>;
afterBridgeDestroy: SyncHook<[Record<string, any>], void | Record<string, any>>;
}>;

@@ -76,0 +76,0 @@ constructor(userOptions: UserOptions);

@@ -82,6 +82,6 @@ import type * as IndexModule from './index';

get bridgeHook(): import("./utils/hooks").PluginSystem<{
beforeBridgeRender: import("./utils/hooks").SyncHook<[Record<string, any>], any>;
afterBridgeRender: import("./utils/hooks").SyncHook<[Record<string, any>], any>;
beforeBridgeDestroy: import("./utils/hooks").SyncHook<[Record<string, any>], any>;
afterBridgeDestroy: import("./utils/hooks").SyncHook<[Record<string, any>], any>;
beforeBridgeRender: import("./utils/hooks").SyncHook<[Record<string, any>], void | Record<string, any>>;
afterBridgeRender: import("./utils/hooks").SyncHook<[Record<string, any>], void | Record<string, any>>;
beforeBridgeDestroy: import("./utils/hooks").SyncHook<[Record<string, any>], void | Record<string, any>>;
afterBridgeDestroy: import("./utils/hooks").SyncHook<[Record<string, any>], void | Record<string, any>>;
}>;

@@ -88,0 +88,0 @@ initOptions(...args: Parameters<IndexModule.FederationHost['initOptions']>): import("./type").Options;

@@ -18,2 +18,6 @@ import { FederationHost } from '../core';

}>;
type ModuleBridgeLifeCycle = Module['host']['bridgeHook']['lifecycle'];
type ModuleBridgeLifeCycleCyclePartial = Partial<{
[k in keyof ModuleBridgeLifeCycle]: Parameters<ModuleBridgeLifeCycle[k]['on']>[0];
}>;
type SharedLifeCycle = SharedHandler['hooks']['lifecycle'];

@@ -27,3 +31,3 @@ type SharedLifeCycleCyclePartial = Partial<{

}>;
export type FederationRuntimePlugin = CoreLifeCyclePartial & SnapshotLifeCycleCyclePartial & SharedLifeCycleCyclePartial & RemoteLifeCycleCyclePartial & ModuleLifeCycleCyclePartial & {
export type FederationRuntimePlugin = CoreLifeCyclePartial & SnapshotLifeCycleCyclePartial & SharedLifeCycleCyclePartial & RemoteLifeCycleCyclePartial & ModuleLifeCycleCyclePartial & ModuleBridgeLifeCycleCyclePartial & {
name: string;

@@ -30,0 +34,0 @@ version?: string;

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

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

"dependencies": {
"@module-federation/sdk": "0.0.0-next-20241106110902",
"@module-federation/error-codes": "0.0.0-next-20241106110902"
"@module-federation/sdk": "0.0.0-next-20241107071851",
"@module-federation/error-codes": "0.0.0-next-20241107071851"
}
}
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