From c1c1e8a2b08214355b4d5fba8a44007cb96ac39f Mon Sep 17 00:00:00 2001 From: Elanthingal Chandrasekaran Date: Sat, 7 Sep 2024 14:39:09 +0530 Subject: [PATCH 1/2] Update package.json Fixed #204 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 853a8ee..8a631c6 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,8 @@ "dependencies": { "prop-types": "^15.8.0", "qrcode": "^1.5.1", - "text-encoding": "^0.7.0" + "fast-text-encoding": "^1.0.6" + }, "devDependencies": { "@types/react": "^18.2.75", From e8a66fb6051d41d3a0aada671237d9c484a57b60 Mon Sep 17 00:00:00 2001 From: Elanthingal Chandrasekaran Date: Sat, 7 Sep 2024 14:39:58 +0530 Subject: [PATCH 2/2] Updated New Text Encoder --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 6af8f01..8093abe 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -global.TextEncoder = require("text-encoding").TextEncoder; +global.TextEncoder = require("fast-text-encoding").TextEncoder; import React, { useMemo } from "react"; import Svg, {