@module-federation/error-codes 0.6.14 → 0.7.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 CHANGED
@@ -15,7 +15,9 @@ const getDocsUrl = (errorCode)=>{
15
15
  };
16
16
  const getShortErrorMsg = (errorCode, errorDescMap, args, originalErrorMsg)=>{
17
17
  const msg = [
18
- errorDescMap[errorCode]
18
+ `${[
19
+ errorDescMap[errorCode]
20
+ ]} #${errorCode}`
19
21
  ];
20
22
  args && msg.push(`args: ${JSON.stringify(args)}`);
21
23
  msg.push(getDocsUrl(errorCode));
@@ -13,7 +13,9 @@ const getDocsUrl = (errorCode)=>{
13
13
  };
14
14
  const getShortErrorMsg = (errorCode, errorDescMap, args, originalErrorMsg)=>{
15
15
  const msg = [
16
- errorDescMap[errorCode]
16
+ `${[
17
+ errorDescMap[errorCode]
18
+ ]} #${errorCode}`
17
19
  ];
18
20
  args && msg.push(`args: ${JSON.stringify(args)}`);
19
21
  msg.push(getDocsUrl(errorCode));
package/dist/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.6.14",
7
+ "version": "0.7.0",
8
8
  "license": "MIT",
9
9
  "keywords": [
10
10
  "Module Federation",
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/index.cjs.d.ts",
23
23
  "exports": {
24
24
  ".": {
25
- "import": "./dist/index.esm.js",
25
+ "import": "./dist/index.esm.mjs",
26
26
  "require": "./dist/index.cjs.js"
27
27
  }
28
28
  },
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.6.14",
7
+ "version": "0.7.0",
8
8
  "license": "MIT",
9
9
  "keywords": [
10
10
  "Module Federation",
@@ -18,11 +18,11 @@
18
18
  "access": "public"
19
19
  },
20
20
  "main": "./dist/index.cjs.js",
21
- "module": "./dist/index.esm.js",
21
+ "module": "./dist/index.esm.mjs",
22
22
  "types": "./dist/index.cjs.d.ts",
23
23
  "exports": {
24
24
  ".": {
25
- "import": "./dist/index.esm.js",
25
+ "import": "./dist/index.esm.mjs",
26
26
  "require": "./dist/index.cjs.js"
27
27
  }
28
28
  },