@mercuryworkshop/bare-mux
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -58,3 +58,3 @@ import { BareHeaders, BareTransport } from './baretypes'; | ||
worker: WorkerConnection; | ||
constructor(worker: string | Promise<MessagePort> | MessagePort); | ||
constructor(worker?: string | Promise<MessagePort> | MessagePort); | ||
getTransport(): Promise<string>; | ||
@@ -61,0 +61,0 @@ setTransport(path: string, options: any[], transferables?: Transferable[]): Promise<void>; |
@@ -445,5 +445,5 @@ (function (global, factory) { | ||
let data = args[0]; | ||
// @ts-expect-error idk why it errors? | ||
// @ts-expect-error | ||
if (data.buffer) | ||
data = data.buffer; | ||
data = data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength); | ||
channel.port1.postMessage({ type: "data", data: data }, data instanceof ArrayBuffer ? [data] : []); | ||
@@ -450,0 +450,0 @@ }; |
{ | ||
"name": "@mercuryworkshop/bare-mux", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
65325