Comparing version 1.0.0 to 1.0.1
@@ -68,3 +68,3 @@ "use strict"; | ||
if (this.options.keepCstNodes) this.cstNode = node; | ||
if (this.options.keepNodeTypes) this.type = "DOCUMENT"; | ||
if (this.options.keepNodeTypes) this.type = 'DOCUMENT'; | ||
const _node$directives = node.directives, | ||
@@ -71,0 +71,0 @@ directives = _node$directives === void 0 ? [] : _node$directives, |
@@ -248,3 +248,3 @@ "use strict"; | ||
if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t ]$/.test(value)) { | ||
if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) { | ||
// not allowed: | ||
@@ -255,3 +255,3 @@ // - empty string | ||
// - '#' not preceded by a non-space char | ||
// - end with ' ' | ||
// - end with ' ' or ':' | ||
return implicitKey || inFlow || value.indexOf('\n') === -1 ? value.indexOf('"') !== -1 && value.indexOf("'") === -1 ? singleQuotedString(value, ctx) : doubleQuotedString(value, ctx) : blockString(item, ctx, onComment); | ||
@@ -258,0 +258,0 @@ } |
{ | ||
"name": "yaml", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "dist/index.js", | ||
@@ -69,6 +69,6 @@ "license": "ISC", | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.0", | ||
"@babel/core": "^7.1.0", | ||
"@babel/cli": "^7.1.5", | ||
"@babel/core": "^7.1.5", | ||
"@babel/plugin-proposal-class-properties": "^7.1.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/preset-env": "^7.1.5", | ||
"babel-core": "^7.0.0-bridge.0", | ||
@@ -79,3 +79,3 @@ "babel-jest": "^23.6.0", | ||
"jest": "^23.6.0", | ||
"prettier": "^1.14.3" | ||
"prettier": "^1.15.1" | ||
}, | ||
@@ -82,0 +82,0 @@ "dependencies": {}, |
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
165882