@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.esm.js
CHANGED
|
@@ -2289,9 +2289,14 @@ Reader$1.prototype.bytes = function read_bytes() {
|
|
|
2289
2289
|
this.pos += length;
|
|
2290
2290
|
if (Array.isArray(this.buf)) // plain array
|
|
2291
2291
|
return this.buf.slice(start, end);
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2292
|
+
|
|
2293
|
+
if (start === end) { // fix for IE 10/Win8 and others' subarray returning array of size 1
|
|
2294
|
+
var nativeBuffer = util$2.Buffer;
|
|
2295
|
+
return nativeBuffer
|
|
2296
|
+
? nativeBuffer.alloc(0)
|
|
2297
|
+
: new this.buf.constructor(0);
|
|
2298
|
+
}
|
|
2299
|
+
return this._slice.call(this.buf, start, end);
|
|
2295
2300
|
};
|
|
2296
2301
|
|
|
2297
2302
|
/**
|