node-stream-zip 1.13.1 → 1.13.5

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.
@@ -133,8 +133,8 @@ declare class StreamZipAsync {
133
133
  comment: Promise<string>;
134
134
 
135
135
  entry(name: string): Promise<ZipEntry | undefined>;
136
- entries(name: string): Promise<{ [name: string]: ZipEntry }>;
137
- entryData(entry: string | ZipEntry): Promise<NodeJS.ReadableStream>;
136
+ entries(): Promise<{ [name: string]: ZipEntry }>;
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>;
140
140
 
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-stream-zip",
3
- "version": "1.13.1",
3
+ "version": "1.13.5",
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
  }