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
616
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-canary-1701851696898 to 0.0.0-canary-1702191054002

2

helpers.esm.js

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

import { n as getRegisteredShare, x as getGlobalShareScope, I as nativeGlobal, J as resetFederationGlobalInfo, C as getGlobalFederationInstance, F as setGlobalFederationInstance, E as getGlobalFederationConstructor, B as setGlobalFederationConstructor, o as getInfoWithoutType, u as getGlobalSnapshot, K as getTargetSnapshotInfoByModuleInfo, r as getGlobalSnapshotInfoByModuleInfo, t as setGlobalSnapshotInfoByModuleInfo, L as addGlobalSnapshot, c as getRemoteEntryExports, H as registerGlobalPlugins, g as getGlobalHostPlugins, p as getPreloaded, q as setPreloaded } from './share.esm.js';
import { l as getRegisteredShare, u as getGlobalShareScope, F as nativeGlobal, H as resetFederationGlobalInfo, A as getGlobalFederationInstance, C as setGlobalFederationInstance, B as getGlobalFederationConstructor, z as setGlobalFederationConstructor, m as getInfoWithoutType, r as getGlobalSnapshot, I as getTargetSnapshotInfoByModuleInfo, p as getGlobalSnapshotInfoByModuleInfo, q as setGlobalSnapshotInfoByModuleInfo, J as addGlobalSnapshot, c as getRemoteEntryExports, E as registerGlobalPlugins, g as getGlobalHostPlugins, n as getPreloaded, o as setPreloaded } from './share.esm.js';

@@ -3,0 +3,0 @@ const ShareUtils = {

{
"name": "@module-federation/runtime",
"version": "0.0.0-canary-1701851696898",
"version": "0.0.0-canary-1702191054002",
"author": "zhouxiao <codingzx@gmail.com>",

@@ -37,5 +37,6 @@ "main": "./index.cjs.js",

"dependencies": {
"@module-federation/sdk": "0.0.0-canary-1701851696898"
"@module-federation/sdk": "0.0.0-canary-1702191054002",
"semver": "7.5.4"
},
"peerDependencies": {}
}

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

}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async function safeWrapper(callback, disableWarn) {
try {
const res = await callback();
return res;
} catch (e) {
!disableWarn && warn(e);
return;
}
}
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types

@@ -75,10 +65,2 @@ function safeToString(info) {

}
function isStaticResourcesEqual(url1, url2) {
const REG_EXP = /^(https?:)?\/\//i;
// Transform url1 and url2 into relative paths
const relativeUrl1 = url1.replace(REG_EXP, '').replace(/\/$/, '');
const relativeUrl2 = url2.replace(REG_EXP, '').replace(/\/$/, '');
// Check if the relative paths are identical
return relativeUrl1 === relativeUrl2;
}

@@ -803,3 +785,2 @@ function _extends$1() {

exports.isRemoteInfoWithEntry = isRemoteInfoWithEntry;
exports.isStaticResourcesEqual = isStaticResourcesEqual;
exports.nativeGlobal = nativeGlobal;

@@ -809,3 +790,2 @@ exports.registerGlobalPlugins = registerGlobalPlugins;

exports.safeToString = safeToString;
exports.safeWrapper = safeWrapper;
exports.setGlobalFederationConstructor = setGlobalFederationConstructor;

@@ -812,0 +792,0 @@ exports.setGlobalFederationInstance = setGlobalFederationInstance;

@@ -46,12 +46,2 @@ function getBuilderId() {

}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async function safeWrapper(callback, disableWarn) {
try {
const res = await callback();
return res;
} catch (e) {
!disableWarn && warn(e);
return;
}
}
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types

@@ -73,10 +63,2 @@ function safeToString(info) {

}
function isStaticResourcesEqual(url1, url2) {
const REG_EXP = /^(https?:)?\/\//i;
// Transform url1 and url2 into relative paths
const relativeUrl1 = url1.replace(REG_EXP, '').replace(/\/$/, '');
const relativeUrl2 = url2.replace(REG_EXP, '').replace(/\/$/, '');
// Check if the relative paths are identical
return relativeUrl1 === relativeUrl2;
}

@@ -774,2 +756,2 @@ function _extends$1() {

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

@@ -82,3 +82,3 @@ import type { ModuleInfo, GlobalModuleInfo } from '@module-federation/sdk';

}>;
releaseNumber: number;
releaseNumber: string;
version: string;

@@ -85,0 +85,0 @@ name: string;

@@ -5,3 +5,3 @@ import { FederationHost } from './core';

export { registerGlobalPlugins } from './global';
export { loadScript } from './utils';
export { loadScript } from '@module-federation/sdk';
export type { Federation } from './global';

@@ -8,0 +8,0 @@ export declare function init(options: UserOptions): FederationHost;

@@ -5,3 +5,2 @@ export * from './env';

export * from './logger';
export * from './dom';
export * from './plugin';

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