Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/yaml

Package Overview
Dependencies
Maintainers
1
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/yaml - npm Package Compare versions

Comparing version 1.0.0-rc.2 to 1.0.0-rc.3

7

package.json

@@ -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 @@ }

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