@milaboratories/pl-drivers 1.3.16 → 1.3.17

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-drivers",
3
- "version": "1.3.16",
3
+ "version": "1.3.17",
4
4
  "description": "Drivers and a low-level clients for log streaming, downloading and uploading files from and to pl",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -27,10 +27,10 @@
27
27
  "undici": "^6.21.0",
28
28
  "zod": "^3.23.8",
29
29
  "@milaboratories/ts-helpers": "^1.1.1",
30
+ "@milaboratories/computable": "^2.3.0",
30
31
  "@milaboratories/pl-client": "^2.5.10",
31
- "@milaboratories/computable": "^2.2.1",
32
- "@milaboratories/pl-tree": "^1.4.11",
33
- "@milaboratories/pl-model-common": "^1.6.1"
32
+ "@milaboratories/pl-tree": "^1.4.12",
33
+ "@milaboratories/pl-model-common": "^1.6.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "typescript": "~5.5.4",
@@ -5,14 +5,8 @@ import {
5
5
  PollingComputableHooks,
6
6
  Watcher
7
7
  } from '@milaboratories/computable';
8
- import { ResourceId, stringifyWithResourceId } from '@milaboratories/pl-client';
9
- import {
10
- asyncPool,
11
- CallersCounter,
12
- ConsoleLoggerAdapter,
13
- MiLogger,
14
- ValueOrError
15
- } from '@milaboratories/ts-helpers';
8
+ import { ResourceId, resourceIdToString, stringifyWithResourceId } from '@milaboratories/pl-client';
9
+ import { asyncPool, CallersCounter, MiLogger } from '@milaboratories/ts-helpers';
16
10
  import { ClientLogs } from '../clients/logs';
17
11
  import { randomUUID } from 'node:crypto';
18
12
  import { PlTreeEntry, ResourceInfo, treeEntryToResourceInfo } from '@milaboratories/pl-tree';
@@ -168,9 +162,10 @@ export class LogsStreamDriver implements sdk.LogsDriver {
168
162
  const r = treeEntryToResourceInfo(res, ctx);
169
163
 
170
164
  const result = this.getLogHandleNoCtx(r);
165
+
171
166
  // All logs from streams should be considered unstable,
172
167
  // final value will be got from blobs.
173
- ctx.markUnstable();
168
+ ctx.markUnstable(`live_log:${resourceIdToString(r.id)}`);
174
169
 
175
170
  return result;
176
171
  }
@@ -139,7 +139,9 @@ export class UploadDriver {
139
139
 
140
140
  const result = this.getProgressIdNoCtx(ctx.watcher, rInfo, callerId);
141
141
  if (!isProgressStable(result)) {
142
- ctx.markUnstable(`upload/index progress was got, but it's not stable: ${result}`);
142
+ ctx.markUnstable(
143
+ `upload/index progress was got, but it's not stable: ${JSON.stringify(result)}`
144
+ );
143
145
  }
144
146
 
145
147
  return result;