@util.js/node-streams 0.41.4 → 0.41.5
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/lib/Streams.js +2 -2
- package/package.json +3 -4
- package/test/StreamsTest.js +3 -3
package/lib/Streams.js
CHANGED
|
@@ -22,7 +22,7 @@ class Streams {
|
|
|
22
22
|
finished() {
|
|
23
23
|
if (!stream().finished)
|
|
24
24
|
throw new Error(
|
|
25
|
-
"This version of Node.js does not support stream.finished."
|
|
25
|
+
"This version of Node.js does not support stream.finished.",
|
|
26
26
|
);
|
|
27
27
|
return promises().applyCallback(stream(), stream().finished, arguments);
|
|
28
28
|
}
|
|
@@ -111,7 +111,7 @@ class Streams {
|
|
|
111
111
|
pipeline() {
|
|
112
112
|
if (!stream().pipeline)
|
|
113
113
|
throw new Error(
|
|
114
|
-
"This version of Node.js does not support stream.pipeline."
|
|
114
|
+
"This version of Node.js does not support stream.pipeline.",
|
|
115
115
|
);
|
|
116
116
|
return promises().applyCallback(stream(), stream().pipeline, arguments);
|
|
117
117
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Chris Topher <c@creemama.com>",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"@util.js/promises": "0.41.
|
|
5
|
-
"@util.js/strings": "0.41.
|
|
4
|
+
"@util.js/promises": "0.41.5",
|
|
5
|
+
"@util.js/strings": "0.41.5"
|
|
6
6
|
},
|
|
7
7
|
"description": "JavaScript utility methods for streams",
|
|
8
8
|
"keywords": [
|
|
@@ -27,6 +27,5 @@
|
|
|
27
27
|
"type": "git",
|
|
28
28
|
"url": "https://github.com/creemama/utiljs/tree/master/packages/utiljs-node-streams"
|
|
29
29
|
},
|
|
30
|
-
"version": "0.41.
|
|
31
|
-
"gitHead": "2119863a175cf7095ca3a2417e61af32974add15"
|
|
30
|
+
"version": "0.41.5"
|
|
32
31
|
}
|
package/test/StreamsTest.js
CHANGED
|
@@ -65,7 +65,7 @@ describe("Streams", () => {
|
|
|
65
65
|
},
|
|
66
66
|
(error) => {
|
|
67
67
|
if (!error) throw new Error("Unexpected");
|
|
68
|
-
}
|
|
68
|
+
},
|
|
69
69
|
);
|
|
70
70
|
await streams.stringify(null).then(
|
|
71
71
|
() => {
|
|
@@ -73,7 +73,7 @@ describe("Streams", () => {
|
|
|
73
73
|
},
|
|
74
74
|
(error) => {
|
|
75
75
|
if (!error) throw new Error("Unexpected");
|
|
76
|
-
}
|
|
76
|
+
},
|
|
77
77
|
);
|
|
78
78
|
await streams.stringify(null, null).then(
|
|
79
79
|
() => {
|
|
@@ -81,7 +81,7 @@ describe("Streams", () => {
|
|
|
81
81
|
},
|
|
82
82
|
(error) => {
|
|
83
83
|
if (!error) throw new Error("Unexpected");
|
|
84
|
-
}
|
|
84
|
+
},
|
|
85
85
|
);
|
|
86
86
|
});
|
|
87
87
|
it("should successfully stringify a Readable and notify a callback", (callback) => {
|