@milaboratories/pl-drivers 1.5.11 → 1.5.12
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/download_blob_url/task.d.ts +1 -0
- package/dist/drivers/download_blob_url/task.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/drivers/download_blob_url/task.ts +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-drivers",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.12",
|
|
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",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"undici": "^7.2.3",
|
|
29
29
|
"zod": "~3.23.8",
|
|
30
30
|
"@milaboratories/ts-helpers": "^1.1.3",
|
|
31
|
-
"@milaboratories/pl-model-common": "^1.10.4",
|
|
32
|
-
"@milaboratories/pl-tree": "^1.4.22",
|
|
33
31
|
"@milaboratories/computable": "^2.3.4",
|
|
34
|
-
"@milaboratories/pl-client": "^2.7.3"
|
|
32
|
+
"@milaboratories/pl-client": "^2.7.3",
|
|
33
|
+
"@milaboratories/pl-tree": "^1.4.22",
|
|
34
|
+
"@milaboratories/pl-model-common": "^1.10.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"eslint": "^9.16.0",
|
|
@@ -128,7 +128,14 @@ export class DownloadAndUnarchiveTask {
|
|
|
128
128
|
await content.pipeTo(f, { signal });
|
|
129
129
|
this.state!.zipPathCreated = true;
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
// Without this filter it fails with
|
|
132
|
+
// "EISDIR: illegal operation on a directory".
|
|
133
|
+
// The workaround is from
|
|
134
|
+
// https://github.com/kevva/decompress/issues/46#issuecomment-525048104
|
|
135
|
+
await decompress(this.state!.zipPath, fPath, {
|
|
136
|
+
filter: file => !file.path.endsWith('/'),
|
|
137
|
+
});
|
|
138
|
+
this.state!.zipDecompressed = true;
|
|
132
139
|
|
|
133
140
|
await fs.promises.rm(this.state!.zipPath);
|
|
134
141
|
this.state!.zipPathDeleted = true;
|
|
@@ -199,6 +206,7 @@ type DownloadCtx = {
|
|
|
199
206
|
tempPath?: string;
|
|
200
207
|
zipPath?: string;
|
|
201
208
|
zipPathCreated?: boolean;
|
|
209
|
+
zipDecompressed?: boolean;
|
|
202
210
|
zipPathDeleted?: boolean;
|
|
203
211
|
pathCreated?: boolean;
|
|
204
212
|
};
|