We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 633dfbf + 9091791 commit 1dd603bCopy full SHA for 1dd603b
src/base64.ts
@@ -27,4 +27,4 @@ export const decodeBase64 = (str: string): Uint8Array => {
27
};
28
29
const jsonUTF8Stringify = (obj: any): Uint8Array => utf8Encoder.encode(JSON.stringify(obj));
30
-export const encodeObjectBase64Url = (obj: any): string => encodeBase64Url(jsonUTF8Stringify(obj));
+export const encodeObjectBase64Url = (obj: any): string => encodeBase64Url(jsonUTF8Stringify(obj).buffer);
tsconfig.json
@@ -1,6 +1,6 @@
1
{
2
"compilerOptions": {
3
- "target": "es2022",
+ "target": "esnext",
4
"module": "commonjs",
5
"declaration": true,
6
"moduleResolution": "node",
0 commit comments