bfj 4.2.3 → 4.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HISTORY.md +4 -0
- package/package.json +7 -7
- package/src/streamify.js +2 -2
- package/test/unit/streamify.js +1 -1
package/HISTORY.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bfj",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.4",
|
|
4
4
|
"description": "Big-friendly JSON. Asynchronous streaming functions for large JSON data sets.",
|
|
5
5
|
"homepage": "https://github.com/philbooth/bfj",
|
|
6
6
|
"bugs": "https://github.com/philbooth/bfj/issues",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"check-types": "^7.3.0",
|
|
33
|
-
"hoopy": "^0.1.
|
|
34
|
-
"
|
|
33
|
+
"hoopy": "^0.1.2",
|
|
34
|
+
"tryer": "^1.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"eslint": "
|
|
38
|
-
"mocha": "3.
|
|
39
|
-
"chai": "
|
|
40
|
-
"mockery": "2.
|
|
37
|
+
"eslint": "4.6.x",
|
|
38
|
+
"mocha": "3.5.x",
|
|
39
|
+
"chai": "4.1.x",
|
|
40
|
+
"mockery": "2.1.x",
|
|
41
41
|
"spooks": "2.0.x",
|
|
42
42
|
"please-release-me": "1.0.x",
|
|
43
43
|
"request": "2.81.x"
|
package/src/streamify.js
CHANGED
|
@@ -5,7 +5,7 @@ const eventify = require('./eventify')
|
|
|
5
5
|
const events = require('./events')
|
|
6
6
|
const JsonStream = require('./jsonstream')
|
|
7
7
|
const Hoopy = require('hoopy')
|
|
8
|
-
const
|
|
8
|
+
const tryer = require('tryer')
|
|
9
9
|
|
|
10
10
|
const DEFAULT_BUFFER_LENGTH = 1048576
|
|
11
11
|
|
|
@@ -167,7 +167,7 @@ function streamify (data, options = {}) {
|
|
|
167
167
|
isPaused = true
|
|
168
168
|
return new Promise(resolve => {
|
|
169
169
|
const unpause = emitter.pause()
|
|
170
|
-
|
|
170
|
+
tryer({
|
|
171
171
|
interval: -10,
|
|
172
172
|
until () {
|
|
173
173
|
return length + 1 <= json.length
|
package/test/unit/streamify.js
CHANGED
|
@@ -9,7 +9,7 @@ const modulePath = '../../src/streamify'
|
|
|
9
9
|
mockery.registerAllowable(modulePath)
|
|
10
10
|
mockery.registerAllowable('hoopy')
|
|
11
11
|
mockery.registerAllowable('check-types')
|
|
12
|
-
mockery.registerAllowable('
|
|
12
|
+
mockery.registerAllowable('tryer')
|
|
13
13
|
mockery.registerAllowable('./events')
|
|
14
14
|
|
|
15
15
|
suite('streamify:', () => {
|