@module-federation/managers 0.7.1 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -354,6 +354,7 @@ let RemoteManager = class RemoteManager extends BasicPluginOptionsManager {
354
354
  }
355
355
  };
356
356
 
357
+ // @ts-ignore this pkg miss types
357
358
  let SharedManager = class SharedManager extends BasicPluginOptionsManager {
358
359
  get enable() {
359
360
  return Boolean(Object.keys(this.sharedPluginOptions.shared).length);
@@ -434,7 +435,7 @@ let SharedManager = class SharedManager extends BasicPluginOptionsManager {
434
435
  sharedOptions.forEach((item)=>{
435
436
  const [sharedName, sharedOptions] = item;
436
437
  const pkgInfo = this.findPkg(sharedName, sharedOptions);
437
- const sharedConfig = this.transformSharedConfig(sharedOptions[sharedName]);
438
+ const sharedConfig = this.transformSharedConfig(sharedOptions);
438
439
  normalizedShared[sharedName] = _extends({}, sharedConfig, {
439
440
  requiredVersion: typeof sharedConfig.requiredVersion !== 'undefined' ? sharedConfig.requiredVersion : `^${pkgInfo.pkg['version']}`,
440
441
  name: sharedName,
package/dist/index.esm.js CHANGED
@@ -352,6 +352,7 @@ let RemoteManager = class RemoteManager extends BasicPluginOptionsManager {
352
352
  }
353
353
  };
354
354
 
355
+ // @ts-ignore this pkg miss types
355
356
  let SharedManager = class SharedManager extends BasicPluginOptionsManager {
356
357
  get enable() {
357
358
  return Boolean(Object.keys(this.sharedPluginOptions.shared).length);
@@ -432,7 +433,7 @@ let SharedManager = class SharedManager extends BasicPluginOptionsManager {
432
433
  sharedOptions.forEach((item)=>{
433
434
  const [sharedName, sharedOptions] = item;
434
435
  const pkgInfo = this.findPkg(sharedName, sharedOptions);
435
- const sharedConfig = this.transformSharedConfig(sharedOptions[sharedName]);
436
+ const sharedConfig = this.transformSharedConfig(sharedOptions);
436
437
  normalizedShared[sharedName] = _extends({}, sharedConfig, {
437
438
  requiredVersion: typeof sharedConfig.requiredVersion !== 'undefined' ? sharedConfig.requiredVersion : `^${pkgInfo.pkg['version']}`,
438
439
  name: sharedName,
@@ -8,7 +8,7 @@ declare class ContainerManager extends BasicPluginOptionsManager<moduleFederatio
8
8
  get globalEntryName(): string | undefined;
9
9
  get containerPluginExposesOptions(): containerPlugin.ContainerPluginOptions['exposes'];
10
10
  get exposeFileNameImportMap(): Record<string, string[]>;
11
- get exposeObject(): Record<string, string>;
11
+ get exposeObject(): Record<string, string[]>;
12
12
  get exposeFiles(): string[];
13
13
  get manifestModuleInfos(): ManifestModuleInfos;
14
14
  get webpackEntry(): EntryObject;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/managers",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "license": "MIT",
5
5
  "description": "Provide managers for helping handle mf data .",
6
6
  "keywords": [
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "find-pkg": "2.0.0",
23
23
  "fs-extra": "9.1.0",
24
- "@module-federation/sdk": "0.7.1"
24
+ "@module-federation/sdk": "0.7.3"
25
25
  },
26
26
  "devDependencies": {
27
27
  "webpack": "5.93.0"
package/dist/package.json DELETED
@@ -1,43 +0,0 @@
1
- {
2
- "name": "@module-federation/managers",
3
- "version": "0.7.1",
4
- "license": "MIT",
5
- "description": "Provide managers for helping handle mf data .",
6
- "keywords": [
7
- "Module Federation"
8
- ],
9
- "files": [
10
- "dist/",
11
- "README.md"
12
- ],
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
- "author": "hanric <hanric.zhang@gmail.com>",
17
- "sideEffects": false,
18
- "main": "./index.cjs.js",
19
- "module": "./index.esm.js",
20
- "types": "./dist/index.cjs.d.ts",
21
- "dependencies": {
22
- "@module-federation/sdk": "workspace:*",
23
- "find-pkg": "2.0.0",
24
- "fs-extra": "9.1.0"
25
- },
26
- "devDependencies": {
27
- "webpack": "5.93.0"
28
- },
29
- "exports": {
30
- ".": {
31
- "import": "./dist/index.esm.js",
32
- "require": "./dist/index.cjs.js",
33
- "types": "./dist/index.cjs.d.ts"
34
- }
35
- },
36
- "typesVersions": {
37
- "*": {
38
- ".": [
39
- "./dist/index.cjs.d.ts"
40
- ]
41
- }
42
- }
43
- }