New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

farc

Package Overview
Dependencies
Maintainers
2
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

farc - npm Package Compare versions

Comparing version 0.0.1-main.20240211T233151 to 0.0.1-main.20240212T015750

4

_lib/utils/deserializeJson.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc