@milaboratories/pl-client 2.10.0 → 2.10.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-client",
3
- "version": "2.10.0",
3
+ "version": "2.10.2",
4
4
  "engines": {
5
5
  "node": ">=20.3.0"
6
6
  },
@@ -32,12 +32,12 @@
32
32
  "undici": "~7.5.0",
33
33
  "utility-types": "^3.11.0",
34
34
  "yaml": "^2.7.0",
35
- "@milaboratories/pl-http": "^1.1.2",
36
- "@milaboratories/ts-helpers": "^1.3.1"
35
+ "@milaboratories/ts-helpers": "^1.3.3",
36
+ "@milaboratories/pl-http": "^1.1.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "typescript": "~5.5.4",
40
- "vite": "^5.4.11",
40
+ "vite": "^6.3.5",
41
41
  "@types/node": "~20.16.15",
42
42
  "@protobuf-ts/plugin": "2.9.6",
43
43
  "@types/http-proxy": "^1.17.16",
@@ -61,6 +61,7 @@ function isRecoverable(status: Status): boolean {
61
61
  }
62
62
 
63
63
  export class RethrowError extends Error {
64
+ name = 'RethrowError';
64
65
  constructor(public readonly rethrowLambda: () => never) {
65
66
  super('Rethrow error, you should never see this one.');
66
67
  }
@@ -126,7 +126,9 @@ export function field(resourceId: AnyResourceRef, fieldName: string): AnyFieldRe
126
126
  }
127
127
 
128
128
  /** If transaction commit failed due to write conflicts */
129
- export class TxCommitConflict extends Error {}
129
+ export class TxCommitConflict extends Error {
130
+ name = 'TxCommitConflict';
131
+ }
130
132
 
131
133
  async function notFoundToUndefined<T>(cb: () => Promise<T>): Promise<T | undefined> {
132
134
  try {
@@ -21,7 +21,9 @@ import type { PlTransaction } from '../core/transaction';
21
21
  import * as tp from 'node:timers/promises';
22
22
 
23
23
  /** This error tells state assertion mechanism that required state is not yet ready */
24
- export class ContinuePolling extends Error {}
24
+ export class ContinuePolling extends Error {
25
+ name = 'ContinuePolling';
26
+ }
25
27
 
26
28
  export type PollFieldTraverseOps = {
27
29
  expectedType?: FieldType;