@sap-ux/yaml
Advanced tools
Comparing version 0.14.2 to 0.15.0
@@ -1,4 +0,4 @@ | ||
export { YamlDocument, NodeComment } from './yaml-document'; | ||
export { YamlDocument, NodeComment, yamlDocumentToYamlString } from './yaml-document'; | ||
export { Node, YAMLSeq, YAMLMap } from 'yaml'; | ||
export { errorCode, YAMLError } from './errors'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.YAMLError = exports.errorCode = exports.YAMLMap = exports.YAMLSeq = exports.YamlDocument = void 0; | ||
exports.YAMLError = exports.errorCode = exports.YAMLMap = exports.YAMLSeq = exports.yamlDocumentToYamlString = exports.YamlDocument = void 0; | ||
var yaml_document_1 = require("./yaml-document"); | ||
Object.defineProperty(exports, "YamlDocument", { enumerable: true, get: function () { return yaml_document_1.YamlDocument; } }); | ||
Object.defineProperty(exports, "yamlDocumentToYamlString", { enumerable: true, get: function () { return yaml_document_1.yamlDocumentToYamlString; } }); | ||
var yaml_1 = require("yaml"); | ||
@@ -7,0 +8,0 @@ Object.defineProperty(exports, "YAMLSeq", { enumerable: true, get: function () { return yaml_1.YAMLSeq; } }); |
@@ -9,2 +9,9 @@ import type { Node, YAMLMap } from 'yaml'; | ||
/** | ||
* Converts a YAML document object into a YAML string. | ||
* | ||
* @param {YamlDocument} yamlDocument The YAML document object to convert into a string. | ||
* @returns {string} The YAML string representation of the input YAML document. | ||
*/ | ||
export declare function yamlDocumentToYamlString(yamlDocument: YamlDocument): string; | ||
/** | ||
* Represents a yaml document with utility functions to manipulate the document. | ||
@@ -11,0 +18,0 @@ * |
@@ -38,3 +38,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.YamlDocument = void 0; | ||
exports.YamlDocument = exports.yamlDocumentToYamlString = void 0; | ||
const yaml_1 = __importStar(require("yaml")); | ||
@@ -45,2 +45,12 @@ const merge_1 = __importDefault(require("lodash/merge")); | ||
/** | ||
* Converts a YAML document object into a YAML string. | ||
* | ||
* @param {YamlDocument} yamlDocument The YAML document object to convert into a string. | ||
* @returns {string} The YAML string representation of the input YAML document. | ||
*/ | ||
function yamlDocumentToYamlString(yamlDocument) { | ||
return yaml_1.default.stringify(yamlDocument); | ||
} | ||
exports.yamlDocumentToYamlString = yamlDocumentToYamlString; | ||
/** | ||
* Represents a yaml document with utility functions to manipulate the document. | ||
@@ -47,0 +57,0 @@ * |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.14.2", | ||
"version": "0.15.0", | ||
"main": "dist/index.js", | ||
@@ -15,0 +15,0 @@ "license": "Apache-2.0", |
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
43193
717