@milaboratories/pl-drivers 1.10.10 → 1.10.11
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.10.
|
|
3
|
+
"version": "1.10.11",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20"
|
|
6
6
|
},
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"undici": "~7.13.0",
|
|
32
32
|
"upath": "^2.0.1",
|
|
33
33
|
"zod": "~3.23.8",
|
|
34
|
+
"@milaboratories/helpers": "1.7.0",
|
|
34
35
|
"@milaboratories/ts-helpers": "1.4.7",
|
|
36
|
+
"@milaboratories/pl-client": "2.11.13",
|
|
35
37
|
"@milaboratories/computable": "2.6.8",
|
|
36
|
-
"@milaboratories/helpers": "1.7.0",
|
|
37
38
|
"@milaboratories/pl-tree": "1.7.10",
|
|
38
|
-
"@milaboratories/pl-
|
|
39
|
-
"@milaboratories/pl-model-common": "1.19.16"
|
|
39
|
+
"@milaboratories/pl-model-common": "1.19.17"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/decompress": "^4.2.7",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"typescript": "~5.6.3",
|
|
48
48
|
"vitest": "^2.1.9",
|
|
49
49
|
"@milaboratories/eslint-config": "1.0.4",
|
|
50
|
-
"@milaboratories/
|
|
50
|
+
"@milaboratories/build-configs": "1.0.8",
|
|
51
51
|
"@milaboratories/ts-builder": "1.0.5",
|
|
52
|
-
"@milaboratories/
|
|
52
|
+
"@milaboratories/ts-configs": "1.0.6"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"type-check": "ts-builder types --target node",
|
|
@@ -140,21 +140,21 @@ test('should get on demand blob without downloading a blob range', async () => {
|
|
|
140
140
|
const blob = await c.getValue();
|
|
141
141
|
expect(blob).toBeDefined();
|
|
142
142
|
expect(blob.size).toEqual(3);
|
|
143
|
-
const content = await driver.getContent(blob!.handle, { from: 1, to: 2 });
|
|
143
|
+
const content = await driver.getContent(blob!.handle, { range: { from: 1, to: 2 } });
|
|
144
144
|
expect(content?.toString()).toStrictEqual('2');
|
|
145
145
|
|
|
146
146
|
const c2 = driver.getOnDemandBlob(downloadable, undefined);
|
|
147
147
|
const blob2 = await c2.getValue();
|
|
148
148
|
expect(blob2).toBeDefined();
|
|
149
149
|
expect(blob2.size).toEqual(3);
|
|
150
|
-
const content2 = await driver.getContent(blob2!.handle, { from: 0, to: 1 });
|
|
150
|
+
const content2 = await driver.getContent(blob2!.handle, { range: { from: 0, to: 1 } });
|
|
151
151
|
expect(content2?.toString()).toStrictEqual('4');
|
|
152
152
|
|
|
153
153
|
const c3 = driver.getOnDemandBlob(downloadable);
|
|
154
154
|
const blob3 = await c3.getValue();
|
|
155
155
|
expect(blob3).toBeDefined();
|
|
156
156
|
expect(blob3.size).toEqual(3);
|
|
157
|
-
const content3 = await driver.getContent(blob3!.handle, { from: 1, to: 3 });
|
|
157
|
+
const content3 = await driver.getContent(blob3!.handle, { range: { from: 1, to: 3 } });
|
|
158
158
|
expect(content3?.toString()).toStrictEqual('2\n');
|
|
159
159
|
});
|
|
160
160
|
});
|
|
@@ -216,7 +216,7 @@ test('should get undefined when releasing a blob from a small cache and the blob
|
|
|
216
216
|
const blob2 = await c.getValue();
|
|
217
217
|
expect(blob2).toBeDefined();
|
|
218
218
|
expect(blob2!.size).toBe(3);
|
|
219
|
-
expect((await driver.getContent(blob2!.handle, { from: 1, to: 3 }))?.toString()).toBe('2\n');
|
|
219
|
+
expect((await driver.getContent(blob2!.handle, { range: { from: 1, to: 3 } }))?.toString()).toBe('2\n');
|
|
220
220
|
|
|
221
221
|
// The blob is removed from a cache since the size is too big.
|
|
222
222
|
c.resetState();
|