@module-federation/error-codes 0.0.0-next-20241216122636 → 0.0.0-next-20241218082038
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 +7 -1
- package/dist/index.esm.mjs +6 -2
- package/dist/src/desc.d.ts +4 -0
- package/dist/src/error-codes.d.ts +1 -0
- package/dist/src/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8,6 +8,7 @@ const RUNTIME_005 = 'RUNTIME-005';
|
|
|
8
8
|
const RUNTIME_006 = 'RUNTIME-006';
|
|
9
9
|
const RUNTIME_007 = 'RUNTIME-007';
|
|
10
10
|
const TYPE_001 = 'TYPE-001';
|
|
11
|
+
const BUILD_001 = 'BUILD-001';
|
|
11
12
|
|
|
12
13
|
const getDocsUrl = (errorCode)=>{
|
|
13
14
|
const type = errorCode.split('-')[0].toLowerCase();
|
|
@@ -48,8 +49,12 @@ const runtimeDescMap = {
|
|
|
48
49
|
const typeDescMap = {
|
|
49
50
|
[TYPE_001]: 'Failed to generate type declaration.'
|
|
50
51
|
};
|
|
51
|
-
const
|
|
52
|
+
const buildDescMap = {
|
|
53
|
+
[BUILD_001]: 'Failed to find expose module.'
|
|
54
|
+
};
|
|
55
|
+
const errorDescMap = _extends({}, runtimeDescMap, typeDescMap, buildDescMap);
|
|
52
56
|
|
|
57
|
+
exports.BUILD_001 = BUILD_001;
|
|
53
58
|
exports.RUNTIME_001 = RUNTIME_001;
|
|
54
59
|
exports.RUNTIME_002 = RUNTIME_002;
|
|
55
60
|
exports.RUNTIME_003 = RUNTIME_003;
|
|
@@ -58,6 +63,7 @@ exports.RUNTIME_005 = RUNTIME_005;
|
|
|
58
63
|
exports.RUNTIME_006 = RUNTIME_006;
|
|
59
64
|
exports.RUNTIME_007 = RUNTIME_007;
|
|
60
65
|
exports.TYPE_001 = TYPE_001;
|
|
66
|
+
exports.buildDescMap = buildDescMap;
|
|
61
67
|
exports.errorDescMap = errorDescMap;
|
|
62
68
|
exports.getShortErrorMsg = getShortErrorMsg;
|
|
63
69
|
exports.runtimeDescMap = runtimeDescMap;
|
package/dist/index.esm.mjs
CHANGED
|
@@ -6,6 +6,7 @@ const RUNTIME_005 = 'RUNTIME-005';
|
|
|
6
6
|
const RUNTIME_006 = 'RUNTIME-006';
|
|
7
7
|
const RUNTIME_007 = 'RUNTIME-007';
|
|
8
8
|
const TYPE_001 = 'TYPE-001';
|
|
9
|
+
const BUILD_001 = 'BUILD-001';
|
|
9
10
|
|
|
10
11
|
const getDocsUrl = (errorCode)=>{
|
|
11
12
|
const type = errorCode.split('-')[0].toLowerCase();
|
|
@@ -46,6 +47,9 @@ const runtimeDescMap = {
|
|
|
46
47
|
const typeDescMap = {
|
|
47
48
|
[TYPE_001]: 'Failed to generate type declaration.'
|
|
48
49
|
};
|
|
49
|
-
const
|
|
50
|
+
const buildDescMap = {
|
|
51
|
+
[BUILD_001]: 'Failed to find expose module.'
|
|
52
|
+
};
|
|
53
|
+
const errorDescMap = _extends({}, runtimeDescMap, typeDescMap, buildDescMap);
|
|
50
54
|
|
|
51
|
-
export { RUNTIME_001, RUNTIME_002, RUNTIME_003, RUNTIME_004, RUNTIME_005, RUNTIME_006, RUNTIME_007, TYPE_001, errorDescMap, getShortErrorMsg, runtimeDescMap, typeDescMap };
|
|
55
|
+
export { BUILD_001, RUNTIME_001, RUNTIME_002, RUNTIME_003, RUNTIME_004, RUNTIME_005, RUNTIME_006, RUNTIME_007, TYPE_001, buildDescMap, errorDescMap, getShortErrorMsg, runtimeDescMap, typeDescMap };
|
package/dist/src/desc.d.ts
CHANGED
|
@@ -10,7 +10,11 @@ export declare const runtimeDescMap: {
|
|
|
10
10
|
export declare const typeDescMap: {
|
|
11
11
|
"TYPE-001": string;
|
|
12
12
|
};
|
|
13
|
+
export declare const buildDescMap: {
|
|
14
|
+
"BUILD-001": string;
|
|
15
|
+
};
|
|
13
16
|
export declare const errorDescMap: {
|
|
17
|
+
"BUILD-001": string;
|
|
14
18
|
"TYPE-001": string;
|
|
15
19
|
"RUNTIME-001": string;
|
|
16
20
|
"RUNTIME-002": string;
|
package/dist/src/index.d.ts
CHANGED