@module-federation/error-codes 0.16.0 → 0.17.1

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 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 RUNTIME_008 = 'RUNTIME-008';
11
+ const RUNTIME_009 = 'RUNTIME-009';
11
12
  const TYPE_001 = 'TYPE-001';
12
13
  const BUILD_001 = 'BUILD-001';
13
14
  const BUILD_002 = 'BUILD-002';
@@ -47,7 +48,8 @@ const runtimeDescMap = {
47
48
  [RUNTIME_005]: 'Invalid loadShareSync function call from bundler runtime',
48
49
  [RUNTIME_006]: 'Invalid loadShareSync function call from runtime',
49
50
  [RUNTIME_007]: 'Failed to get remote snapshot.',
50
- [RUNTIME_008]: 'Failed to load script resources.'
51
+ [RUNTIME_008]: 'Failed to load script resources.',
52
+ [RUNTIME_009]: 'Please call createInstance first.'
51
53
  };
52
54
  const typeDescMap = {
53
55
  [TYPE_001]: 'Failed to generate type declaration. Execute the below cmd to reproduce and fix the error.'
@@ -68,6 +70,7 @@ exports.RUNTIME_005 = RUNTIME_005;
68
70
  exports.RUNTIME_006 = RUNTIME_006;
69
71
  exports.RUNTIME_007 = RUNTIME_007;
70
72
  exports.RUNTIME_008 = RUNTIME_008;
73
+ exports.RUNTIME_009 = RUNTIME_009;
71
74
  exports.TYPE_001 = TYPE_001;
72
75
  exports.buildDescMap = buildDescMap;
73
76
  exports.errorDescMap = errorDescMap;
@@ -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 RUNTIME_008 = 'RUNTIME-008';
9
+ const RUNTIME_009 = 'RUNTIME-009';
9
10
  const TYPE_001 = 'TYPE-001';
10
11
  const BUILD_001 = 'BUILD-001';
11
12
  const BUILD_002 = 'BUILD-002';
@@ -45,7 +46,8 @@ const runtimeDescMap = {
45
46
  [RUNTIME_005]: 'Invalid loadShareSync function call from bundler runtime',
46
47
  [RUNTIME_006]: 'Invalid loadShareSync function call from runtime',
47
48
  [RUNTIME_007]: 'Failed to get remote snapshot.',
48
- [RUNTIME_008]: 'Failed to load script resources.'
49
+ [RUNTIME_008]: 'Failed to load script resources.',
50
+ [RUNTIME_009]: 'Please call createInstance first.'
49
51
  };
50
52
  const typeDescMap = {
51
53
  [TYPE_001]: 'Failed to generate type declaration. Execute the below cmd to reproduce and fix the error.'
@@ -56,4 +58,4 @@ const buildDescMap = {
56
58
  };
57
59
  const errorDescMap = _extends({}, runtimeDescMap, typeDescMap, buildDescMap);
58
60
 
59
- export { BUILD_001, BUILD_002, RUNTIME_001, RUNTIME_002, RUNTIME_003, RUNTIME_004, RUNTIME_005, RUNTIME_006, RUNTIME_007, RUNTIME_008, TYPE_001, buildDescMap, errorDescMap, getShortErrorMsg, runtimeDescMap, typeDescMap };
61
+ export { BUILD_001, BUILD_002, RUNTIME_001, RUNTIME_002, RUNTIME_003, RUNTIME_004, RUNTIME_005, RUNTIME_006, RUNTIME_007, RUNTIME_008, RUNTIME_009, TYPE_001, buildDescMap, errorDescMap, getShortErrorMsg, runtimeDescMap, typeDescMap };
@@ -7,6 +7,7 @@ export declare const runtimeDescMap: {
7
7
  "RUNTIME-006": string;
8
8
  "RUNTIME-007": string;
9
9
  "RUNTIME-008": string;
10
+ "RUNTIME-009": string;
10
11
  };
11
12
  export declare const typeDescMap: {
12
13
  "TYPE-001": string;
@@ -27,4 +28,5 @@ export declare const errorDescMap: {
27
28
  "RUNTIME-006": string;
28
29
  "RUNTIME-007": string;
29
30
  "RUNTIME-008": string;
31
+ "RUNTIME-009": string;
30
32
  };
@@ -6,6 +6,7 @@ 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
8
  export declare const RUNTIME_008 = "RUNTIME-008";
9
+ export declare const RUNTIME_009 = "RUNTIME-009";
9
10
  export declare const TYPE_001 = "TYPE-001";
10
11
  export declare const BUILD_001 = "BUILD-001";
11
12
  export declare const BUILD_002 = "BUILD-002";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "zhanghang <hanric.zhang@gmail.com>",
5
5
  "public": true,
6
6
  "sideEffects": false,
7
- "version": "0.16.0",
7
+ "version": "0.17.1",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "main": "./dist/index.cjs.js",
26
26
  "module": "./dist/index.esm.mjs",
27
- "types": "./dist/index.cjs.d.ts",
27
+ "types": "./dist/index.d.ts",
28
28
  "exports": {
29
29
  ".": {
30
30
  "import": "./dist/index.esm.mjs",
@@ -34,7 +34,7 @@
34
34
  "typesVersions": {
35
35
  "*": {
36
36
  ".": [
37
- "./dist/index.cjs.d.ts"
37
+ "./dist/index.d.ts"
38
38
  ]
39
39
  }
40
40
  }
File without changes