@open-flash/stream
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -0,1 +1,6 @@ | ||
# 0.5.0 (2021-07-23) | ||
- **[Breaking change]** Drop `lib` prefix and `.js` extension from deep-imports. | ||
- **[Fix]** Update dependencies. | ||
# 0.4.0 (2021-05-02) | ||
@@ -2,0 +7,0 @@ |
@@ -1,15 +0,13 @@ | ||
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to set private field on non-instance"); | ||
} | ||
privateMap.set(receiver, value); | ||
return value; | ||
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
if (kind === "m") throw new TypeError("Private method is not writable"); | ||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); | ||
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; | ||
}; | ||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to get private field on non-instance"); | ||
} | ||
return privateMap.get(receiver); | ||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); | ||
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); | ||
}; | ||
var _bytes, _view, _byteEnd; | ||
var _ReadableStream_bytes, _ReadableStream_view, _ReadableStream_byteEnd; | ||
import { Incident } from "incident"; | ||
@@ -23,10 +21,10 @@ import { createIncompleteStreamError } from "./errors/incomplete-stream.js"; | ||
constructor(bytes, _byteOffset = 0, bitOffset = 0) { | ||
_bytes.set(this, void 0); | ||
_view.set(this, void 0); | ||
_byteEnd.set(this, void 0); | ||
__classPrivateFieldSet(this, _bytes, bytes); | ||
__classPrivateFieldSet(this, _view, new DataView(bytes.buffer, bytes.byteOffset, bytes.length)); | ||
_ReadableStream_bytes.set(this, void 0); | ||
_ReadableStream_view.set(this, void 0); | ||
_ReadableStream_byteEnd.set(this, void 0); | ||
__classPrivateFieldSet(this, _ReadableStream_bytes, bytes, "f"); | ||
__classPrivateFieldSet(this, _ReadableStream_view, new DataView(bytes.buffer, bytes.byteOffset, bytes.length), "f"); | ||
this.bytePos = 0; | ||
this.bitPos = bitOffset; | ||
__classPrivateFieldSet(this, _byteEnd, bytes.length); | ||
__classPrivateFieldSet(this, _ReadableStream_byteEnd, bytes.length, "f"); | ||
} | ||
@@ -37,4 +35,4 @@ static equals(left, right) { | ||
} | ||
const leftLen = __classPrivateFieldGet(left, _byteEnd) - left.bytePos; | ||
const rightLen = __classPrivateFieldGet(right, _byteEnd) - right.bytePos; | ||
const leftLen = __classPrivateFieldGet(left, _ReadableStream_byteEnd, "f") - left.bytePos; | ||
const rightLen = __classPrivateFieldGet(right, _ReadableStream_byteEnd, "f") - right.bytePos; | ||
if (leftLen !== rightLen) { | ||
@@ -49,4 +47,4 @@ return false; | ||
i = 1; | ||
const leftPartialByte = __classPrivateFieldGet(left, _bytes)[left.bytePos]; | ||
const rightPartialByte = __classPrivateFieldGet(right, _bytes)[right.bytePos]; | ||
const leftPartialByte = __classPrivateFieldGet(left, _ReadableStream_bytes, "f")[left.bytePos]; | ||
const rightPartialByte = __classPrivateFieldGet(right, _ReadableStream_bytes, "f")[right.bytePos]; | ||
const mask = (1 << (8 - left.bitPos)) - 1; | ||
@@ -58,3 +56,3 @@ if ((leftPartialByte & mask) !== (rightPartialByte & mask)) { | ||
for (; i < leftLen; i++) { | ||
if (__classPrivateFieldGet(left, _bytes)[left.bytePos + i] !== __classPrivateFieldGet(right, _bytes)[right.bytePos + i]) { | ||
if (__classPrivateFieldGet(left, _ReadableStream_bytes, "f")[left.bytePos + i] !== __classPrivateFieldGet(right, _ReadableStream_bytes, "f")[right.bytePos + i]) { | ||
return false; | ||
@@ -82,4 +80,4 @@ } | ||
tailBytes() { | ||
const result = __classPrivateFieldGet(this, _bytes).subarray(this.bytePos); | ||
this.bytePos = __classPrivateFieldGet(this, _byteEnd); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_bytes, "f").subarray(this.bytePos); | ||
this.bytePos = __classPrivateFieldGet(this, _ReadableStream_byteEnd, "f"); | ||
this.bitPos = 0; | ||
@@ -89,3 +87,3 @@ return result; | ||
available() { | ||
return __classPrivateFieldGet(this, _byteEnd) - this.bytePos; | ||
return __classPrivateFieldGet(this, _ReadableStream_byteEnd, "f") - this.bytePos; | ||
} | ||
@@ -96,3 +94,3 @@ take(length) { | ||
takeBytes(length) { | ||
const result = __classPrivateFieldGet(this, _bytes).subarray(this.bytePos, this.bytePos + length); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_bytes, "f").subarray(this.bytePos, this.bytePos + length); | ||
this.bytePos += length; | ||
@@ -103,6 +101,6 @@ this.bitPos = 0; | ||
readSint8() { | ||
return __classPrivateFieldGet(this, _view).getInt8(this.bytePos++); | ||
return __classPrivateFieldGet(this, _ReadableStream_view, "f").getInt8(this.bytePos++); | ||
} | ||
readSint16LE() { | ||
const result = __classPrivateFieldGet(this, _view).getInt16(this.bytePos, true); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_view, "f").getInt16(this.bytePos, true); | ||
this.bytePos += 2; | ||
@@ -112,3 +110,3 @@ return result; | ||
readSint32LE() { | ||
const result = __classPrivateFieldGet(this, _view).getInt32(this.bytePos, true); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_view, "f").getInt32(this.bytePos, true); | ||
this.bytePos += 4; | ||
@@ -118,9 +116,9 @@ return result; | ||
readUint8() { | ||
return __classPrivateFieldGet(this, _view).getUint8(this.bytePos++); | ||
return __classPrivateFieldGet(this, _ReadableStream_view, "f").getUint8(this.bytePos++); | ||
} | ||
peekUint8() { | ||
return __classPrivateFieldGet(this, _view).getUint8(this.bytePos); | ||
return __classPrivateFieldGet(this, _ReadableStream_view, "f").getUint8(this.bytePos); | ||
} | ||
readUint16BE() { | ||
const result = __classPrivateFieldGet(this, _view).getUint16(this.bytePos, false); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_view, "f").getUint16(this.bytePos, false); | ||
this.bytePos += 2; | ||
@@ -130,3 +128,3 @@ return result; | ||
readUint16LE() { | ||
const result = __classPrivateFieldGet(this, _view).getUint16(this.bytePos, true); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_view, "f").getUint16(this.bytePos, true); | ||
this.bytePos += 2; | ||
@@ -136,3 +134,3 @@ return result; | ||
readUint32BE() { | ||
const result = __classPrivateFieldGet(this, _view).getUint32(this.bytePos, false); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_view, "f").getUint32(this.bytePos, false); | ||
this.bytePos += 4; | ||
@@ -142,3 +140,3 @@ return result; | ||
readUint32LE() { | ||
const result = __classPrivateFieldGet(this, _view).getUint32(this.bytePos, true); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_view, "f").getUint32(this.bytePos, true); | ||
this.bytePos += 4; | ||
@@ -148,3 +146,3 @@ return result; | ||
readFloat16BE() { | ||
const u16 = __classPrivateFieldGet(this, _view).getUint16(this.bytePos, false); | ||
const u16 = __classPrivateFieldGet(this, _ReadableStream_view, "f").getUint16(this.bytePos, false); | ||
this.bytePos += 2; | ||
@@ -154,3 +152,3 @@ return reinterpretUint16AsFloat16(u16); | ||
readFloat16LE() { | ||
const u16 = __classPrivateFieldGet(this, _view).getUint16(this.bytePos, true); | ||
const u16 = __classPrivateFieldGet(this, _ReadableStream_view, "f").getUint16(this.bytePos, true); | ||
this.bytePos += 2; | ||
@@ -160,3 +158,3 @@ return reinterpretUint16AsFloat16(u16); | ||
readFloat32BE() { | ||
const result = __classPrivateFieldGet(this, _view).getFloat32(this.bytePos, false); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_view, "f").getFloat32(this.bytePos, false); | ||
this.bytePos += 4; | ||
@@ -166,3 +164,3 @@ return result; | ||
readFloat32LE() { | ||
const result = __classPrivateFieldGet(this, _view).getFloat32(this.bytePos, true); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_view, "f").getFloat32(this.bytePos, true); | ||
this.bytePos += 4; | ||
@@ -172,3 +170,3 @@ return result; | ||
readFloat64BE() { | ||
const result = __classPrivateFieldGet(this, _view).getFloat64(this.bytePos, false); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_view, "f").getFloat64(this.bytePos, false); | ||
this.bytePos += 8; | ||
@@ -178,3 +176,3 @@ return result; | ||
readFloat64LE() { | ||
const result = __classPrivateFieldGet(this, _view).getFloat64(this.bytePos, true); | ||
const result = __classPrivateFieldGet(this, _ReadableStream_view, "f").getFloat64(this.bytePos, true); | ||
this.bytePos += 8; | ||
@@ -184,4 +182,4 @@ return result; | ||
readFloat64LE32() { | ||
TMP_DATA_VIEW.setUint32(0, __classPrivateFieldGet(this, _view).getUint32(this.bytePos + 4, true), true); | ||
TMP_DATA_VIEW.setUint32(4, __classPrivateFieldGet(this, _view).getUint32(this.bytePos, true), true); | ||
TMP_DATA_VIEW.setUint32(0, __classPrivateFieldGet(this, _ReadableStream_view, "f").getUint32(this.bytePos + 4, true), true); | ||
TMP_DATA_VIEW.setUint32(4, __classPrivateFieldGet(this, _ReadableStream_view, "f").getUint32(this.bytePos, true), true); | ||
const result = TMP_DATA_VIEW.getFloat64(0, true); | ||
@@ -224,3 +222,3 @@ this.bytePos += 8; | ||
for (let i = 0; i < 5; i++) { | ||
const nextByte = __classPrivateFieldGet(this, _bytes)[this.bytePos++]; | ||
const nextByte = __classPrivateFieldGet(this, _ReadableStream_bytes, "f")[this.bytePos++]; | ||
if (i < 4) { | ||
@@ -242,6 +240,6 @@ // Bit-shift is safe | ||
const endOfString = this.bytePos + byteLength; | ||
if (endOfString > __classPrivateFieldGet(this, _bytes).length) { | ||
if (endOfString > __classPrivateFieldGet(this, _ReadableStream_bytes, "f").length) { | ||
throw createIncompleteStreamError(); | ||
} | ||
const slice = __classPrivateFieldGet(this, _bytes).subarray(this.bytePos, endOfString); | ||
const slice = __classPrivateFieldGet(this, _ReadableStream_bytes, "f").subarray(this.bytePos, endOfString); | ||
const result = UTF8_DECODER.decode(slice); | ||
@@ -252,7 +250,7 @@ this.bytePos = endOfString; | ||
readNulUtf8() { | ||
const endOfString = __classPrivateFieldGet(this, _bytes).indexOf(0, this.bytePos); | ||
const endOfString = __classPrivateFieldGet(this, _ReadableStream_bytes, "f").indexOf(0, this.bytePos); | ||
if (endOfString < 0) { | ||
throw createIncompleteStreamError(); | ||
} | ||
const slice = __classPrivateFieldGet(this, _bytes).subarray(this.bytePos, endOfString); | ||
const slice = __classPrivateFieldGet(this, _ReadableStream_bytes, "f").subarray(this.bytePos, endOfString); | ||
const result = UTF8_DECODER.decode(slice); | ||
@@ -273,3 +271,3 @@ this.bytePos = endOfString + 1; | ||
const shift = 1 << (endBitPos - this.bitPos); | ||
const cur = (__classPrivateFieldGet(this, _bytes)[this.bytePos] >>> 8 - endBitPos) & (shift - 1); | ||
const cur = (__classPrivateFieldGet(this, _ReadableStream_bytes, "f")[this.bytePos] >>> 8 - endBitPos) & (shift - 1); | ||
result = result * shift + cur; | ||
@@ -281,3 +279,3 @@ n = 0; | ||
const shift = 1 << (8 - this.bitPos); | ||
const cur = __classPrivateFieldGet(this, _bytes)[this.bytePos] & (shift - 1); | ||
const cur = __classPrivateFieldGet(this, _ReadableStream_bytes, "f")[this.bytePos] & (shift - 1); | ||
result = result * shift + cur; | ||
@@ -304,3 +302,3 @@ n -= (8 - this.bitPos); | ||
} | ||
_bytes = new WeakMap(), _view = new WeakMap(), _byteEnd = new WeakMap(); | ||
_ReadableStream_bytes = new WeakMap(), _ReadableStream_view = new WeakMap(), _ReadableStream_byteEnd = new WeakMap(); | ||
function reinterpretUint16AsFloat16(u16) { | ||
@@ -307,0 +305,0 @@ const sign = (u16 & (1 << 15)) !== 0 ? -1 : 1; |
@@ -1,15 +0,13 @@ | ||
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to set private field on non-instance"); | ||
} | ||
privateMap.set(receiver, value); | ||
return value; | ||
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
if (kind === "m") throw new TypeError("Private method is not writable"); | ||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); | ||
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; | ||
}; | ||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to get private field on non-instance"); | ||
} | ||
return privateMap.get(receiver); | ||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); | ||
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); | ||
}; | ||
var _chunks, _bitsBuffer; | ||
var _WritableStream_chunks, _WritableStream_bitsBuffer; | ||
import { Incident } from "incident"; | ||
@@ -23,8 +21,8 @@ import { concatBytes } from "./concat-bytes.js"; | ||
constructor() { | ||
_chunks.set(this, void 0); | ||
_bitsBuffer.set(this, void 0); | ||
_WritableStream_chunks.set(this, void 0); | ||
_WritableStream_bitsBuffer.set(this, void 0); | ||
this.bytePos = 0; | ||
this.bitPos = 0; | ||
__classPrivateFieldSet(this, _bitsBuffer, 0); | ||
__classPrivateFieldSet(this, _chunks, []); | ||
__classPrivateFieldSet(this, _WritableStream_bitsBuffer, 0, "f"); | ||
__classPrivateFieldSet(this, _WritableStream_chunks, [], "f"); | ||
} | ||
@@ -40,5 +38,5 @@ asBitStream() { | ||
if (this.bitPos !== 0) { | ||
this.writeUint8(__classPrivateFieldGet(this, _bitsBuffer)); // Increments `this.bytePos` | ||
this.writeUint8(__classPrivateFieldGet(this, _WritableStream_bitsBuffer, "f")); // Increments `this.bytePos` | ||
this.bitPos = 0; | ||
__classPrivateFieldSet(this, _bitsBuffer, 0); | ||
__classPrivateFieldSet(this, _WritableStream_bitsBuffer, 0, "f"); | ||
} | ||
@@ -50,7 +48,7 @@ } | ||
writeBytes(value) { | ||
__classPrivateFieldGet(this, _chunks).push(value); | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(value); | ||
this.bytePos += value.length; | ||
} | ||
writeZeros(size) { | ||
__classPrivateFieldGet(this, _chunks).push(new Uint8Array(size)); | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(new Uint8Array(size)); | ||
this.bytePos += size; | ||
@@ -63,4 +61,4 @@ } | ||
} | ||
this.writeUint8(__classPrivateFieldGet(this, _bitsBuffer)); | ||
__classPrivateFieldSet(this, _bitsBuffer, 0); | ||
this.writeUint8(__classPrivateFieldGet(this, _WritableStream_bitsBuffer, "f")); | ||
__classPrivateFieldSet(this, _WritableStream_bitsBuffer, 0, "f"); | ||
size -= 8 - this.bitPos; | ||
@@ -78,3 +76,3 @@ const bitPos = size % 8; | ||
writeSint32LE(value) { | ||
__classPrivateFieldGet(this, _chunks).push(Buffer.from([ | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(Buffer.from([ | ||
(value >>> 0) & 0xff, | ||
@@ -88,7 +86,7 @@ (value >>> 8) & 0xff, | ||
writeUint8(value) { | ||
__classPrivateFieldGet(this, _chunks).push(Buffer.from([value & 0xff])); | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(Buffer.from([value & 0xff])); | ||
this.bytePos++; | ||
} | ||
writeUint16BE(value) { | ||
__classPrivateFieldGet(this, _chunks).push(Buffer.from([ | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(Buffer.from([ | ||
(value >>> 8) & 0xff, | ||
@@ -100,3 +98,3 @@ (value >>> 0) & 0xff, | ||
writeUint16LE(value) { | ||
__classPrivateFieldGet(this, _chunks).push(Buffer.from([ | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(Buffer.from([ | ||
(value >>> 0) & 0xff, | ||
@@ -108,3 +106,3 @@ (value >>> 8) & 0xff, | ||
writeUint32BE(value) { | ||
__classPrivateFieldGet(this, _chunks).push(Buffer.from([ | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(Buffer.from([ | ||
(value >>> 24) & 0xff, | ||
@@ -128,3 +126,3 @@ (value >>> 16) & 0xff, | ||
TMP_DATA_VIEW.setFloat32(0, value, false); | ||
__classPrivateFieldGet(this, _chunks).push(new Uint8Array(TMP_BUFFER.slice(0, 4))); | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(new Uint8Array(TMP_BUFFER.slice(0, 4))); | ||
this.bytePos += 4; | ||
@@ -134,3 +132,3 @@ } | ||
TMP_DATA_VIEW.setFloat32(0, value, true); | ||
__classPrivateFieldGet(this, _chunks).push(new Uint8Array(TMP_BUFFER.slice(0, 4))); | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(new Uint8Array(TMP_BUFFER.slice(0, 4))); | ||
this.bytePos += 4; | ||
@@ -140,3 +138,3 @@ } | ||
TMP_DATA_VIEW.setFloat64(0, value, false); | ||
__classPrivateFieldGet(this, _chunks).push(new Uint8Array(TMP_BUFFER.slice(0, 8))); | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(new Uint8Array(TMP_BUFFER.slice(0, 8))); | ||
this.bytePos += 8; | ||
@@ -146,3 +144,3 @@ } | ||
TMP_DATA_VIEW.setFloat64(0, value, true); | ||
__classPrivateFieldGet(this, _chunks).push(new Uint8Array(TMP_BUFFER.slice(0, 8))); | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(new Uint8Array(TMP_BUFFER.slice(0, 8))); | ||
this.bytePos += 8; | ||
@@ -152,4 +150,4 @@ } | ||
TMP_DATA_VIEW.setFloat64(0, value, true); | ||
__classPrivateFieldGet(this, _chunks).push(new Uint8Array(TMP_BUFFER.slice(4, 8))); | ||
__classPrivateFieldGet(this, _chunks).push(new Uint8Array(TMP_BUFFER.slice(0, 4))); | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(new Uint8Array(TMP_BUFFER.slice(4, 8))); | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(new Uint8Array(TMP_BUFFER.slice(0, 4))); | ||
this.bytePos += 8; | ||
@@ -188,3 +186,3 @@ } | ||
} | ||
__classPrivateFieldGet(this, _chunks).push(new Uint8Array(chunk)); | ||
__classPrivateFieldGet(this, _WritableStream_chunks, "f").push(new Uint8Array(chunk)); | ||
this.bytePos += chunk.length; | ||
@@ -200,4 +198,4 @@ } | ||
getBytes() { | ||
const bytes = concatBytes(__classPrivateFieldGet(this, _chunks)); | ||
__classPrivateFieldSet(this, _chunks, [bytes]); | ||
const bytes = concatBytes(__classPrivateFieldGet(this, _WritableStream_chunks, "f")); | ||
__classPrivateFieldSet(this, _WritableStream_chunks, [bytes], "f"); | ||
return bytes; | ||
@@ -215,8 +213,8 @@ } | ||
const chunk = (value >>> (bits - consumedBits)) & ((1 << consumedBits) - 1); | ||
__classPrivateFieldSet(this, _bitsBuffer, __classPrivateFieldGet(this, _bitsBuffer) | (chunk << (availableBits - consumedBits))); | ||
__classPrivateFieldSet(this, _WritableStream_bitsBuffer, __classPrivateFieldGet(this, _WritableStream_bitsBuffer, "f") | (chunk << (availableBits - consumedBits)), "f"); | ||
bits -= consumedBits; | ||
this.bitPos += consumedBits; | ||
if (this.bitPos === 8) { | ||
this.writeUint8(__classPrivateFieldGet(this, _bitsBuffer)); | ||
__classPrivateFieldSet(this, _bitsBuffer, 0); | ||
this.writeUint8(__classPrivateFieldGet(this, _WritableStream_bitsBuffer, "f")); | ||
__classPrivateFieldSet(this, _WritableStream_bitsBuffer, 0, "f"); | ||
this.bitPos = 0; | ||
@@ -235,3 +233,3 @@ } | ||
} | ||
_chunks = new WeakMap(), _bitsBuffer = new WeakMap(); | ||
_WritableStream_chunks = new WeakMap(), _WritableStream_bitsBuffer = new WeakMap(); | ||
/** | ||
@@ -238,0 +236,0 @@ * Float16: |
MIT License | ||
Copyright © 2017 Charles Samborski | ||
Copyright © 2018-2021 Charles Samborski | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "@open-flash/stream", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"homepage": "https://github.com/open-flash/stream", | ||
@@ -18,2 +18,14 @@ "description": "Streams for Open Flash", | ||
"license": "MIT", | ||
"type": "module", | ||
"exports": { | ||
".": "./lib/index.js", | ||
"./*": "./lib/*.js" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"./lib/*" | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
@@ -28,7 +40,2 @@ "clean": "rimraf \"./@(lib|test)\"", | ||
}, | ||
"pre-commit": { | ||
"run": [ | ||
"lint" | ||
] | ||
}, | ||
"engines": { | ||
@@ -42,25 +49,18 @@ "node": ">=14.13.1" | ||
"devDependencies": { | ||
"@types/chai": "^4.2.17", | ||
"@types/mocha": "^8.2.2", | ||
"@types/node": "^15.0.1", | ||
"@typescript-eslint/eslint-plugin": "^4.22.0", | ||
"@typescript-eslint/parser": "^4.22.0", | ||
"@types/chai": "^4.2.21", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.4.1", | ||
"@typescript-eslint/eslint-plugin": "^4.28.4", | ||
"@typescript-eslint/parser": "^4.28.4", | ||
"chai": "^4.3.4", | ||
"eslint": "^7.25.0", | ||
"eslint": "^7.31.0", | ||
"eslint-plugin-simple-import-sort": "^7.0.0", | ||
"mocha": "^8.3.2", | ||
"mocha": "^9.0.2", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.2.4" | ||
"typescript": "^4.3.5" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
".": "./lib/index.js", | ||
"./lib/": "./lib/" | ||
}, | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"files": [ | ||
"./lib/" | ||
"./lib/**/*.(js|map|ts)", | ||
"./src/lib/**/*.ts" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24
1435
0
72960