From 51eabd809d72b747de9af7e53f640885208a83dd Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 9 Apr 2023 00:35:45 -0400 Subject: [PATCH] *Update dist --- dist/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 5da8d90..241658c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,7 +1,7 @@ import { Client, factory } from "@lumeweb/libkernel-universal"; import { MODULE } from "@lumeweb/kernel-swarm-client"; import defer from "p-defer"; -import b4a from "b4a"; +import { Buffer } from "buffer"; export default class Protomux { isProtomux = true; constructor(stream) { @@ -137,13 +137,13 @@ class Message extends Client { if (data.args) { data.args = data.args.filter((arg) => { if (arg instanceof Uint8Array) { - return b4a.from(arg); + return Buffer.from(arg); } return arg; }); } if (data?.args && data?.args[0]?.buffer instanceof Uint8Array) { - data.args[0].buffer = b4a.from(data.args[0].buffer); + data.args[0].buffer = Buffer.from(data.args[0].buffer); } switch (data.action) { case "encode":