MCPcopy Create free account
hub / github.com/decaporg/decap-cms / unused

Function unused

scripts/shims/unusedJsYaml.js:7–11  ·  view source on GitHub ↗

* Stand-in for `js-yaml`, which `gray-matter` loads for its default YAML * engine. Decap passes its own `yaml` engine on every `matter()` and * `matter.stringify()` call (see decap-cms-core/src/formats/frontmatter.ts), so * the default is never used in the browser bundles.

()

Source from the content-addressed store, hash-verified

5 * the default is never used in the browser bundles.
6 */
7function unused() {
8 throw new Error(
9 'js-yaml is not bundled with Decap CMS; pass a yaml engine to gray-matter instead.',
10 );
11}
12
13module.exports = { safeLoad: unused, safeDump: unused };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected