@zkochan/js-yaml
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -63,2 +63,9 @@ 'use strict'; | ||
var SINGLE_LINE_KEYS = { | ||
cpu: true, | ||
engines: true, | ||
os: true, | ||
resolution: true | ||
}; | ||
function compileStyleMap(schema, map) { | ||
@@ -835,3 +842,3 @@ var result, keys, index, length, tag, style, type; | ||
if (type === '[object Object]') { | ||
if (block && (Object.keys(state.dump).length !== 0) && objectKey !== 'resolution') { | ||
if (block && (Object.keys(state.dump).length !== 0) && !SINGLE_LINE_KEYS[objectKey]) { | ||
var doubleLine = state.blankLines ? | ||
@@ -838,0 +845,0 @@ (objectKey === 'packages' || objectKey === 'importers' || level === 0) : false; |
{ | ||
"name": "@zkochan/js-yaml", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "YAML 1.2 parser and serializer", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
403930
9444