From 8fda11da5d999c1fc51e6c272a04ef59f90380b3 Mon Sep 17 00:00:00 2001 From: Dave Mihalcik <38867245+dmihalcik-virtru@users.noreply.github.com> Date: Thu, 26 Jan 2023 09:06:36 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20string=20sources=20(#137)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - These need to be encoded as buffers --- lib/tdf3/src/client/builders.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tdf3/src/client/builders.ts b/lib/tdf3/src/client/builders.ts index 9ad91d44..b9ea6a0e 100644 --- a/lib/tdf3/src/client/builders.ts +++ b/lib/tdf3/src/client/builders.ts @@ -232,7 +232,7 @@ class EncryptParamsBuilder { setStringSource(string: string) { const stream = new ReadableStream({ pull(controller) { - controller.enqueue(string); + controller.enqueue(new TextEncoder().encode(string)); controller.close(); }, });