@stoplight/yaml
Advanced tools
Comparing version 3.5.0 to 3.5.1
{ | ||
"name": "@stoplight/yaml", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"description": "Useful functions when working with YAML.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import { DumpOptions } from '@stoplight/yaml-ast-parser'; | ||
export declare const safeStringify: (value: any, options?: DumpOptions | undefined) => string; | ||
export declare const safeStringify: (value: unknown, options?: DumpOptions | undefined) => string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const yaml_ast_parser_1 = require("@stoplight/yaml-ast-parser"); | ||
exports.safeStringify = (value, options) => { | ||
if (!value || typeof value === 'string') | ||
return value; | ||
return yaml_ast_parser_1.safeDump(value, options); | ||
}; | ||
exports.safeStringify = (value, options) => typeof value === 'string' ? value : yaml_ast_parser_1.safeDump(value, options); | ||
//# sourceMappingURL=safeStringify.js.map |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62434
684