@milaboratories/pl-client 3.1.0 → 3.1.1

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.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "New TS/JS client for Platform API",
5
5
  "files": [
6
6
  "./dist/**/*",
@@ -30,9 +30,9 @@
30
30
  "undici": "~7.16.0",
31
31
  "utility-types": "^3.11.0",
32
32
  "yaml": "^2.8.0",
33
- "@milaboratories/pl-model-common": "1.31.1",
34
33
  "@milaboratories/pl-http": "1.2.4",
35
- "@milaboratories/ts-helpers": "1.8.1"
34
+ "@milaboratories/ts-helpers": "1.8.1",
35
+ "@milaboratories/pl-model-common": "1.31.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@protobuf-ts/plugin": "2.11.1",
@@ -41,8 +41,8 @@
41
41
  "openapi-typescript": "^7.10.0",
42
42
  "typescript": "~5.9.3",
43
43
  "vitest": "^4.1.3",
44
- "@milaboratories/ts-builder": "1.3.1",
45
44
  "@milaboratories/build-configs": "2.0.0",
45
+ "@milaboratories/ts-builder": "1.3.1",
46
46
  "@milaboratories/ts-configs": "1.2.3"
47
47
  },
48
48
  "engines": {
@@ -146,7 +146,14 @@ test("test https call via proxy", async () => {
146
146
  test("list user resources returns user root", async () => {
147
147
  const client = await getTestLLClient();
148
148
  const responses = await client.listUserResources({ limit: 1 });
149
- expect(responses.length).toBe(1);
150
- const msg = responses[0];
151
- expect(msg.entry.oneofKind).toBe("userRoot");
149
+
150
+ // First message is always the user root.
151
+ expect(responses.length).toBeGreaterThanOrEqual(1);
152
+ expect(responses[0].entry.oneofKind).toBe("userRoot");
153
+
154
+ // If there are more resources, the last message is a continuation token.
155
+ if (responses.length > 1) {
156
+ const last = responses[responses.length - 1];
157
+ expect(last.nextResourceId).not.toBe(0n);
158
+ }
152
159
  });