@module-federation/managers 2.1.0 → 2.2.0
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/SharedManager.d.mts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { moduleFederationPlugin, sharePlugin } from '@module-federation/sdk';
|
|
2
2
|
import { NormalizedSharedOptions } from './types';
|
|
3
3
|
import { BasicPluginOptionsManager } from './BasicPluginOptionsManager';
|
|
4
|
-
type SharePluginOptions = ConstructorParameters<typeof sharePlugin.SharePlugin>[0];
|
|
5
4
|
declare class SharedManager extends BasicPluginOptionsManager<moduleFederationPlugin.ModuleFederationPluginOptions> {
|
|
6
5
|
normalizedOptions: NormalizedSharedOptions;
|
|
7
6
|
get enable(): boolean;
|
|
8
|
-
get sharedPluginOptions(): SharePluginOptions;
|
|
7
|
+
get sharedPluginOptions(): sharePlugin.SharePluginOptions;
|
|
9
8
|
findPkg(name: string, shareConfig: moduleFederationPlugin.SharedConfig): {
|
|
10
9
|
pkg: Record<string, any>;
|
|
11
10
|
path: string;
|
package/dist/SharedManager.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { moduleFederationPlugin, sharePlugin } from '@module-federation/sdk';
|
|
2
2
|
import { NormalizedSharedOptions } from './types';
|
|
3
3
|
import { BasicPluginOptionsManager } from './BasicPluginOptionsManager';
|
|
4
|
-
type SharePluginOptions = ConstructorParameters<typeof sharePlugin.SharePlugin>[0];
|
|
5
4
|
declare class SharedManager extends BasicPluginOptionsManager<moduleFederationPlugin.ModuleFederationPluginOptions> {
|
|
6
5
|
normalizedOptions: NormalizedSharedOptions;
|
|
7
6
|
get enable(): boolean;
|
|
8
|
-
get sharedPluginOptions(): SharePluginOptions;
|
|
7
|
+
get sharedPluginOptions(): sharePlugin.SharePluginOptions;
|
|
9
8
|
findPkg(name: string, shareConfig: moduleFederationPlugin.SharedConfig): {
|
|
10
9
|
pkg: Record<string, any>;
|
|
11
10
|
path: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/managers",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Provide managers for helping handle mf data .",
|
|
6
6
|
"keywords": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"find-pkg": "2.0.0",
|
|
29
29
|
"fs-extra": "9.1.0",
|
|
30
|
-
"@module-federation/sdk": "2.
|
|
30
|
+
"@module-federation/sdk": "2.2.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"webpack": "5.104.1"
|
|
@@ -50,5 +50,12 @@
|
|
|
50
50
|
"./dist/index.d.ts"
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "rslib build",
|
|
56
|
+
"lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.ts\" \"package.json\"",
|
|
57
|
+
"test": "pnpm exec jest --config jest.config.js --passWithNoTests",
|
|
58
|
+
"test:ci": "pnpm exec jest --config jest.config.js --passWithNoTests --ci --coverage",
|
|
59
|
+
"pre-release": "pnpm run test && pnpm run build"
|
|
53
60
|
}
|
|
54
61
|
}
|