@module-federation/error-codes 0.8.6 → 0.8.7
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 +11 -2
- package/dist/index.esm.mjs +9 -3
- package/dist/src/desc.d.ts +6 -0
- package/dist/src/error-codes.d.ts +2 -0
- package/dist/src/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -7,7 +7,9 @@ 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';
|
|
10
11
|
const TYPE_001 = 'TYPE-001';
|
|
12
|
+
const BUILD_001 = 'BUILD-001';
|
|
11
13
|
|
|
12
14
|
const getDocsUrl = (errorCode)=>{
|
|
13
15
|
const type = errorCode.split('-')[0].toLowerCase();
|
|
@@ -43,13 +45,18 @@ const runtimeDescMap = {
|
|
|
43
45
|
[RUNTIME_004]: 'Failed to locate remote.',
|
|
44
46
|
[RUNTIME_005]: 'Invalid loadShareSync function call from bundler runtime',
|
|
45
47
|
[RUNTIME_006]: 'Invalid loadShareSync function call from runtime',
|
|
46
|
-
[RUNTIME_007]: 'Failed to get remote snapshot.'
|
|
48
|
+
[RUNTIME_007]: 'Failed to get remote snapshot.',
|
|
49
|
+
[RUNTIME_008]: 'Failed to load script resources.'
|
|
47
50
|
};
|
|
48
51
|
const typeDescMap = {
|
|
49
52
|
[TYPE_001]: 'Failed to generate type declaration.'
|
|
50
53
|
};
|
|
51
|
-
const
|
|
54
|
+
const buildDescMap = {
|
|
55
|
+
[BUILD_001]: 'Failed to find expose module.'
|
|
56
|
+
};
|
|
57
|
+
const errorDescMap = _extends({}, runtimeDescMap, typeDescMap, buildDescMap);
|
|
52
58
|
|
|
59
|
+
exports.BUILD_001 = BUILD_001;
|
|
53
60
|
exports.RUNTIME_001 = RUNTIME_001;
|
|
54
61
|
exports.RUNTIME_002 = RUNTIME_002;
|
|
55
62
|
exports.RUNTIME_003 = RUNTIME_003;
|
|
@@ -57,7 +64,9 @@ exports.RUNTIME_004 = RUNTIME_004;
|
|
|
57
64
|
exports.RUNTIME_005 = RUNTIME_005;
|
|
58
65
|
exports.RUNTIME_006 = RUNTIME_006;
|
|
59
66
|
exports.RUNTIME_007 = RUNTIME_007;
|
|
67
|
+
exports.RUNTIME_008 = RUNTIME_008;
|
|
60
68
|
exports.TYPE_001 = TYPE_001;
|
|
69
|
+
exports.buildDescMap = buildDescMap;
|
|
61
70
|
exports.errorDescMap = errorDescMap;
|
|
62
71
|
exports.getShortErrorMsg = getShortErrorMsg;
|
|
63
72
|
exports.runtimeDescMap = runtimeDescMap;
|
package/dist/index.esm.mjs
CHANGED
|
@@ -5,7 +5,9 @@ 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';
|
|
8
9
|
const TYPE_001 = 'TYPE-001';
|
|
10
|
+
const BUILD_001 = 'BUILD-001';
|
|
9
11
|
|
|
10
12
|
const getDocsUrl = (errorCode)=>{
|
|
11
13
|
const type = errorCode.split('-')[0].toLowerCase();
|
|
@@ -41,11 +43,15 @@ const runtimeDescMap = {
|
|
|
41
43
|
[RUNTIME_004]: 'Failed to locate remote.',
|
|
42
44
|
[RUNTIME_005]: 'Invalid loadShareSync function call from bundler runtime',
|
|
43
45
|
[RUNTIME_006]: 'Invalid loadShareSync function call from runtime',
|
|
44
|
-
[RUNTIME_007]: 'Failed to get remote snapshot.'
|
|
46
|
+
[RUNTIME_007]: 'Failed to get remote snapshot.',
|
|
47
|
+
[RUNTIME_008]: 'Failed to load script resources.'
|
|
45
48
|
};
|
|
46
49
|
const typeDescMap = {
|
|
47
50
|
[TYPE_001]: 'Failed to generate type declaration.'
|
|
48
51
|
};
|
|
49
|
-
const
|
|
52
|
+
const buildDescMap = {
|
|
53
|
+
[BUILD_001]: 'Failed to find expose module.'
|
|
54
|
+
};
|
|
55
|
+
const errorDescMap = _extends({}, runtimeDescMap, typeDescMap, buildDescMap);
|
|
50
56
|
|
|
51
|
-
export { RUNTIME_001, RUNTIME_002, RUNTIME_003, RUNTIME_004, RUNTIME_005, RUNTIME_006, RUNTIME_007, TYPE_001, errorDescMap, getShortErrorMsg, runtimeDescMap, typeDescMap };
|
|
57
|
+
export { BUILD_001, RUNTIME_001, RUNTIME_002, RUNTIME_003, RUNTIME_004, RUNTIME_005, RUNTIME_006, RUNTIME_007, RUNTIME_008, TYPE_001, buildDescMap, errorDescMap, getShortErrorMsg, runtimeDescMap, typeDescMap };
|
package/dist/src/desc.d.ts
CHANGED
|
@@ -6,11 +6,16 @@ export declare const runtimeDescMap: {
|
|
|
6
6
|
"RUNTIME-005": string;
|
|
7
7
|
"RUNTIME-006": string;
|
|
8
8
|
"RUNTIME-007": string;
|
|
9
|
+
"RUNTIME-008": string;
|
|
9
10
|
};
|
|
10
11
|
export declare const typeDescMap: {
|
|
11
12
|
"TYPE-001": string;
|
|
12
13
|
};
|
|
14
|
+
export declare const buildDescMap: {
|
|
15
|
+
"BUILD-001": string;
|
|
16
|
+
};
|
|
13
17
|
export declare const errorDescMap: {
|
|
18
|
+
"BUILD-001": string;
|
|
14
19
|
"TYPE-001": string;
|
|
15
20
|
"RUNTIME-001": string;
|
|
16
21
|
"RUNTIME-002": string;
|
|
@@ -19,4 +24,5 @@ export declare const errorDescMap: {
|
|
|
19
24
|
"RUNTIME-005": string;
|
|
20
25
|
"RUNTIME-006": string;
|
|
21
26
|
"RUNTIME-007": string;
|
|
27
|
+
"RUNTIME-008": string;
|
|
22
28
|
};
|
|
@@ -5,4 +5,6 @@ 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";
|
|
8
9
|
export declare const TYPE_001 = "TYPE-001";
|
|
10
|
+
export declare const BUILD_001 = "BUILD-001";
|
package/dist/src/index.d.ts
CHANGED