@module-federation/runtime
Advanced tools
Comparing version 0.0.0-next-20240905232541 to 0.0.0-next-20240906012942
'use strict'; | ||
var share = require('./share.cjs.js'); | ||
require('@swc/helpers/_/_extends'); | ||
require('@swc/helpers/_/_object_without_properties_loose'); | ||
require('./polyfills.cjs.js'); | ||
require('@module-federation/sdk'); | ||
@@ -7,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 '@swc/helpers/_/_extends'; | ||
import '@swc/helpers/_/_object_without_properties_loose'; | ||
import './polyfills.esm.js'; | ||
import '@module-federation/sdk'; | ||
@@ -5,0 +4,0 @@ |
@@ -53,5 +53,4 @@ { | ||
"dependencies": { | ||
"@module-federation/sdk": "workspace:*", | ||
"@swc/helpers": "^0.5.0" | ||
"@module-federation/sdk": "workspace:*" | ||
} | ||
} |
'use strict'; | ||
var _extends = require('@swc/helpers/_/_extends'); | ||
var _object_without_properties_loose = require('@swc/helpers/_/_object_without_properties_loose'); | ||
var polyfills = require('./polyfills.cjs.js'); | ||
var sdk = require('@module-federation/sdk'); | ||
@@ -227,3 +226,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" | ||
@@ -246,3 +245,3 @@ ]); | ||
const addGlobalSnapshot = (moduleInfos)=>{ | ||
nativeGlobal.__FEDERATION__.moduleInfo = _extends._({}, nativeGlobal.__FEDERATION__.moduleInfo, moduleInfos); | ||
nativeGlobal.__FEDERATION__.moduleInfo = polyfills._extends({}, nativeGlobal.__FEDERATION__.moduleInfo, moduleInfos); | ||
return ()=>{ | ||
@@ -656,3 +655,3 @@ const keys = Object.keys(moduleInfos); | ||
var _shareArgs_version, _shareArgs_scope, _shareArgs_strategy; | ||
return _extends._({ | ||
return polyfills._extends({ | ||
deps: [], | ||
@@ -663,3 +662,3 @@ useIn: [], | ||
}, shareArgs, { | ||
shareConfig: _extends._({ | ||
shareConfig: polyfills._extends({ | ||
requiredVersion: `^${shareArgs.version}`, | ||
@@ -690,3 +689,3 @@ singleton: false, | ||
}, {}); | ||
const shared = _extends._({}, globalOptions.shared); | ||
const shared = polyfills._extends({}, globalOptions.shared); | ||
Object.keys(shareInfos).forEach((shareKey)=>{ | ||
@@ -693,0 +692,0 @@ if (!shared[shareKey]) { |
@@ -1,3 +0,2 @@ | ||
import { _ as _$1 } from '@swc/helpers/_/_extends'; | ||
import { _ } from '@swc/helpers/_/_object_without_properties_loose'; | ||
import { a as _object_without_properties_loose, _ as _extends } from './polyfills.esm.js'; | ||
import { isBrowserEnv, isDebugMode } from '@module-federation/sdk'; | ||
@@ -225,3 +224,3 @@ | ||
if ('version' in moduleInfo && moduleInfo['version']) { | ||
const { version } = moduleInfo, resModuleInfo = _(moduleInfo, [ | ||
const { version } = moduleInfo, resModuleInfo = _object_without_properties_loose(moduleInfo, [ | ||
"version" | ||
@@ -244,3 +243,3 @@ ]); | ||
const addGlobalSnapshot = (moduleInfos)=>{ | ||
nativeGlobal.__FEDERATION__.moduleInfo = _$1({}, nativeGlobal.__FEDERATION__.moduleInfo, moduleInfos); | ||
nativeGlobal.__FEDERATION__.moduleInfo = _extends({}, nativeGlobal.__FEDERATION__.moduleInfo, moduleInfos); | ||
return ()=>{ | ||
@@ -654,3 +653,3 @@ const keys = Object.keys(moduleInfos); | ||
var _shareArgs_version, _shareArgs_scope, _shareArgs_strategy; | ||
return _$1({ | ||
return _extends({ | ||
deps: [], | ||
@@ -661,3 +660,3 @@ useIn: [], | ||
}, shareArgs, { | ||
shareConfig: _$1({ | ||
shareConfig: _extends({ | ||
requiredVersion: `^${shareArgs.version}`, | ||
@@ -688,3 +687,3 @@ singleton: false, | ||
}, {}); | ||
const shared = _$1({}, globalOptions.shared); | ||
const shared = _extends({}, globalOptions.shared); | ||
Object.keys(shareInfos).forEach((shareKey)=>{ | ||
@@ -691,0 +690,0 @@ if (!shared[shareKey]) { |
{ | ||
"name": "@module-federation/runtime", | ||
"version": "0.0.0-next-20240905232541", | ||
"version": "0.0.0-next-20240906012942", | ||
"author": "zhouxiao <codingzx@gmail.com>", | ||
@@ -53,5 +53,4 @@ "main": "./dist/index.cjs.js", | ||
"dependencies": { | ||
"@swc/helpers": "^0.5.0", | ||
"@module-federation/sdk": "0.0.0-next-20240905232541" | ||
"@module-federation/sdk": "0.0.0-next-20240906012942" | ||
} | ||
} |
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
296100
1
58
6783
+ Added@module-federation/sdk@0.0.0-next-20240906012942(transitive)
- Removed@swc/helpers@^0.5.0
- Removed@module-federation/sdk@0.0.0-next-20240905232541(transitive)
- Removed@swc/helpers@0.5.13(transitive)
- Removedtslib@2.8.1(transitive)