node-stream-zip 1.13.2 → 1.13.6
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/node_stream_zip.d.ts +1 -1
- package/node_stream_zip.js +2 -2
- package/package.json +5 -1
package/node_stream_zip.d.ts
CHANGED
|
@@ -133,7 +133,7 @@ declare class StreamZipAsync {
|
|
|
133
133
|
comment: Promise<string>;
|
|
134
134
|
|
|
135
135
|
entry(name: string): Promise<ZipEntry | undefined>;
|
|
136
|
-
entries(
|
|
136
|
+
entries(): Promise<{ [name: string]: ZipEntry }>;
|
|
137
137
|
entryData(entry: string | ZipEntry): Promise<Buffer>;
|
|
138
138
|
stream(entry: string | ZipEntry): Promise<NodeJS.ReadableStream>;
|
|
139
139
|
extract(entry: string | ZipEntry | null, outPath: string): Promise<number | undefined>;
|
package/node_stream_zip.js
CHANGED
|
@@ -533,7 +533,7 @@ const StreamZip = function (config) {
|
|
|
533
533
|
}
|
|
534
534
|
let dir = dirs.shift();
|
|
535
535
|
dir = path.join(baseDir, path.join(...dir));
|
|
536
|
-
fs.mkdir(dir, (err) => {
|
|
536
|
+
fs.mkdir(dir, { recursive: true }, (err) => {
|
|
537
537
|
if (err && err.code !== 'EEXIST') {
|
|
538
538
|
return callback(err);
|
|
539
539
|
}
|
|
@@ -678,7 +678,7 @@ StreamZip.async = class StreamZipAsync extends events.EventEmitter {
|
|
|
678
678
|
|
|
679
679
|
this[propZip] = new Promise((resolve, reject) => {
|
|
680
680
|
zip.on('ready', () => {
|
|
681
|
-
zip.
|
|
681
|
+
zip.removeListener('error', reject);
|
|
682
682
|
resolve(zip);
|
|
683
683
|
});
|
|
684
684
|
zip.on('error', reject);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-stream-zip",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.6",
|
|
4
4
|
"description": "node.js library for reading and extraction of ZIP archives",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zip",
|
|
@@ -39,5 +39,9 @@
|
|
|
39
39
|
"eslint": "^7.19.0",
|
|
40
40
|
"nodeunit": "^0.11.3",
|
|
41
41
|
"prettier": "^2.2.1"
|
|
42
|
+
},
|
|
43
|
+
"funding": {
|
|
44
|
+
"type": "github",
|
|
45
|
+
"url": "https://github.com/sponsors/antelle"
|
|
42
46
|
}
|
|
43
47
|
}
|