@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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "version": "4.1.
|
|
1
|
+
{ "version": "4.1.5" }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "version": "4.1.
|
|
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
|
+
"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": "
|
|
29
|
+
"gitHead": "5ba19390f12935fc74b6235a4b2655a1e1c7a07f"
|
|
30
30
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface PortalError {
|
|
2
|
+
/** @deprecated Use `id` instead */
|
|
2
3
|
code: number
|
|
3
|
-
|
|
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
|
}
|
package/src/version/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "version": "4.1.
|
|
1
|
+
{ "version": "4.1.5" }
|