@portal-hq/utils 4.1.3 → 4.1.5

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.
@@ -73,6 +73,7 @@ class PortalMpcError extends Error {
73
73
  constructor(error) {
74
74
  super(error.message);
75
75
  this.code = error.code;
76
+ this.id = error.id;
76
77
  }
77
78
  }
78
79
  exports.PortalMpcError = PortalMpcError;
@@ -1 +1 @@
1
- { "version": "4.1.3" }
1
+ { "version": "4.1.5" }
@@ -70,5 +70,6 @@ export class PortalMpcError extends Error {
70
70
  constructor(error) {
71
71
  super(error.message);
72
72
  this.code = error.code;
73
+ this.id = error.id;
73
74
  }
74
75
  }
@@ -1 +1 @@
1
- { "version": "4.1.3" }
1
+ { "version": "4.1.5" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portal-hq/utils",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "main": "lib/commonjs/index",
5
5
  "module": "lib/esm/index",
6
6
  "source": "src/index",
@@ -26,5 +26,5 @@
26
26
  "ts-jest": "^29.0.3",
27
27
  "typescript": "^4.8.4"
28
28
  },
29
- "gitHead": "912b03f1152f4dbb7e017919c63bdc950ca867cf"
29
+ "gitHead": "5ba19390f12935fc74b6235a4b2655a1e1c7a07f"
30
30
  }
@@ -1,6 +1,8 @@
1
1
  export interface PortalError {
2
+ /** @deprecated Use `id` instead */
2
3
  code: number
3
- message: string
4
+ id?: string
5
+ message?: string
4
6
  }
5
7
 
6
8
  export enum PortalErrorCodes {
@@ -80,10 +82,12 @@ export const PortalErrorCodeTypes = {
80
82
 
81
83
  export class PortalMpcError extends Error {
82
84
  code: PortalErrorCodes
85
+ id?: string
83
86
 
84
87
  public constructor(error: PortalError) {
85
88
  super(error.message)
86
89
 
87
90
  this.code = error.code
91
+ this.id = error.id
88
92
  }
89
93
  }
@@ -1 +1 @@
1
- { "version": "4.1.3" }
1
+ { "version": "4.1.5" }