Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
compress (data) {
return new Uint32Array(
pack(
// convert to base64 (utf-16 safe)
Base64.encode(
JSON.stringify(data)
)
)
).buffer
}
decompress (data) {
decompress (data) {
return JSON.parse(
Base64.decode(
unpack(
[...new Uint32Array(data)]
)
)
)
}
serialize () {