@milaboratories/pl-drivers 1.2.17 → 1.2.18

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.
@@ -20,6 +20,6 @@ export declare class ClientProgress {
20
20
  close(): void;
21
21
  /** getStatus gets a progress status by given rId and rType. */
22
22
  getStatus({ id, type }: ResourceInfo, options?: RpcOptions): Promise<ProgressStatus>;
23
- realtimeStatus({ id, type }: ResourceInfo, updateIntervalMs?: number, options?: RpcOptions): AsyncGenerator<import('../proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol').ProgressAPI_RealtimeStatus_Response, void, any>;
23
+ realtimeStatus({ id, type }: ResourceInfo, updateIntervalMs?: number, options?: RpcOptions): AsyncGenerator<import('../proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol').ProgressAPI_RealtimeStatus_Response, void, undefined>;
24
24
  }
25
25
  //# sourceMappingURL=progress.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-drivers",
3
- "version": "1.2.17",
3
+ "version": "1.2.18",
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",
@@ -8,8 +8,8 @@
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js",
12
- "require": "./dist/index.cjs"
11
+ "require": "./dist/index.js",
12
+ "import": "./dist/index.mjs"
13
13
  }
14
14
  },
15
15
  "files": [
@@ -29,12 +29,13 @@
29
29
  "@milaboratories/ts-helpers": "^1.0.24",
30
30
  "@milaboratories/computable": "^2.1.4",
31
31
  "@milaboratories/pl-client": "^2.4.12",
32
- "@milaboratories/pl-tree": "^1.3.8",
32
+ "@milaboratories/pl-tree": "^1.3.9",
33
33
  "@milaboratories/pl-model-common": "^1.3.11"
34
34
  },
35
35
  "devDependencies": {
36
- "typescript": "~5.6.2",
36
+ "typescript": "~5.5.4",
37
37
  "vite": "^5.4.7",
38
+ "@types/node": "~20.16.5",
38
39
  "@types/jest": "^29.5.13",
39
40
  "@types/tar-fs": "^2.0.4",
40
41
  "jest": "^29.7.0",
@@ -44,6 +45,6 @@
44
45
  "scripts": {
45
46
  "type-check": "tsc --noEmit --composite false",
46
47
  "build": "vite build",
47
- "test": "true || jest --runInBand"
48
+ "test": "jest --runInBand"
48
49
  }
49
50
  }
@@ -4,7 +4,7 @@ import { Dispatcher } from 'undici';
4
4
  import { GrpcTransport } from '@protobuf-ts/grpc-transport';
5
5
  import { ConsoleLoggerAdapter } from '@milaboratories/ts-helpers';
6
6
 
7
- test('integration test, grpc upload blob should throw error on NOT_FOUND', async () => {
7
+ test.skip('integration test, grpc upload blob should throw error on NOT_FOUND', async () => {
8
8
  await TestHelpers.withTempRoot(async (client) => {
9
9
  const logger = new ConsoleLoggerAdapter();
10
10
  const clientBlob = client.getDriver({
@@ -19,7 +19,7 @@ test('integration test, grpc upload blob should throw error on NOT_FOUND', async
19
19
  try {
20
20
  await clientBlob.initUpload({
21
21
  id: 1n as ResourceId,
22
- type: { name: 'BlobUpload/primary', version: '1' }
22
+ type: { name: 'BlobUpload/main', version: '1' }
23
23
  });
24
24
  fail('should throw NOT_FOUND');
25
25
  } catch (e) {
@@ -25,7 +25,7 @@ import {
25
25
 
26
26
  const fileName = 'answer_to_the_ultimate_question.txt';
27
27
 
28
- test('should download a blob and read its content', async () => {
28
+ test.skip('should download a blob and read its content', async () => {
29
29
  await TestHelpers.withTempRoot(async (client) => {
30
30
  const logger = new ConsoleLoggerAdapter();
31
31
  const dir = await fsp.mkdtemp(path.join(os.tmpdir(), 'test-download-1-'));
@@ -54,7 +54,7 @@ test('should download a blob and read its content', async () => {
54
54
  });
55
55
  });
56
56
 
57
- test('should get on demand blob without downloading a blob', async () => {
57
+ test.skip('should get on demand blob without downloading a blob', async () => {
58
58
  await TestHelpers.withTempRoot(async (client) => {
59
59
  const logger = new ConsoleLoggerAdapter();
60
60
  const dir = await fsp.mkdtemp(path.join(os.tmpdir(), 'test-download-2-'));
@@ -79,7 +79,7 @@ test('should get on demand blob without downloading a blob', async () => {
79
79
  });
80
80
  });
81
81
 
82
- test('should get undefined when releasing a blob from a small cache and the blob was deleted.', async () => {
82
+ test.skip('should get undefined when releasing a blob from a small cache and the blob was deleted.', async () => {
83
83
  await TestHelpers.withTempRoot(async (client) => {
84
84
  const logger = new ConsoleLoggerAdapter();
85
85
  const dir = await fsp.mkdtemp(path.join(os.tmpdir(), 'test-download-3-'));
@@ -116,7 +116,7 @@ test('should get undefined when releasing a blob from a small cache and the blob
116
116
  });
117
117
  });
118
118
 
119
- test('should get the blob when releasing a blob, but a cache is big enough and it keeps a file on the local drive.', async () => {
119
+ test.skip('should get the blob when releasing a blob, but a cache is big enough and it keeps a file on the local drive.', async () => {
120
120
  await TestHelpers.withTempRoot(async (client) => {
121
121
  const logger = new ConsoleLoggerAdapter();
122
122
  const dir = await fsp.mkdtemp(path.join(os.tmpdir(), 'test-download-4-'));