@dpuse/dpuse-shared 1.0.231 → 1.0.233

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.
@@ -253,6 +253,7 @@ export type RetrieveRecordsChunk = ParsedRecordsChunk | {
253
253
  typeId: 'storeRecordArray';
254
254
  };
255
255
  export interface ParsedRecordsChunk {
256
+ byteCount?: number;
256
257
  records: ParsedRecord[];
257
258
  typeId: 'parsingRecordArray';
258
259
  }
@@ -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, data?: Record<string, unknown>, options?: ErrorOptions);
14
+ constructor(message: string, locator: string, options?: DPUseErrorOptions);
12
15
  }
13
16
  export declare class AppError extends DPUseError {
14
- constructor(message: string, locator: string, data?: Record<string, unknown>, options?: ErrorOptions);
17
+ constructor(message: string, locator: string, options?: DPUseErrorOptions);
15
18
  }
16
19
  export declare class APIError extends DPUseError {
17
- constructor(message: string, locator: string, data?: Record<string, unknown>, options?: ErrorOptions);
20
+ constructor(message: string, locator: string, options?: DPUseErrorOptions);
18
21
  }
19
22
  export declare class EngineError extends DPUseError {
20
- constructor(message: string, locator: string, data?: Record<string, unknown>, options?: ErrorOptions);
23
+ constructor(message: string, locator: string, options?: DPUseErrorOptions);
21
24
  }
22
25
  export declare class ConnectorError extends DPUseError {
23
- constructor(message: string, locator: string, data?: Record<string, unknown>, options?: ErrorOptions);
26
+ constructor(message: string, locator: string, options?: DPUseErrorOptions);
24
27
  }
25
28
  export declare class FetchError extends DPUseError {
26
- constructor(message: string, locator: string, data?: Record<string, unknown>, options?: ErrorOptions);
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.231",
3
+ "version": "1.0.233",
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.150",
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.1",
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",