Skip to content

Commit 328c3f7

Browse files
authored
fix(stringify): use base64url as compression output (#33)
Closes #32.
1 parent 3b17664 commit 328c3f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stringify.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ function minifyKeys(
252252

253253
export function compressString(str: string): string {
254254
return Base64.fromUint8Array(
255-
compress(new TextEncoder().encode(str)) as Uint8Array
255+
compress(new TextEncoder().encode(str)) as Uint8Array,
256+
true
256257
);
257258
}

0 commit comments

Comments
 (0)