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

bfj

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bfj - npm Package Compare versions

Comparing version 5.3.0 to 5.3.1

6

HISTORY.md
# History
## 5.3.1
### Bug fixes
* unpipe: prohibit unpipe from setting the ndjson option (90b61c6)
## 5.3.0

@@ -4,0 +10,0 @@

2

package.json
{
"name": "bfj",
"version": "5.3.0",
"version": "5.3.1",
"description": "Big-friendly JSON. Asynchronous streaming functions for large JSON data sets.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/philbooth/bfj",

@@ -756,3 +756,3 @@ # BFJ

`bfj.read` will not parse NDJSON.
`bfj.unpipe` and `bfj.read` will not parse NDJSON.

@@ -759,0 +759,0 @@ ## Why does it default to bluebird promises?

@@ -32,3 +32,3 @@ 'use strict'

parse(jsonstream, options)
parse(jsonstream, Object.assign({}, options, { ndjson: false }))
.then(data => callback(null, data))

@@ -35,0 +35,0 @@ .catch(error => callback(error))

@@ -63,3 +63,3 @@ 'use strict'

results.parse[0] = Promise.resolve('foo')
options = {}
options = { foo: 'bar', ndjson: true }
unpipe((err, res) => {

@@ -87,4 +87,4 @@ error = err

assert.isFunction(log.args.parse[0][0]._write)
assert.strictEqual(log.args.parse[0][1], options)
assert.lengthOf(Object.keys(log.args.parse[0][1]), 0)
assert.notStrictEqual(log.args.parse[0][1], options)
assert.deepEqual(log.args.parse[0][1], { foo: 'bar', ndjson: false })
})

@@ -91,0 +91,0 @@

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