@module-federation/managers
Advanced tools
Comparing version 0.0.0-next-20240223065734 to 0.0.0-next-20240223091803
@@ -532,3 +532,3 @@ 'use strict'; | ||
key: "webpackEntry", | ||
get: // { '.' : './src/Button.jsx' } => { index: './src/Button.jsx' } | ||
get: // { '.' : './src/Button.jsx' } => { index: ['./src/Button.jsx'] } | ||
function get() { | ||
@@ -811,3 +811,3 @@ return Object.values(this.manifestModuleInfos).reduce(function(sum, cur) { | ||
_this = _super.apply(this, arguments); | ||
_define_property$1(_assert_this_initialized$1(_this), "_normalizedOptions", {}); | ||
_define_property$1(_assert_this_initialized$1(_this), "normalizedOptions", {}); | ||
_define_property$1(_assert_this_initialized$1(_this), "_pkgJsonManager", new PKGJsonManager()); | ||
@@ -824,8 +824,2 @@ return _this; | ||
{ | ||
key: "normalizedOptions", | ||
get: function get() { | ||
return this._normalizedOptions; | ||
} | ||
}, | ||
{ | ||
key: "statsRemoteWithEmptyUsedIn", | ||
@@ -835,4 +829,4 @@ get: function get() { | ||
var name = this.options.name; | ||
return Object.keys(this._normalizedOptions).reduce(function(sum, cur) { | ||
var normalizedOption = _this._normalizedOptions[cur]; | ||
return Object.keys(this.normalizedOptions).reduce(function(sum, cur) { | ||
var normalizedOption = _this.normalizedOptions[cur]; | ||
var curObj; | ||
@@ -872,4 +866,4 @@ if ("entry" in normalizedOption) { | ||
var _this = this; | ||
return Object.keys(this._normalizedOptions).reduce(function(sum, remoteAlias) { | ||
var remoteInfo = _this._normalizedOptions[remoteAlias]; | ||
return Object.keys(this.normalizedOptions).reduce(function(sum, remoteAlias) { | ||
var remoteInfo = _this.normalizedOptions[remoteAlias]; | ||
sum[remoteAlias] = sdk.composeKeyWithSeparator(remoteInfo.name, "entry" in remoteInfo ? remoteInfo.entry : remoteInfo.version); | ||
@@ -892,3 +886,3 @@ return sum; | ||
this._pkgJsonManager.getExposeGarfishModuleType(); | ||
this._normalizedOptions = Object.keys(options).reduce(function(sum, remoteAlias) { | ||
this.normalizedOptions = Object.keys(options).reduce(function(sum, remoteAlias) { | ||
if (Array.isArray(options)) { | ||
@@ -1157,4 +1151,4 @@ return sum; | ||
{ | ||
key: "_findPkg", | ||
value: function _findPkg(name, shareConfig) { | ||
key: "findPkg", | ||
value: function findPkg1(name, shareConfig) { | ||
try { | ||
@@ -1224,3 +1218,3 @@ var pkgPath = ""; | ||
var _item = _sliced_to_array(item, 2), sharedName = _item[0], sharedOptions = _item[1]; | ||
var pkgInfo = _this._findPkg(sharedName, sharedOptions); | ||
var pkgInfo = _this.findPkg(sharedName, sharedOptions); | ||
var sharedConfig = _this.transformSharedConfig(sharedOptions[sharedName]); | ||
@@ -1248,2 +1242,6 @@ normalizedShared[sharedName] = _object_spread_props(_object_spread({}, sharedConfig), { | ||
var types = /*#__PURE__*/Object.freeze({ | ||
__proto__: null | ||
}); | ||
exports.BasicPluginOptionsManager = BasicPluginOptionsManager; | ||
@@ -1254,2 +1252,3 @@ exports.ContainerManager = ContainerManager; | ||
exports.SharedManager = SharedManager; | ||
exports.types = types; | ||
exports.utils = utils; |
@@ -521,3 +521,3 @@ import path from 'path'; | ||
key: "webpackEntry", | ||
get: // { '.' : './src/Button.jsx' } => { index: './src/Button.jsx' } | ||
get: // { '.' : './src/Button.jsx' } => { index: ['./src/Button.jsx'] } | ||
function get() { | ||
@@ -800,3 +800,3 @@ return Object.values(this.manifestModuleInfos).reduce(function(sum, cur) { | ||
_this = _super.apply(this, arguments); | ||
_define_property$1(_assert_this_initialized$1(_this), "_normalizedOptions", {}); | ||
_define_property$1(_assert_this_initialized$1(_this), "normalizedOptions", {}); | ||
_define_property$1(_assert_this_initialized$1(_this), "_pkgJsonManager", new PKGJsonManager()); | ||
@@ -813,8 +813,2 @@ return _this; | ||
{ | ||
key: "normalizedOptions", | ||
get: function get() { | ||
return this._normalizedOptions; | ||
} | ||
}, | ||
{ | ||
key: "statsRemoteWithEmptyUsedIn", | ||
@@ -824,4 +818,4 @@ get: function get() { | ||
var name = this.options.name; | ||
return Object.keys(this._normalizedOptions).reduce(function(sum, cur) { | ||
var normalizedOption = _this._normalizedOptions[cur]; | ||
return Object.keys(this.normalizedOptions).reduce(function(sum, cur) { | ||
var normalizedOption = _this.normalizedOptions[cur]; | ||
var curObj; | ||
@@ -861,4 +855,4 @@ if ("entry" in normalizedOption) { | ||
var _this = this; | ||
return Object.keys(this._normalizedOptions).reduce(function(sum, remoteAlias) { | ||
var remoteInfo = _this._normalizedOptions[remoteAlias]; | ||
return Object.keys(this.normalizedOptions).reduce(function(sum, remoteAlias) { | ||
var remoteInfo = _this.normalizedOptions[remoteAlias]; | ||
sum[remoteAlias] = composeKeyWithSeparator(remoteInfo.name, "entry" in remoteInfo ? remoteInfo.entry : remoteInfo.version); | ||
@@ -881,3 +875,3 @@ return sum; | ||
this._pkgJsonManager.getExposeGarfishModuleType(); | ||
this._normalizedOptions = Object.keys(options).reduce(function(sum, remoteAlias) { | ||
this.normalizedOptions = Object.keys(options).reduce(function(sum, remoteAlias) { | ||
if (Array.isArray(options)) { | ||
@@ -1146,4 +1140,4 @@ return sum; | ||
{ | ||
key: "_findPkg", | ||
value: function _findPkg(name, shareConfig) { | ||
key: "findPkg", | ||
value: function findPkg1(name, shareConfig) { | ||
try { | ||
@@ -1213,3 +1207,3 @@ var pkgPath = ""; | ||
var _item = _sliced_to_array(item, 2), sharedName = _item[0], sharedOptions = _item[1]; | ||
var pkgInfo = _this._findPkg(sharedName, sharedOptions); | ||
var pkgInfo = _this.findPkg(sharedName, sharedOptions); | ||
var sharedConfig = _this.transformSharedConfig(sharedOptions[sharedName]); | ||
@@ -1237,2 +1231,6 @@ normalizedShared[sharedName] = _object_spread_props(_object_spread({}, sharedConfig), { | ||
export { BasicPluginOptionsManager, ContainerManager, PKGJsonManager, RemoteManager, SharedManager, utils }; | ||
var types = /*#__PURE__*/Object.freeze({ | ||
__proto__: null | ||
}); | ||
export { BasicPluginOptionsManager, ContainerManager, PKGJsonManager, RemoteManager, SharedManager, types, utils }; |
@@ -7,1 +7,2 @@ export { BasicPluginOptionsManager } from './BasicPluginOptionsManager'; | ||
export * as utils from './utils'; | ||
export * as types from './types'; |
@@ -10,6 +10,5 @@ import { RemoteEntryInfo, StatsRemote, containerReferencePlugin, moduleFederationPlugin } from '@module-federation/sdk'; | ||
declare class RemoteManager extends BasicPluginOptionsManager<moduleFederationPlugin.ModuleFederationPluginOptions> { | ||
private _normalizedOptions; | ||
normalizedOptions: NormalizedRemote; | ||
private _pkgJsonManager; | ||
get enable(): boolean; | ||
get normalizedOptions(): NormalizedRemote; | ||
get statsRemoteWithEmptyUsedIn(): StatsRemote[]; | ||
@@ -16,0 +15,0 @@ get dtsRemotes(): Record<string, string>; |
@@ -11,3 +11,7 @@ import { sharing } from 'webpack'; | ||
get normalizedOptions(): NormalizedSharedOptions; | ||
private _findPkg; | ||
findPkg(name: string, shareConfig: sharePlugin.SharedConfig): { | ||
pkg: Record<string, any>; | ||
path: string; | ||
pkgPath: string; | ||
}; | ||
transformSharedConfig(sharedConfig: sharePlugin.SharedConfig): sharePlugin.SharedConfig; | ||
@@ -14,0 +18,0 @@ normalizeOptions(options: moduleFederationPlugin.ModuleFederationPluginOptions['shared']): void; |
{ | ||
"name": "@module-federation/managers", | ||
"version": "0.0.0-next-20240223065734", | ||
"version": "0.0.0-next-20240223091803", | ||
"license": "MIT", | ||
@@ -24,3 +24,3 @@ "description": "Provide managers for helping handle mf data .", | ||
"fs-extra": "9.1.0", | ||
"@module-federation/sdk": "0.0.0-next-20240223065734" | ||
"@module-federation/sdk": "0.0.0-next-20240223091803" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
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
102804
2550
+ Added@module-federation/sdk@0.0.0-next-20240223091803(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240223065734(transitive)