@module-federation/runtime
Advanced tools
Comparing version 0.0.0-next-20240909092952 to 0.0.0-next-20240909101028
'use strict'; | ||
var share = require('./share.cjs.js'); | ||
require('./polyfills.cjs.js'); | ||
require('@module-federation/sdk'); | ||
@@ -5,0 +6,0 @@ |
import { o as getRegisteredShare, y as getGlobalShareScope, G as Global, I as nativeGlobal, J as resetFederationGlobalInfo, C as getGlobalFederationInstance, F as setGlobalFederationInstance, E as getGlobalFederationConstructor, B as setGlobalFederationConstructor, m as getInfoWithoutType, u as getGlobalSnapshot, K as getTargetSnapshotInfoByModuleInfo, q as getGlobalSnapshotInfoByModuleInfo, t as setGlobalSnapshotInfoByModuleInfo, r as addGlobalSnapshot, c as getRemoteEntryExports, H as registerGlobalPlugins, g as getGlobalHostPlugins, n as getPreloaded, s as setPreloaded } from './share.esm.js'; | ||
import './polyfills.esm.js'; | ||
import '@module-federation/sdk'; | ||
@@ -3,0 +4,0 @@ |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -32,2 +32,7 @@ "main": "./index.cjs.js", | ||
}, | ||
"./embedded": { | ||
"types": "./dist/embedded.cjs.d.ts", | ||
"import": "./dist/embedded.esm.js", | ||
"require": "./dist/embedded.cjs.js" | ||
}, | ||
"./*": "./*" | ||
@@ -34,0 +39,0 @@ }, |
'use strict'; | ||
var polyfills = require('./polyfills.cjs.js'); | ||
var sdk = require('@module-federation/sdk'); | ||
@@ -90,28 +91,2 @@ | ||
function _extends$1() { | ||
_extends$1 = Object.assign || function(target) { | ||
for(var i = 1; i < arguments.length; i++){ | ||
var source = arguments[i]; | ||
for(var key in source){ | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
return _extends$1.apply(this, arguments); | ||
} | ||
function _object_without_properties_loose(source, excluded) { | ||
if (source == null) return {}; | ||
var target = {}; | ||
var sourceKeys = Object.keys(source); | ||
var key, i; | ||
for(i = 0; i < sourceKeys.length; i++){ | ||
key = sourceKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
target[key] = source[key]; | ||
} | ||
return target; | ||
} | ||
const nativeGlobal = (()=>{ | ||
@@ -204,3 +179,3 @@ try { | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.0"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.1"; | ||
} | ||
@@ -253,3 +228,3 @@ } | ||
if ('version' in moduleInfo && moduleInfo['version']) { | ||
const { version } = moduleInfo, resModuleInfo = _object_without_properties_loose(moduleInfo, [ | ||
const { version } = moduleInfo, resModuleInfo = polyfills._object_without_properties_loose(moduleInfo, [ | ||
"version" | ||
@@ -272,3 +247,3 @@ ]); | ||
const addGlobalSnapshot = (moduleInfos)=>{ | ||
nativeGlobal.__FEDERATION__.moduleInfo = _extends$1({}, nativeGlobal.__FEDERATION__.moduleInfo, moduleInfos); | ||
nativeGlobal.__FEDERATION__.moduleInfo = polyfills._extends({}, nativeGlobal.__FEDERATION__.moduleInfo, moduleInfos); | ||
return ()=>{ | ||
@@ -666,16 +641,2 @@ const keys = Object.keys(moduleInfos); | ||
function _extends() { | ||
_extends = Object.assign || function(target) { | ||
for(var i = 1; i < arguments.length; i++){ | ||
var source = arguments[i]; | ||
for(var key in source){ | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
function formatShare(shareArgs, from, name, shareStrategy) { | ||
@@ -697,3 +658,3 @@ let get; | ||
var _shareArgs_version, _shareArgs_scope, _shareArgs_strategy; | ||
return _extends({ | ||
return polyfills._extends({ | ||
deps: [], | ||
@@ -704,3 +665,3 @@ useIn: [], | ||
}, shareArgs, { | ||
shareConfig: _extends({ | ||
shareConfig: polyfills._extends({ | ||
requiredVersion: `^${shareArgs.version}`, | ||
@@ -731,3 +692,3 @@ singleton: false, | ||
}, {}); | ||
const shared = _extends({}, globalOptions.shared); | ||
const shared = polyfills._extends({}, globalOptions.shared); | ||
Object.keys(shareInfos).forEach((shareKey)=>{ | ||
@@ -734,0 +695,0 @@ if (!shared[shareKey]) { |
@@ -0,1 +1,2 @@ | ||
import { a as _object_without_properties_loose, _ as _extends } from './polyfills.esm.js'; | ||
import { isBrowserEnv, isDebugMode } from '@module-federation/sdk'; | ||
@@ -88,28 +89,2 @@ | ||
function _extends$1() { | ||
_extends$1 = Object.assign || function(target) { | ||
for(var i = 1; i < arguments.length; i++){ | ||
var source = arguments[i]; | ||
for(var key in source){ | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
return _extends$1.apply(this, arguments); | ||
} | ||
function _object_without_properties_loose(source, excluded) { | ||
if (source == null) return {}; | ||
var target = {}; | ||
var sourceKeys = Object.keys(source); | ||
var key, i; | ||
for(i = 0; i < sourceKeys.length; i++){ | ||
key = sourceKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
target[key] = source[key]; | ||
} | ||
return target; | ||
} | ||
const nativeGlobal = (()=>{ | ||
@@ -202,3 +177,3 @@ try { | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.0"; | ||
globalThis.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.1"; | ||
} | ||
@@ -269,3 +244,3 @@ } | ||
const addGlobalSnapshot = (moduleInfos)=>{ | ||
nativeGlobal.__FEDERATION__.moduleInfo = _extends$1({}, nativeGlobal.__FEDERATION__.moduleInfo, moduleInfos); | ||
nativeGlobal.__FEDERATION__.moduleInfo = _extends({}, nativeGlobal.__FEDERATION__.moduleInfo, moduleInfos); | ||
return ()=>{ | ||
@@ -663,16 +638,2 @@ const keys = Object.keys(moduleInfos); | ||
function _extends() { | ||
_extends = Object.assign || function(target) { | ||
for(var i = 1; i < arguments.length; i++){ | ||
var source = arguments[i]; | ||
for(var key in source){ | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
function formatShare(shareArgs, from, name, shareStrategy) { | ||
@@ -679,0 +640,0 @@ let get; |
@@ -0,2 +1,3 @@ | ||
export { isBrowserEnv, isDebugMode } from '@module-federation/sdk'; | ||
export declare function isDevelopmentMode(): boolean; | ||
export declare function getBuilderId(): string; |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.0.0-next-20240909092952", | ||
"version": "0.0.0-next-20240909101028", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -32,2 +32,7 @@ "main": "./dist/index.cjs.js", | ||
}, | ||
"./embedded": { | ||
"types": "./dist/embedded.cjs.d.ts", | ||
"import": "./dist/embedded.esm.js", | ||
"require": "./dist/embedded.cjs.js" | ||
}, | ||
"./*": "./*" | ||
@@ -49,4 +54,4 @@ }, | ||
"dependencies": { | ||
"@module-federation/sdk": "0.0.0-next-20240909092952" | ||
"@module-federation/sdk": "0.0.0-next-20240909101028" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58
296100
6783
+ Added@module-federation/sdk@0.0.0-next-20240909101028(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240909092952(transitive)