Skip to content

Commit

Permalink
remove buffer-related code
Browse files Browse the repository at this point in the history
  • Loading branch information
gugu committed Mar 9, 2024
1 parent fe23dcc commit 741b743
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qreator",
"version": "9.0.6",
"version": "9.1.0",
"description": "QR Code generator for browser and node.js with tree shaking and logo support",
"homepage": "https://github.com/Short-io/qreator",
"keywords": [
Expand Down
2 changes: 0 additions & 2 deletions src/encode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export function encode(inData: string | number | ArrayBuffer, parse_url: boolean
if (typeof inData === "string" || typeof inData === "number") {
str = `${inData}`;
data = enc.encode(str);
} else if (typeof Buffer !== "undefined" && Buffer.isBuffer(data)) {
str = inData.toString();
} else if (Array.isArray(inData)) {
data = new Uint8Array(inData);
str = dec.decode(inData);
Expand Down

0 comments on commit 741b743

Please sign in to comment.