Skip to content

Commit

Permalink
fix: 馃悰 uncomment untested functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriz committed Dec 30, 2022
1 parent b78de70 commit f747420
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -18,7 +18,7 @@
"postversion": "npm publish",
"postpublish": "npm run syn && git push --follow-tags",
"release": "git checkout master && npm run syn && npx standard-version && npm publish",
"tape": "npx tape test/*test.js",
"tape": "npx nyc tape test/*test.js",
"tapew": "npx onchange -i '**/*.js' -- npm run tape",
"tap": "npx tap test/*test.js",
"tapw": "npm run tap -- -w",
Expand Down
6 changes: 3 additions & 3 deletions utils.js
Expand Up @@ -36,7 +36,7 @@ exports.err2cb = (cpsF, n=2) => (...cbs) =>
* based on `fs.createReadStream`
* https://nodejs.org/api/fs.html#fscreatereadstreampath-options
*/
exports.file2stream = fs.createReadStream
// exports.file2stream = fs.createReadStream

/**
* Transform Readable Node stream to CPS function with 3 callbacks (onRes, onErr, onEnd):
Expand All @@ -47,5 +47,5 @@ exports.file2stream = fs.createReadStream
* @param {Stream} input - Readable Node stream
* @returns {Function} - CPS function
*/
exports.stream2lines = input => (onRes, onErr, onEnd) =>
{try {createInterface(input).on('line', onRes).on('close', _ => onEnd(null))} catch(err) {onErr(err)}}
// exports.stream2lines = input => (onRes, onErr, onEnd) =>
// {try {createInterface(input).on('line', onRes).on('close', _ => onEnd(null))} catch(err) {onErr(err)}}

0 comments on commit f747420

Please sign in to comment.