@milaboratories/pl-client 2.10.1 → 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/dist/core/ll_transaction.d.ts +1 -0
- package/dist/core/ll_transaction.d.ts.map +1 -1
- package/dist/core/transaction.d.ts +1 -0
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/helpers/poll.d.ts +1 -0
- package/dist/helpers/poll.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/core/ll_transaction.ts +1 -0
- package/src/core/transaction.ts +3 -1
- package/src/helpers/poll.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-client",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.2",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.3.0"
|
|
6
6
|
},
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"undici": "~7.5.0",
|
|
33
33
|
"utility-types": "^3.11.0",
|
|
34
34
|
"yaml": "^2.7.0",
|
|
35
|
-
"@milaboratories/
|
|
36
|
-
"@milaboratories/
|
|
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",
|
package/src/core/transaction.ts
CHANGED
|
@@ -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 {
|
package/src/helpers/poll.ts
CHANGED
|
@@ -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;
|