Skip to content

Commit

Permalink
fix: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed Sep 14, 2021
1 parent e37e9ef commit 46fe1e5
Show file tree
Hide file tree
Showing 5 changed files with 389 additions and 389 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.10",
"@typescript-eslint/eslint-plugin": "^4.30.0",
"@typescript-eslint/parser": "^4.30.0",
"@types/node": "^16.9.1",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"jest": "^27.1.0",
"jest": "^27.2.0",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.5",
"typescript": "^4.4.2"
"typescript": "^4.4.3"
},
"resolutions": {
"minimist": "1.2.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/WebServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class WebServer<C extends Context> extends Application<C>
assert(acceptor, `Unsupported protocol ${protocol}`);
acceptor.handle(req, socket, head);
} catch (error) {
this.logger.warning("Unexpected error", error);
this.logger.warning("Unexpected error", {error});
socket.write(`HTTP/1.1 400 Bad request\r\nContent-Type: text/plain\r\nConnection: close\r\n\r\n`);
socket.destroy(toError(error));
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@bunt/util": "^0.19.16",
"@bunt/web": "^0.19.16",
"@types/ws": "^7.4.6",
"ws": "^8.2.1"
"ws": "^8.2.2"
},
"license": "MIT",
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/ws/src/WebSocketServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class WebSocketServer<C extends Context> implements IDisposable, IRunnabl
webSocket.close(resolveOrReject(resolve, reject));
}));
} catch (error) {
this.logger.error("Unexpected error", error);
this.logger.error("Unexpected error", {error});
}
}

Expand Down Expand Up @@ -214,7 +214,7 @@ export class WebSocketServer<C extends Context> implements IDisposable, IRunnabl
this.handle(connection, () => this.#unit.run(route.action, state));
});
} catch (error) {
this.logger.error("Unexpected error", error);
this.logger.error("Unexpected error", {error});
socket.destroy(toError(error, "Unknown"));
}
};
Expand All @@ -224,7 +224,7 @@ export class WebSocketServer<C extends Context> implements IDisposable, IRunnabl
await action();
connection.close(WebSocketCloseReason.NORMAL_CLOSURE);
} catch (error) {
this.logger.error("Unexpected error", error);
this.logger.error("Unexpected error", {error});
connection.close(WebSocketCloseReason.INTERNAL_ERROR);
}
}
Expand Down
Loading

0 comments on commit 46fe1e5

Please sign in to comment.