through2 0.2.2 → 0.2.3
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/README.md +3 -0
- package/package.json +5 -5
- package/test.js +2 -2
package/README.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://nodei.co/npm/through2/)
|
|
6
6
|
|
|
7
|
+
[](https://david-dm.org/rvagg/through2/)
|
|
8
|
+
[](https://david-dm.org/rvagg/through2#info=devDependencies/)
|
|
9
|
+
|
|
7
10
|
**A tiny wrapper around Node streams.Transform (Streams2) to avoid explicit subclassing noise**
|
|
8
11
|
|
|
9
12
|
Inspired by [Dominic Tarr](https://github.com/dominictarr)'s [through](https://github.com/dominictarr/through) in that it's so much easier to make a stream out of a function than it is to set up the prototype chain properly: `through(function (chunk) { ... })`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "through2",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise",
|
|
5
5
|
"main": "through2.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"author": "Rod Vagg <r@va.gg> (https://github.com/rvagg)",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"readable-stream": "~1.
|
|
22
|
+
"readable-stream": "~1.1.9",
|
|
23
23
|
"xtend": "~2.1.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"tape": "~1.
|
|
27
|
-
"bl": "~0.
|
|
28
|
-
"stream-spigot": "~2.
|
|
26
|
+
"tape": "~1.1.1",
|
|
27
|
+
"bl": "~0.4.1",
|
|
28
|
+
"stream-spigot": "~2.1.2"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/test.js
CHANGED
|
@@ -214,12 +214,12 @@ test('pipeable object through ctor', function (t) {
|
|
|
214
214
|
t.deepEqual(o, { temp: expect.shift(), unit: 'C' }, 'got transformed object')
|
|
215
215
|
})
|
|
216
216
|
|
|
217
|
-
spigot([
|
|
217
|
+
spigot({objectMode: true}, [
|
|
218
218
|
{temp: -2.2, unit: 'F'},
|
|
219
219
|
{temp: -40, unit: 'F'},
|
|
220
220
|
{temp: 212, unit: 'F'},
|
|
221
221
|
{temp: 22, unit: 'C'}
|
|
222
|
-
]
|
|
222
|
+
]).pipe(th2)
|
|
223
223
|
})
|
|
224
224
|
|
|
225
225
|
test('object through ctor override', function (t) {
|