Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
upgrade JS dev deps, Flow caught a few arity errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed May 13, 2017
1 parent c27e645 commit c91c66f
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 141 deletions.
3 changes: 2 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ lib/
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
experimental.strict_call_arity=true

[version]
^0.45.0
^0.46.0
2 changes: 2 additions & 0 deletions lib/module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
declare module 'module' {
declare class Module {
constructor(id: string, parent?: Module): void,

filename: string,
paths: string[],

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"devDependencies": {
"babel-eslint": "^7.2.3",
"babel-jest": "^20.0.0",
"babel-jest": "^20.0.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-preset-es2015": "^6.24.0",
"babel-preset-stage-2": "^6.22.0",
Expand All @@ -42,9 +42,9 @@
"eslint-plugin-flowtype": "^2.32.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-react": "^7.0.0",
"flow-bin": "^0.45.0",
"jest-cli": "^20.0.0",
"eslint-plugin-react": "^7.0.1",
"flow-bin": "^0.46.0",
"jest-cli": "^20.0.1",
"nexe": "github:anmonteiro/nexe#master",
"prettier": "^1.3.1",
"rollup": "^0.41.6",
Expand Down
3 changes: 2 additions & 1 deletion src/js/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ function highlight(
// keypress events while stdin is paused.
// $FlowIssue
const oldInput = rl.input;
// $FlowIssue: constructor accepts 2 args
const readStream = new tty.ReadStream(null, {});
readStream.setRawMode(true);
readline.emitKeypressEvents(readStream, rl);
Expand Down Expand Up @@ -280,7 +281,7 @@ export default function startREPL(opts: CLIOptsType): void {
prompt(rl, false, 'cljs.user');

rl.on('line', (line: string) => processLine(session, line));
rl.on('SIGINT', () => handleSIGINT(session, rl));
rl.on('SIGINT', () => handleSIGINT(session));
rl.on('close', () => stopREPL());

lastKeypressTime = currentTimeMicros();
Expand Down
2 changes: 1 addition & 1 deletion src/js/socketRepl.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function handleConnection(socket: net$Socket): REPLSession {

rl.on('line', (line: string) => {
if (!socket.destroyed) {
processLine(session, line, false);
processLine(session, line);
}
});

Expand Down
Loading

0 comments on commit c91c66f

Please sign in to comment.