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.2 to 0.0.3

9

lib/dumper.js

@@ -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;

2

package.json
{
"name": "@zkochan/js-yaml",
"version": "0.0.2",
"version": "0.0.3",
"description": "YAML 1.2 parser and serializer",

@@ -5,0 +5,0 @@ "keywords": [

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