xjs-common 9.1.0-alpha.2 → 9.1.0-alpha.3

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.
@@ -215,7 +215,8 @@ class HttpResolverContext {
215
215
  const dest = this.resolveDownloadPath(rc.downloadPath, res.headers["content-disposition"]);
216
216
  const stream = fs.createWriteStream(dest);
217
217
  res.pipe(stream);
218
- stream.on("finish", () => { stream.close(); resolve({ headers: res.headers }); });
218
+ stream.on("finish", () => stream.close());
219
+ stream.on("close", () => resolve({ headers: res.headers }));
219
220
  stream.on("error", reject);
220
221
  return;
221
222
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xjs-common",
3
- "version": "9.1.0-alpha.2",
3
+ "version": "9.1.0-alpha.3",
4
4
  "description": "library modules for nodejs + typescript that bundled general-purpose implementations.",
5
5
  "repository": {
6
6
  "type": "git",