Skip to content

Commit

Permalink
Minor modernization.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhop committed Aug 26, 2024
1 parent 19745f5 commit 1ce44ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/withParser.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use strict';

const Chain = require('stream-chain');
const {chain} = require('stream-chain');

const Parser = require('../Parser');

const withParser = (fn, options) =>
new Chain([new Parser(options), fn(options)], Object.assign({}, options, {writableObjectMode: false, readableObjectMode: true}));
chain([new Parser(options), fn(options)], Object.assign({}, options, {writableObjectMode: false, readableObjectMode: true}));

module.exports = withParser;

0 comments on commit 1ce44ca

Please sign in to comment.