@travetto/yaml
Advanced tools
Comparing version 1.0.0-rc.2 to 1.0.0-rc.3
@@ -17,3 +17,3 @@ { | ||
"dependencies": { | ||
"@travetto/base": "^1.0.0-rc.1" | ||
"@travetto/base": "^1.0.0-rc.2" | ||
}, | ||
@@ -30,3 +30,4 @@ "license": "MIT", | ||
}, | ||
"version": "1.0.0-rc.2" | ||
} | ||
"version": "1.0.0-rc.3", | ||
"gitHead": "019d593f07d43f679392e3e8fdfb4ab58e71da7a" | ||
} |
travetto: Yaml | ||
=== | ||
In the desire to provide a minimal footprint, the framework provides a very minimal YAML parser/serializer to handle standard configuration structure. Additionally, if the yaml support is too minimal, simply installing [`js-yaml`](https://github.com/nodeca/js-yaml) will override the serialization/parsing behavior to `js-yaml`'s strict implementation. | ||
In the desire to provide a minimal footprint, the framework provides a minimal YAML parser/serializer to handle standard configuration structure. | ||
[`YamlUtil`](./src/api.ts) is the main access point for this module, and will expose two method, `parse` and `serialize`. |
@@ -91,3 +91,3 @@ import { Node, TextNode, JSONNode, NumberNode, BooleanNode, NullNode } from './type/node'; | ||
/** | ||
* Parse JSON subdocument as it is valid YAML | ||
* Parse JSON sub-document as it is valid YAML | ||
*/ | ||
@@ -94,0 +94,0 @@ static readJSON(text: string, pos: number = 0, end: number = text.length) { |
@@ -10,3 +10,3 @@ import { Util } from '@travetto/base'; | ||
const ch = value.charCodeAt(0); | ||
if (ch === 0x22 /* dbl quote*/ || ch === 0x27 /* sngl quote */) { | ||
if (ch === 0x22 /* dbl quote*/ || ch === 0x27 /* sgl quote */) { | ||
this.value = this.value.substring(1, this.value.length - 1).replace(new RegExp(`\\\\${value[0]}`, 'g'), value[0]); | ||
@@ -13,0 +13,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
21220
Updated@travetto/base@^1.0.0-rc.2