@vertexvis/stream-api 0.24.2 → 0.24.3-canary.1
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/dist/bundle.cjs.js +8 -3
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +8 -3
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +7 -7
package/dist/bundle.cjs.js
CHANGED
|
@@ -2293,9 +2293,14 @@ Reader$1.prototype.bytes = function read_bytes() {
|
|
|
2293
2293
|
this.pos += length;
|
|
2294
2294
|
if (Array.isArray(this.buf)) // plain array
|
|
2295
2295
|
return this.buf.slice(start, end);
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2296
|
+
|
|
2297
|
+
if (start === end) { // fix for IE 10/Win8 and others' subarray returning array of size 1
|
|
2298
|
+
var nativeBuffer = util$2.Buffer;
|
|
2299
|
+
return nativeBuffer
|
|
2300
|
+
? nativeBuffer.alloc(0)
|
|
2301
|
+
: new this.buf.constructor(0);
|
|
2302
|
+
}
|
|
2303
|
+
return this._slice.call(this.buf, start, end);
|
|
2299
2304
|
};
|
|
2300
2305
|
|
|
2301
2306
|
/**
|