(bytes: Uint8Array)
| 105 | } |
| 106 | |
| 107 | private static encode(bytes: Uint8Array): string { |
| 108 | return btoa(String.fromCharCode(...bytes)); |
| 109 | } |
| 110 | |
| 111 | private static decode(payload: string): Uint8Array { |
| 112 | return Uint8Array.from(atob(payload), (char) => char.charCodeAt(0)); |
no outgoing calls
no test coverage detected