xshell 1.3.57 → 1.3.58

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.3.57",
3
+ "version": "1.3.58",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
package/utils.js CHANGED
@@ -150,7 +150,8 @@ export function slice_stream(nbytes) {
150
150
  // 最后一块
151
151
  check(chunk.length === remaining, '可读流最后一块大小应该不超过 remaining');
152
152
  this.push(chunk);
153
- callback(null, null);
153
+ this.push(null);
154
+ callback();
154
155
  }
155
156
  });
156
157
  }