@sap-ux/yaml
Advanced tools
Comparing version 0.15.0 to 0.15.1
@@ -142,2 +142,9 @@ import type { Node, YAMLMap } from 'yaml'; | ||
/** | ||
* Simplified method to delete a value in the yaml document. | ||
* | ||
* @param key - key of the yaml node to delete | ||
* @returns `true` if the item was found and removed. | ||
*/ | ||
delete(key: string): boolean; | ||
/** | ||
* Deletes a node in a sequence in the document. | ||
@@ -144,0 +151,0 @@ * |
@@ -265,2 +265,11 @@ "use strict"; | ||
/** | ||
* Simplified method to delete a value in the yaml document. | ||
* | ||
* @param key - key of the yaml node to delete | ||
* @returns `true` if the item was found and removed. | ||
*/ | ||
delete(key) { | ||
return this.documents[0].delete(key); | ||
} | ||
/** | ||
* Deletes a node in a sequence in the document. | ||
@@ -267,0 +276,0 @@ * |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"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
43691
733