Socket
Socket
Sign inDemoInstall

@sap-ux/yaml

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/yaml - npm Package Compare versions

Comparing version 0.14.2 to 0.15.0

2

dist/index.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc