New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

streaming-json-stringify

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streaming-json-stringify - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

15

index.js

@@ -27,2 +27,12 @@

this._writableState.objectMode = true
// Array Deliminator defaults
var open = options && options.open ? options.open : '[\n'
var seperator = options && options.seperator ? options.seperator : '\n,\n'
var close = options && options.close ? options.close : '\n]\n'
// Array Deliminators
this.open = new Buffer(open, 'utf8')
this.seperator = new Buffer(seperator, 'utf8')
this.close = new Buffer(close, 'utf8')
}

@@ -33,7 +43,2 @@

// Array delimiters
Stringify.prototype.open = new Buffer('[\n', 'utf8')
Stringify.prototype.seperator = new Buffer('\n,\n', 'utf8')
Stringify.prototype.close = new Buffer('\n]\n', 'utf8')
// JSON.stringify options

@@ -40,0 +45,0 @@ Stringify.prototype.replacer = null

{
"name": "streaming-json-stringify",
"description": "Streaming JSON.stringify()",
"version": "2.1.0",
"version": "2.2.0",
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",

@@ -28,4 +28,4 @@ "repository": "stream-utils/streaming-json-stringify",

"json-stringify-safe": "5",
"readable-stream": "1"
"readable-stream": "2"
}
}

@@ -9,3 +9,2 @@ # Streaming JSON.stringify()

[![Downloads][downloads-image]][downloads-url]
[![Gittip][gittip-image]][gittip-url]

@@ -82,3 +81,1 @@ Similar to [JSONStream.stringify()](https://github.com/dominictarr/JSONStream#jsonstreamstringifyopen-sep-close) except it is, by default, a binary stream, and it is a streams2 implementation.

[downloads-url]: https://npmjs.org/package/streaming-json-stringify
[gittip-image]: https://img.shields.io/gratipay/jonathanong.svg?style=flat-square
[gittip-url]: https://gratipay.com/jonathanong/
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