@milaboratories/pl-client 3.17.2 → 3.17.4
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": "3.17.
|
|
3
|
+
"version": "3.17.4",
|
|
4
4
|
"description": "New TS/JS client for Platform API",
|
|
5
5
|
"files": [
|
|
6
6
|
"./dist/**/*",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"utility-types": "^3.11.0",
|
|
32
32
|
"yaml": "^2.8.0",
|
|
33
33
|
"@milaboratories/pl-http": "1.2.4",
|
|
34
|
-
"@milaboratories/pl-model-common": "1.
|
|
34
|
+
"@milaboratories/pl-model-common": "1.51.0",
|
|
35
35
|
"@milaboratories/ts-helpers": "1.8.6"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"typescript": "7.0.2",
|
|
43
43
|
"vitest": "^4.1.3",
|
|
44
44
|
"@milaboratories/build-configs": "2.0.2",
|
|
45
|
-
"@milaboratories/ts-
|
|
46
|
-
"@milaboratories/ts-
|
|
45
|
+
"@milaboratories/ts-configs": "1.4.0",
|
|
46
|
+
"@milaboratories/ts-builder": "1.7.2"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=22.19.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getTestClient, getTestLLClient
|
|
1
|
+
import { getTestClient, getTestLLClient } from "../test/test_config";
|
|
2
2
|
import { TxAPI_Open_Request_WritableTx } from "../proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api";
|
|
3
3
|
import { createLocalResourceId, parseSignedResourceId } from "./types";
|
|
4
4
|
import { test, expect } from "vitest";
|
|
@@ -6,7 +6,9 @@ import { test, expect } from "vitest";
|
|
|
6
6
|
import { isTimeoutOrCancelError } from "./errors";
|
|
7
7
|
import { Aborted } from "@milaboratories/ts-helpers";
|
|
8
8
|
|
|
9
|
-
/** Cached root signature — fetched once, shared across tests.
|
|
9
|
+
/** Cached root signature — fetched once, shared across tests. The signature is bound to the
|
|
10
|
+
* session that minted it, so a test that sends it must open its transaction on a client of
|
|
11
|
+
* this same session; another one is rejected with "signature authentication failed". */
|
|
10
12
|
let cachedRootSig: Uint8Array | undefined;
|
|
11
13
|
|
|
12
14
|
async function getRootSignature(): Promise<Uint8Array> {
|
|
@@ -95,7 +97,7 @@ test("check timeout error type (passive)", async () => {
|
|
|
95
97
|
});
|
|
96
98
|
|
|
97
99
|
test("check timeout error type (active)", async () => {
|
|
98
|
-
const client = await
|
|
100
|
+
const client = await getTestLLClient();
|
|
99
101
|
const rootSig = await getRootSignature();
|
|
100
102
|
const tx = client.createTx(true, { timeout: 500 });
|
|
101
103
|
|
|
@@ -172,7 +174,7 @@ test("check timeout error type (active)", async () => {
|
|
|
172
174
|
});
|
|
173
175
|
|
|
174
176
|
test("check is abort error (active)", async () => {
|
|
175
|
-
const client = await
|
|
177
|
+
const client = await getTestLLClient();
|
|
176
178
|
const rootSig = await getRootSignature();
|
|
177
179
|
const tx = client.createTx(true, { abortSignal: AbortSignal.timeout(100) });
|
|
178
180
|
|