Skip to content

Commit

Permalink
chore: pin ts version and make ts fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl committed Feb 6, 2024
1 parent eb942e0 commit a64e6b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"timekeeper": "^2.0.0",
"tmp": "0.2.1",
"ts-node": "^10.7.0",
"typescript": "^5.1.6"
"typescript": "5.1.6"
},
"dependencies": {
"@google-cloud/common": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/cls/async-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class AsyncHooksCLS<Context extends {}> implements CLS<Context> {
if (ee[method]) {
shimmer.wrap(ee, method, oldMethod => {
return function (this: {}, event: string, cb: Func<void>) {
return oldMethod.call(this, event, that.bindWithCurrentContext(cb));
return oldMethod!.call(this, event, that.bindWithCurrentContext(cb));

Check failure on line 195 in src/cls/async-hooks.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `this,·event,·that.bindWithCurrentContext(cb)` with `⏎··············this,⏎··············event,⏎··············that.bindWithCurrentContext(cb)⏎············`
};
});
}
Expand Down

0 comments on commit a64e6b4

Please sign in to comment.