@zkochan/js-yaml
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -116,2 +116,3 @@ 'use strict'; | ||
function State(options) { | ||
this.blankLines = options['blankLines'] || false; | ||
this.schema = options['schema'] || DEFAULT_SCHEMA; | ||
@@ -835,3 +836,4 @@ this.indent = Math.max(1, (options['indent'] || 2)); | ||
if (block && (Object.keys(state.dump).length !== 0) && objectKey !== 'resolution') { | ||
var doubleLine = objectKey === 'packages' || objectKey === 'importers' || level === 0; | ||
var doubleLine = state.blankLines ? | ||
(objectKey === 'packages' || objectKey === 'importers' || level === 0) : false; | ||
writeBlockMapping(state, level, state.dump, compact, doubleLine); | ||
@@ -838,0 +840,0 @@ if (duplicate) { |
{ | ||
"name": "@zkochan/js-yaml", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "YAML 1.2 parser and serializer", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"coverage": "npm run lint && nyc mocha && nyc report --reporter html", | ||
"demo": "npm run lint", | ||
"demo": "npm run lint && node support/build_demo.js", | ||
"gh-demo": "npm run demo", | ||
@@ -43,0 +43,0 @@ "browserify": "rollup -c support/rollup.config.js", |
402997
9431