Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade: swap mississippi for through2 #9

Merged
merged 1 commit into from
Jun 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}