persona-community-5/.pnpm-store/v3/files/2c/bec747ead6aee53662fd570346f9c023b0bae9d6fae7e3ad425324ce172b93fc4551abb66842fd73176d84dc3c7158e92f7afb7abfc1037d3114a177715655
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

16 lines
837 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringifyYaml = exports.parseYaml = void 0;
// TODO: add a type for "types" https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/js-yaml/index.d.ts
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const js_yaml_1 = require("js-yaml");
const DEFAULT_SCHEMA_WITHOUT_TIMESTAMP = js_yaml_1.JSON_SCHEMA.extend({
implicit: [js_yaml_1.types.merge],
explicit: [js_yaml_1.types.binary, js_yaml_1.types.omap, js_yaml_1.types.pairs, js_yaml_1.types.set],
});
const parseYaml = (str, opts) => (0, js_yaml_1.load)(str, { schema: DEFAULT_SCHEMA_WITHOUT_TIMESTAMP, ...opts });
exports.parseYaml = parseYaml;
const stringifyYaml = (obj, opts) => (0, js_yaml_1.dump)(obj, opts);
exports.stringifyYaml = stringifyYaml;