Skip to content

Commit 7816e94

Browse files
committed
chore(deps): bump pino/mocha, fix express wildcard
1 parent b8c87d2 commit 7816e94

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"check-types": "11.2.3",
4747
"detect-libc": "^2.0.3",
4848
"node-gyp-build": "^4.6.0",
49-
"pino": "^9.0.0",
50-
"pino-pretty": "^13.0.0",
49+
"pino": "^9.9.0",
50+
"pino-pretty": "^13.1.1",
5151
"underscore": "1.13.7"
5252
},
5353
"devDependencies": {
@@ -96,7 +96,7 @@
9696
"form-data": "4.0.4",
9797
"globals": "^16.2.0",
9898
"grpc-promise": "1.4.0",
99-
"mocha": "11.6.0",
99+
"mocha": "11.7.0",
100100
"node-addon-api": "8.3.1",
101101
"nodemon": "3.1.10",
102102
"prettier": "3.5.3",

src/logger/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const logFunctions = {
4646
};
4747

4848
export const logErrorAndThrow = (message: string, context?: string): never => {
49-
logger.error(message, context);
49+
logger.error(message, context as unknown as undefined);
5050
throw new Error(message);
5151
};
5252

src/logger/pino.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { pino } from 'pino';
1+
import { pino, Logger } from 'pino';
22
import pretty from 'pino-pretty';
33
import { LogLevel } from './types';
44

5-
export const createLogger = (level: LogLevel): pino.Logger =>
5+
export const createLogger = (level: LogLevel): Logger =>
66
pino(
77
{
88
level: level.toLowerCase(),

test/plugin-verifier.integration.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const startHTTPServer = (port: number): Promise<http.Server> => {
6464
);
6565

6666
// Dummy server to respond to state changes etc.
67-
server.all('*', (req: express.Request, res: express.Response) => {
67+
server.all('/*splat', (req: express.Request, res: express.Response) => {
6868
res.json({});
6969
});
7070

0 commit comments

Comments
 (0)