Skip to content

Commit ae16015

Browse files
committed
Switch to stream-splicer
1 parent 51167b2 commit ae16015

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

formats.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
var combine = require('stream-combiner'),
1+
'use strict';
2+
3+
var splicer = require('stream-splicer'),
24
json = require('./streams/output/json.js'),
35
markdown = require('./streams/output/markdown.js'),
46
htmlOutput = require('./streams/output/html.js'),
@@ -9,7 +11,7 @@ module.exports = {
911
return json();
1012
},
1113
docset: function (options) {
12-
return combine([htmlOutput({
14+
return splicer.obj([htmlOutput({
1315
hideSidebar: true,
1416
name: options.name,
1517
version: options.version

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"slugg": "^0.1.2",
4040
"sort-stream": "^1.0.1",
4141
"sqlite3": "^3.0.5",
42-
"stream-combiner": "^0.2.1",
42+
"stream-splicer": "^1.3.1",
4343
"through": "^2.3.6",
4444
"traverse": "^0.6.6",
4545
"vinyl": "^0.4.6",

streams/output/html.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var through = require('through'),
99
path = require('path'),
1010
Handlebars = require('handlebars'),
1111
extend = require('extend'),
12-
combine = require('stream-combiner'),
12+
splicer = require('stream-splicer'),
1313
hierarchy = require('../hierarchy.js'),
1414
highlight = require('../highlight.js'),
1515
inlineLex = require('jsdoc-inline-lex');
@@ -273,5 +273,5 @@ module.exports = function (opts) {
273273
}.bind(this));
274274
});
275275

276-
return combine([highlight(), hierarchy(), htmlStream]);
276+
return splicer.obj([highlight(), hierarchy(), htmlStream]);
277277
};

0 commit comments

Comments
 (0)