@jsforce/jsforce-node 3.10.10 → 3.10.12-dev.0

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.
@@ -18,21 +18,23 @@ function createLazyStream() {
18
18
  }
19
19
  exports.createLazyStream = createLazyStream;
20
20
  class MemoryWriteStream extends stream_1.Writable {
21
- _buf;
21
+ _chunks;
22
22
  constructor() {
23
23
  super();
24
- this._buf = Buffer.alloc(0);
24
+ this._chunks = [];
25
25
  }
26
26
  _write(chunk, encoding, callback) {
27
- this._buf = Buffer.concat([this._buf, chunk]);
27
+ this._chunks.push(chunk);
28
28
  callback();
29
29
  }
30
30
  _writev(data, callback) {
31
- this._buf = Buffer.concat([this._buf, ...data.map(({ chunk }) => chunk)]);
31
+ for (const { chunk } of data) {
32
+ this._chunks.push(chunk);
33
+ }
32
34
  callback();
33
35
  }
34
36
  toString(encoding = 'utf-8') {
35
- return this._buf.toString(encoding);
37
+ return Buffer.concat(this._chunks).toString(encoding);
36
38
  }
37
39
  }
38
40
  async function readAll(rs, encoding = 'utf-8') {
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "database.com"
11
11
  ],
12
12
  "homepage": "http://github.com/jsforce/jsforce",
13
- "version": "3.10.10",
13
+ "version": "3.10.12-dev.0",
14
14
  "repository": {
15
15
  "type": "git",
16
16
  "url": "git://github.com/jsforce/jsforce.git"