Socket
Socket
Sign inDemoInstall

@zkochan/js-yaml

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0 to 0.0.1

4

lib/dumper.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc