Comparing version 0.0.1-main.20240211T233151 to 0.0.1-main.20240212T015750
@@ -1,7 +0,7 @@ | ||
import { decompressFromEncodedURIComponent } from 'lz-string'; | ||
import { default as lz } from 'lz-string'; | ||
export function deserializeJson(data = '') { | ||
if (data === 'undefined') | ||
return {}; | ||
return JSON.parse(decompressFromEncodedURIComponent(data)); | ||
return JSON.parse(lz.decompressFromEncodedURIComponent(data)); | ||
} | ||
//# sourceMappingURL=deserializeJson.js.map |
@@ -1,5 +0,5 @@ | ||
import { compressToEncodedURIComponent } from 'lz-string'; | ||
import { default as lz } from 'lz-string'; | ||
export function serializeJson(data = {}) { | ||
return compressToEncodedURIComponent(JSON.stringify(data)); | ||
return lz.compressToEncodedURIComponent(JSON.stringify(data)); | ||
} | ||
//# sourceMappingURL=serializeJson.js.map |
{ | ||
"name": "farc", | ||
"version": "0.0.1-main.20240211T233151", | ||
"version": "0.0.1-main.20240212T015750", | ||
"type": "module", | ||
@@ -19,3 +19,3 @@ "module": "_lib/index.js", | ||
"happy-dom": "^13.3.8", | ||
"hono-og": "~0.0.2", | ||
"hono-og": "~0.0.3", | ||
"immer": "^10.0.3", | ||
@@ -22,0 +22,0 @@ "lz-string": "^1.5.0", |
@@ -1,6 +0,6 @@ | ||
import { decompressFromEncodedURIComponent } from 'lz-string' | ||
import { default as lz } from 'lz-string' | ||
export function deserializeJson<returnType>(data = ''): returnType { | ||
if (data === 'undefined') return {} as returnType | ||
return JSON.parse(decompressFromEncodedURIComponent(data)) | ||
return JSON.parse(lz.decompressFromEncodedURIComponent(data)) | ||
} |
@@ -1,5 +0,5 @@ | ||
import { compressToEncodedURIComponent } from 'lz-string' | ||
import { default as lz } from 'lz-string' | ||
export function serializeJson(data: unknown = {}) { | ||
return compressToEncodedURIComponent(JSON.stringify(data)) | ||
return lz.compressToEncodedURIComponent(JSON.stringify(data)) | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
307675
Updatedhono-og@~0.0.3