perf!: reduce the bundle size of /converters/json-yaml

BREAKING CHANGE: empty keys in yaml are no longer supported
This commit is contained in:
rusconn
2023-06-15 17:08:47 +09:00
parent 3d76979c08
commit 497991f133
4 changed files with 19 additions and 13 deletions

View File

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