Skip to content

Commit

Permalink
fix(stringify): use base64url as compression output (#33)
Browse files Browse the repository at this point in the history
Closes #32.
  • Loading branch information
Kit-p committed Mar 25, 2023
1 parent 3b17664 commit 328c3f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stringify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ function minifyKeys(

export function compressString(str: string): string {
return Base64.fromUint8Array(
compress(new TextEncoder().encode(str)) as Uint8Array
compress(new TextEncoder().encode(str)) as Uint8Array,
true
);
}

0 comments on commit 328c3f7

Please sign in to comment.