@dpuse/dpuse-shared 1.0.231 → 1.0.234
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,3 +1,6 @@
|
|
|
1
|
+
export interface DPUseErrorOptions extends ErrorOptions {
|
|
2
|
+
data?: Record<string, unknown> | undefined;
|
|
3
|
+
}
|
|
1
4
|
export interface SerialisedError {
|
|
2
5
|
data: Record<string, unknown> | undefined;
|
|
3
6
|
locator: string;
|
|
@@ -8,22 +11,22 @@ export interface SerialisedError {
|
|
|
8
11
|
declare class DPUseError extends Error {
|
|
9
12
|
readonly data: Record<string, unknown> | undefined;
|
|
10
13
|
readonly locator: string;
|
|
11
|
-
constructor(message: string, locator: string,
|
|
14
|
+
constructor(message: string, locator: string, options?: DPUseErrorOptions);
|
|
12
15
|
}
|
|
13
16
|
export declare class AppError extends DPUseError {
|
|
14
|
-
constructor(message: string, locator: string,
|
|
17
|
+
constructor(message: string, locator: string, options?: DPUseErrorOptions);
|
|
15
18
|
}
|
|
16
19
|
export declare class APIError extends DPUseError {
|
|
17
|
-
constructor(message: string, locator: string,
|
|
20
|
+
constructor(message: string, locator: string, options?: DPUseErrorOptions);
|
|
18
21
|
}
|
|
19
22
|
export declare class EngineError extends DPUseError {
|
|
20
|
-
constructor(message: string, locator: string,
|
|
23
|
+
constructor(message: string, locator: string, options?: DPUseErrorOptions);
|
|
21
24
|
}
|
|
22
25
|
export declare class ConnectorError extends DPUseError {
|
|
23
|
-
constructor(message: string, locator: string,
|
|
26
|
+
constructor(message: string, locator: string, options?: DPUseErrorOptions);
|
|
24
27
|
}
|
|
25
28
|
export declare class FetchError extends DPUseError {
|
|
26
|
-
constructor(message: string, locator: string,
|
|
29
|
+
constructor(message: string, locator: string, options?: DPUseErrorOptions);
|
|
27
30
|
}
|
|
28
31
|
export declare function buildFetchError(response: {
|
|
29
32
|
status: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.234",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Common constants, types and utilities used across DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@dpuse/dpuse-development": "^1.0.155",
|
|
68
|
-
"@dpuse/eslint-config-dpuse": "^1.0.
|
|
68
|
+
"@dpuse/eslint-config-dpuse": "^1.0.152",
|
|
69
69
|
"@types/node": "^26.6.6",
|
|
70
70
|
"@types/trusted-types": "^2.0.7",
|
|
71
71
|
"@vitest/coverage-v8": "^5.1.0",
|
|
72
72
|
"eslint": "^10.15.0",
|
|
73
|
-
"fallow": "^3.43.
|
|
73
|
+
"fallow": "^3.43.2",
|
|
74
74
|
"fast-check": "^4.10.2",
|
|
75
75
|
"iconv-lite": "^0.7.3",
|
|
76
76
|
"jschardet": "^4.1.0",
|