@module-federation/error-codes 0.0.0-next-20241212123451 → 0.0.0-next-20241213035216
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 +1 -4
- package/dist/index.esm.mjs +2 -4
- package/dist/src/desc.d.ts +0 -2
- package/dist/src/error-codes.d.ts +0 -1
- package/package.json +6 -1
package/dist/index.cjs.js
CHANGED
|
@@ -7,7 +7,6 @@ const RUNTIME_004 = 'RUNTIME-004';
|
|
|
7
7
|
const RUNTIME_005 = 'RUNTIME-005';
|
|
8
8
|
const RUNTIME_006 = 'RUNTIME-006';
|
|
9
9
|
const RUNTIME_007 = 'RUNTIME-007';
|
|
10
|
-
const RUNTIME_008 = 'RUNTIME-008';
|
|
11
10
|
const TYPE_001 = 'TYPE-001';
|
|
12
11
|
|
|
13
12
|
const getDocsUrl = (errorCode)=>{
|
|
@@ -44,8 +43,7 @@ const runtimeDescMap = {
|
|
|
44
43
|
[RUNTIME_004]: 'Failed to locate remote.',
|
|
45
44
|
[RUNTIME_005]: 'Invalid loadShareSync function call from bundler runtime',
|
|
46
45
|
[RUNTIME_006]: 'Invalid loadShareSync function call from runtime',
|
|
47
|
-
[RUNTIME_007]: 'Failed to get remote snapshot.'
|
|
48
|
-
[RUNTIME_008]: 'Failed to load script resources.'
|
|
46
|
+
[RUNTIME_007]: 'Failed to get remote snapshot.'
|
|
49
47
|
};
|
|
50
48
|
const typeDescMap = {
|
|
51
49
|
[TYPE_001]: 'Failed to generate type declaration.'
|
|
@@ -59,7 +57,6 @@ exports.RUNTIME_004 = RUNTIME_004;
|
|
|
59
57
|
exports.RUNTIME_005 = RUNTIME_005;
|
|
60
58
|
exports.RUNTIME_006 = RUNTIME_006;
|
|
61
59
|
exports.RUNTIME_007 = RUNTIME_007;
|
|
62
|
-
exports.RUNTIME_008 = RUNTIME_008;
|
|
63
60
|
exports.TYPE_001 = TYPE_001;
|
|
64
61
|
exports.errorDescMap = errorDescMap;
|
|
65
62
|
exports.getShortErrorMsg = getShortErrorMsg;
|
package/dist/index.esm.mjs
CHANGED
|
@@ -5,7 +5,6 @@ const RUNTIME_004 = 'RUNTIME-004';
|
|
|
5
5
|
const RUNTIME_005 = 'RUNTIME-005';
|
|
6
6
|
const RUNTIME_006 = 'RUNTIME-006';
|
|
7
7
|
const RUNTIME_007 = 'RUNTIME-007';
|
|
8
|
-
const RUNTIME_008 = 'RUNTIME-008';
|
|
9
8
|
const TYPE_001 = 'TYPE-001';
|
|
10
9
|
|
|
11
10
|
const getDocsUrl = (errorCode)=>{
|
|
@@ -42,12 +41,11 @@ const runtimeDescMap = {
|
|
|
42
41
|
[RUNTIME_004]: 'Failed to locate remote.',
|
|
43
42
|
[RUNTIME_005]: 'Invalid loadShareSync function call from bundler runtime',
|
|
44
43
|
[RUNTIME_006]: 'Invalid loadShareSync function call from runtime',
|
|
45
|
-
[RUNTIME_007]: 'Failed to get remote snapshot.'
|
|
46
|
-
[RUNTIME_008]: 'Failed to load script resources.'
|
|
44
|
+
[RUNTIME_007]: 'Failed to get remote snapshot.'
|
|
47
45
|
};
|
|
48
46
|
const typeDescMap = {
|
|
49
47
|
[TYPE_001]: 'Failed to generate type declaration.'
|
|
50
48
|
};
|
|
51
49
|
const errorDescMap = _extends({}, runtimeDescMap, typeDescMap);
|
|
52
50
|
|
|
53
|
-
export { RUNTIME_001, RUNTIME_002, RUNTIME_003, RUNTIME_004, RUNTIME_005, RUNTIME_006, RUNTIME_007,
|
|
51
|
+
export { RUNTIME_001, RUNTIME_002, RUNTIME_003, RUNTIME_004, RUNTIME_005, RUNTIME_006, RUNTIME_007, TYPE_001, errorDescMap, getShortErrorMsg, runtimeDescMap, typeDescMap };
|
package/dist/src/desc.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare const runtimeDescMap: {
|
|
|
6
6
|
"RUNTIME-005": string;
|
|
7
7
|
"RUNTIME-006": string;
|
|
8
8
|
"RUNTIME-007": string;
|
|
9
|
-
"RUNTIME-008": string;
|
|
10
9
|
};
|
|
11
10
|
export declare const typeDescMap: {
|
|
12
11
|
"TYPE-001": string;
|
|
@@ -20,5 +19,4 @@ export declare const errorDescMap: {
|
|
|
20
19
|
"RUNTIME-005": string;
|
|
21
20
|
"RUNTIME-006": string;
|
|
22
21
|
"RUNTIME-007": string;
|
|
23
|
-
"RUNTIME-008": string;
|
|
24
22
|
};
|
|
@@ -5,5 +5,4 @@ export declare const RUNTIME_004 = "RUNTIME-004";
|
|
|
5
5
|
export declare const RUNTIME_005 = "RUNTIME-005";
|
|
6
6
|
export declare const RUNTIME_006 = "RUNTIME-006";
|
|
7
7
|
export declare const RUNTIME_007 = "RUNTIME-007";
|
|
8
|
-
export declare const RUNTIME_008 = "RUNTIME-008";
|
|
9
8
|
export declare const TYPE_001 = "TYPE-001";
|
package/package.json
CHANGED
|
@@ -4,8 +4,13 @@
|
|
|
4
4
|
"author": "zhanghang <hanric.zhang@gmail.com>",
|
|
5
5
|
"public": true,
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "0.0.0-next-
|
|
7
|
+
"version": "0.0.0-next-20241213035216",
|
|
8
8
|
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/module-federation/core/",
|
|
12
|
+
"directory": "packages/error-codes"
|
|
13
|
+
},
|
|
9
14
|
"keywords": [
|
|
10
15
|
"Module Federation",
|
|
11
16
|
"error codes"
|