2021-10-29 01:31:55 -05:00
|
|
|
/**
|
|
|
|
* lz-string exports.
|
|
|
|
*
|
|
|
|
* @author crespyl [peter@crespyl.net]
|
|
|
|
* @copyright Peter Jacobs 2021
|
|
|
|
* @license Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
import LZString from "lz-string";
|
|
|
|
|
|
|
|
export const COMPRESSION_OUTPUT_FORMATS = ["default", "UTF16", "Base64"];
|
|
|
|
export const COMPRESSION_FUNCTIONS = {
|
2024-02-24 22:59:51 -05:00
|
|
|
default: LZString.compress,
|
|
|
|
UTF16: LZString.compressToUTF16,
|
|
|
|
Base64: LZString.compressToBase64,
|
2021-10-29 01:31:55 -05:00
|
|
|
};
|
|
|
|
export const DECOMPRESSION_FUNCTIONS = {
|
2024-02-24 22:59:51 -05:00
|
|
|
default: LZString.decompress,
|
|
|
|
UTF16: LZString.decompressFromUTF16,
|
|
|
|
Base64: LZString.decompressFromBase64,
|
2021-10-29 01:31:55 -05:00
|
|
|
};
|