@milaboratories/pl-drivers 1.3.15 → 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/dist/drivers/logs_stream.d.ts.map +1 -1
- package/dist/drivers/upload.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +288 -286
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/drivers/logs_stream.ts +4 -9
- package/src/drivers/upload.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-drivers",
|
|
3
|
-
"version": "1.3.
|
|
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",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"@protobuf-ts/plugin": "^2.9.4",
|
|
25
25
|
"denque": "^2.1.0",
|
|
26
26
|
"tar-fs": "^3.0.6",
|
|
27
|
-
"undici": "^6.
|
|
27
|
+
"undici": "^6.21.0",
|
|
28
28
|
"zod": "^3.23.8",
|
|
29
|
-
"@milaboratories/computable": "^2.2.1",
|
|
30
|
-
"@milaboratories/pl-client": "^2.5.9",
|
|
31
29
|
"@milaboratories/ts-helpers": "^1.1.1",
|
|
32
|
-
"@milaboratories/
|
|
33
|
-
"@milaboratories/pl-
|
|
30
|
+
"@milaboratories/computable": "^2.3.0",
|
|
31
|
+
"@milaboratories/pl-client": "^2.5.10",
|
|
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",
|
|
37
|
-
"vite": "^5.4.
|
|
37
|
+
"vite": "^5.4.11",
|
|
38
38
|
"@types/node": "~20.16.15",
|
|
39
39
|
"@types/jest": "^29.5.14",
|
|
40
40
|
"@types/tar-fs": "^2.0.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
|
}
|
package/src/drivers/upload.ts
CHANGED
|
@@ -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(
|
|
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;
|