Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stream-stringify

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-stringify - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

12

lib/stream-stringify.js

@@ -56,5 +56,2 @@ // Generated by CoffeeScript 1.9.2

this.prevTabCharacter = StreamStringify._tabCharacter(this.tabWidth * (this.tabLevel - 1));
this.op += "\n" + this.tabCharacter;
this.sep += "\n" + this.tabCharacter;
this.cl = "\n" + this.prevTabCharacter + this.cl;
}

@@ -119,5 +116,5 @@ this.on('end', function() {

this.first = false;
return this.op + data;
return this.op + (this.prettyFormat ? "\n" + this.tabCharacter : "") + data;
} else {
return this.sep + data;
return this.sep + (this.prettyFormat ? "\n" + this.tabCharacter : "") + data;
}

@@ -234,2 +231,7 @@ };

if (!this.stopped) {
if (this.first) {
this.queue(this.op);
} else if (this.prettyFormat) {
this.cl = "\n" + this.prevTabCharacter + this.cl;
}
this.queue(this.cl);

@@ -236,0 +238,0 @@ this.resume();

{
"name": "stream-stringify",
"version": "2.0.6",
"version": "2.0.7",
"description": "Stringify nested JSON through streams.",

@@ -5,0 +5,0 @@ "main": "lib/stream-stringify.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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