Socket
Socket
Sign inDemoInstall

yaml

Package Overview
Dependencies
Maintainers
3
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaml - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/Document.js

@@ -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": {},

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