Skip to content

Commit

Permalink
upgrade: swap mississippi for through2 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonutEspresso authored Jun 13, 2018
1 parent 0fb40b1 commit 6b95783
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,8 @@ Before committing, lint and test your code using the included Makefile:
make prepush
```

If you have style errors, you can auto fix whitespace issues by running:

```sh
make codestyle-fix
```

## License

Copyright (c) 2017 Alex Liu
Copyright (c) 2018 Alex Liu

Licensed under the MIT license.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const stream = require('stream');
const assert = require('assert-plus');
const intoStream = require('into-stream');
const JSONStream = require('JSONStream');
const miss = require('mississippi');
const through2 = require('through2');
const once = require('once').strict;
const stringifyStreamFactory = require('json-stream-stringify');

Expand All @@ -30,7 +30,7 @@ function createParseStream() {
// fields. accumulate the parsed fields.
const accumulator = {};
const parseStream = JSONStream.parse('$*');
const wrapperStream = miss.through.obj(
const wrapperStream = through2.obj(
function write(chunk, enc, cb) {
parseStream.write(chunk);
return cb();
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"assert-plus": "^1.0.0",
"into-stream": "^3.1.0",
"json-stream-stringify": "^1.5.1",
"mississippi": "^1.3.0",
"once": "^1.4.0"
"once": "^1.4.0",
"through2": "^2.0.3"
}
}

0 comments on commit 6b95783

Please sign in to comment.