@module-federation/utilities 3.0.3-0 → 3.0.5
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/LICENSE +21 -0
- package/dist/index.cjs.d.ts +1 -0
- package/dist/index.cjs.default.js +1 -0
- package/dist/index.cjs.js +1426 -0
- package/dist/index.cjs.mjs +2 -0
- package/dist/index.esm.js +1393 -0
- package/dist/package.json +54 -0
- package/{src → dist/src}/index.d.ts +1 -1
- package/{src → dist/src}/utils/pure.d.ts +1 -1
- package/package.json +27 -14
- package/CHANGELOG.md +0 -944
- package/src/Logger.js +0 -15
- package/src/Logger.js.map +0 -1
- package/src/components/ErrorBoundary.js +0 -33
- package/src/components/ErrorBoundary.js.map +0 -1
- package/src/components/FederationBoundary.js +0 -71
- package/src/components/FederationBoundary.js.map +0 -1
- package/src/index.js +0 -37
- package/src/index.js.map +0 -1
- package/src/plugins/DelegateModulesPlugin.js +0 -84
- package/src/plugins/DelegateModulesPlugin.js.map +0 -1
- package/src/types/index.js +0 -5
- package/src/types/index.js.map +0 -1
- package/src/utils/common.js +0 -168
- package/src/utils/common.js.map +0 -1
- package/src/utils/correctImportPath.d.ts +0 -1
- package/src/utils/correctImportPath.js +0 -24
- package/src/utils/correctImportPath.js.map +0 -1
- package/src/utils/getRuntimeRemotes.js +0 -49
- package/src/utils/getRuntimeRemotes.js.map +0 -1
- package/src/utils/importDelegatedModule.js +0 -87
- package/src/utils/importDelegatedModule.js.map +0 -1
- package/src/utils/importRemote.js +0 -119
- package/src/utils/importRemote.js.map +0 -1
- package/src/utils/isEmpty.js +0 -11
- package/src/utils/isEmpty.js.map +0 -1
- package/src/utils/pure.js +0 -150
- package/src/utils/pure.js.map +0 -1
- package/src/utils/react.js +0 -9
- package/src/utils/react.js.map +0 -1
- /package/{src → dist/src}/Logger.d.ts +0 -0
- /package/{src → dist/src}/components/ErrorBoundary.d.ts +0 -0
- /package/{src → dist/src}/components/FederationBoundary.d.ts +0 -0
- /package/{src → dist/src}/plugins/DelegateModulesPlugin.d.ts +0 -0
- /package/{src → dist/src}/types/index.d.ts +0 -0
- /package/{src → dist/src}/utils/common.d.ts +0 -0
- /package/{src → dist/src}/utils/getRuntimeRemotes.d.ts +0 -0
- /package/{src → dist/src}/utils/importDelegatedModule.d.ts +0 -0
- /package/{src → dist/src}/utils/importRemote.d.ts +0 -0
- /package/{src → dist/src}/utils/isEmpty.d.ts +0 -0
- /package/{src → dist/src}/utils/react.d.ts +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@module-federation/utilities",
|
|
3
|
+
"version": "3.0.5",
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"main": "./index.cjs.js",
|
|
6
|
+
"types": "./dist/index.cjs.d.ts",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist/",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"repository": "https://github.com/module-federation/universe/tree/main/packages/utilities",
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"react": "18.2.0"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"webpack": "^5.40.0",
|
|
21
|
+
"react-dom": "^16 || ^17 || ^18",
|
|
22
|
+
"react": "^16 || ^17 || ^18"
|
|
23
|
+
},
|
|
24
|
+
"peerDependenciesMeta": {
|
|
25
|
+
"react": {
|
|
26
|
+
"optional": true
|
|
27
|
+
},
|
|
28
|
+
"react-dom": {
|
|
29
|
+
"optional": true
|
|
30
|
+
},
|
|
31
|
+
"next": {
|
|
32
|
+
"optional": true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"module": "./index.esm.js",
|
|
38
|
+
"import": "./index.cjs.mjs",
|
|
39
|
+
"default": "./index.cjs.js"
|
|
40
|
+
},
|
|
41
|
+
"./package.json": "./package.json"
|
|
42
|
+
},
|
|
43
|
+
"typesVersions": {
|
|
44
|
+
"*": {
|
|
45
|
+
".": [
|
|
46
|
+
"./dist/index.cjs.d.ts"
|
|
47
|
+
],
|
|
48
|
+
"type": [
|
|
49
|
+
"./dist/type.cjs.d.ts"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"module": "./index.esm.js"
|
|
54
|
+
}
|
|
@@ -4,7 +4,7 @@ export type { LoggerInstance } from './Logger';
|
|
|
4
4
|
export { createDelegatedModule, createRuntimeVariables, getContainer, injectScript, getModule, } from './utils/common';
|
|
5
5
|
export { isObjectEmpty } from './utils/isEmpty';
|
|
6
6
|
export { importRemote } from './utils/importRemote';
|
|
7
|
-
export { correctImportPath } from './utils/correctImportPath';
|
|
8
7
|
export { Logger } from './Logger';
|
|
9
8
|
export { getRuntimeRemotes } from './utils/getRuntimeRemotes';
|
|
10
9
|
export { importDelegatedModule } from './utils/importDelegatedModule';
|
|
10
|
+
export { extractUrlAndGlobal, loadScript } from './utils/pure';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RemoteVars, RuntimeRemote, RuntimeRemotesMap } from '../types
|
|
1
|
+
import { RemoteVars, RuntimeRemote, RuntimeRemotesMap } from '../types';
|
|
2
2
|
export declare const remoteVars: RemoteVars;
|
|
3
3
|
export declare const extractUrlAndGlobal: (urlAndGlobal: string) => [string, string];
|
|
4
4
|
export declare const loadScript: (keyOrRuntimeRemoteItem: string | RuntimeRemote) => any;
|
package/package.json
CHANGED
|
@@ -1,36 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/utilities",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"type": "commonjs",
|
|
5
|
-
"main": "./
|
|
6
|
-
"types": "
|
|
5
|
+
"main": "./dist/index.cjs.js",
|
|
6
|
+
"types": "./dist/index.cjs.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"publishConfig": {
|
|
9
|
-
"
|
|
9
|
+
"access": "public"
|
|
10
10
|
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist/",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
11
15
|
"repository": "https://github.com/module-federation/universe/tree/main/packages/utilities",
|
|
12
16
|
"devDependencies": {
|
|
13
|
-
"next": "13.5.3",
|
|
14
17
|
"react": "18.2.0"
|
|
15
18
|
},
|
|
16
19
|
"peerDependencies": {
|
|
17
|
-
"
|
|
18
|
-
"react": "^16 || ^17 || ^18",
|
|
20
|
+
"webpack": "^5.40.0",
|
|
19
21
|
"react-dom": "^16 || ^17 || ^18",
|
|
20
|
-
"
|
|
22
|
+
"react": "^16 || ^17 || ^18"
|
|
21
23
|
},
|
|
22
24
|
"peerDependenciesMeta": {
|
|
23
|
-
"next": {
|
|
24
|
-
"optional": true
|
|
25
|
-
},
|
|
26
25
|
"react": {
|
|
27
26
|
"optional": true
|
|
28
27
|
},
|
|
29
28
|
"react-dom": {
|
|
30
29
|
"optional": true
|
|
30
|
+
},
|
|
31
|
+
"next": {
|
|
32
|
+
"optional": true
|
|
31
33
|
}
|
|
32
34
|
},
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
+
"exports": {
|
|
36
|
+
".": "./dist/index.cjs.js",
|
|
37
|
+
"./package.json": "./package.json"
|
|
38
|
+
},
|
|
39
|
+
"typesVersions": {
|
|
40
|
+
"*": {
|
|
41
|
+
".": [
|
|
42
|
+
"./dist/index.cjs.d.ts"
|
|
43
|
+
],
|
|
44
|
+
"type": [
|
|
45
|
+
"./dist/type.cjs.d.ts"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
35
48
|
}
|
|
36
|
-
}
|
|
49
|
+
}
|