@module-federation/error-codes 0.11.4 → 0.12.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/index.cjs.js +2 -2
- package/dist/index.esm.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -13,7 +13,7 @@ const BUILD_001 = 'BUILD-001';
|
|
|
13
13
|
|
|
14
14
|
const getDocsUrl = (errorCode)=>{
|
|
15
15
|
const type = errorCode.split('-')[0].toLowerCase();
|
|
16
|
-
return `https://module-federation.io/guide/troubleshooting/${type}/${errorCode}`;
|
|
16
|
+
return `View the docs to see how tow solve: https://module-federation.io/guide/troubleshooting/${type}/${errorCode}`;
|
|
17
17
|
};
|
|
18
18
|
const getShortErrorMsg = (errorCode, errorDescMap, args, originalErrorMsg)=>{
|
|
19
19
|
const msg = [
|
|
@@ -49,7 +49,7 @@ const runtimeDescMap = {
|
|
|
49
49
|
[RUNTIME_008]: 'Failed to load script resources.'
|
|
50
50
|
};
|
|
51
51
|
const typeDescMap = {
|
|
52
|
-
[TYPE_001]: 'Failed to generate type declaration.'
|
|
52
|
+
[TYPE_001]: 'Failed to generate type declaration. Execute the below cmd to reproduce and fix the error.'
|
|
53
53
|
};
|
|
54
54
|
const buildDescMap = {
|
|
55
55
|
[BUILD_001]: 'Failed to find expose module.'
|
package/dist/index.esm.mjs
CHANGED
|
@@ -11,7 +11,7 @@ const BUILD_001 = 'BUILD-001';
|
|
|
11
11
|
|
|
12
12
|
const getDocsUrl = (errorCode)=>{
|
|
13
13
|
const type = errorCode.split('-')[0].toLowerCase();
|
|
14
|
-
return `https://module-federation.io/guide/troubleshooting/${type}/${errorCode}`;
|
|
14
|
+
return `View the docs to see how tow solve: https://module-federation.io/guide/troubleshooting/${type}/${errorCode}`;
|
|
15
15
|
};
|
|
16
16
|
const getShortErrorMsg = (errorCode, errorDescMap, args, originalErrorMsg)=>{
|
|
17
17
|
const msg = [
|
|
@@ -47,7 +47,7 @@ const runtimeDescMap = {
|
|
|
47
47
|
[RUNTIME_008]: 'Failed to load script resources.'
|
|
48
48
|
};
|
|
49
49
|
const typeDescMap = {
|
|
50
|
-
[TYPE_001]: 'Failed to generate type declaration.'
|
|
50
|
+
[TYPE_001]: 'Failed to generate type declaration. Execute the below cmd to reproduce and fix the error.'
|
|
51
51
|
};
|
|
52
52
|
const buildDescMap = {
|
|
53
53
|
[BUILD_001]: 'Failed to find expose module.'
|