mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 20:49:23 +00:00
perf!: reduce the bundle size of /converters/json-yaml
BREAKING CHANGE: empty keys in yaml are no longer supported
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { tryCatchK } from "fp-ts/lib/Option";
|
||||
import YAML from "yaml";
|
||||
import yaml from "js-yaml";
|
||||
|
||||
export const safeYamlParse = tryCatchK(YAML.parse);
|
||||
export const safeYamlParse = tryCatchK(yaml.load);
|
||||
|
||||
Reference in New Issue
Block a user