Comparing version 1.1.0 to 1.1.1
@@ -129,10 +129,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
else if (OPutMap.has(value.constructor)) { | ||
const container = this.malloc(value.length << OPutMap.get(value.constructor)); | ||
container.set(new Uint8Array(value.buffer, value.byteOffset, container.length)); | ||
} | ||
else { | ||
throw new Error('Unsupported type'); | ||
this.malloc(value.byteLength).set(new Uint8Array(value.buffer, value.byteOffset, value.byteLength)); | ||
} | ||
this.flush(); | ||
if (this.g || this.resolve) | ||
this.flush(); | ||
} | ||
@@ -139,0 +136,0 @@ writeU32(value) { |
{ | ||
"name": "oput", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "0 put do", | ||
@@ -5,0 +5,0 @@ "main": "src/index.ts", |
@@ -106,9 +106,6 @@ | ||
this.malloc(value.byteLength).set(new Uint8Array(value)); | ||
} else if (OPutMap.has(value.constructor)) { | ||
const container = this.malloc(value.length << OPutMap.get(value.constructor)!); | ||
container.set(new Uint8Array(value.buffer, value.byteOffset, container.length)); | ||
} else { | ||
throw new Error('Unsupported type'); | ||
this.malloc(value.byteLength).set(new Uint8Array(value.buffer, value.byteOffset, value.byteLength)); | ||
} | ||
this.flush(); | ||
if (this.g || this.resolve) this.flush(); | ||
} | ||
@@ -115,0 +112,0 @@ writeU32(value: number) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
230227
1175