Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/path-to-regexp-6.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Jan 14, 2025
2 parents 15625c2 + f89e890 commit 94ae955
Show file tree
Hide file tree
Showing 9 changed files with 1,293 additions and 1,079 deletions.
15 changes: 0 additions & 15 deletions .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.SEEK_OSS_CI_NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('eslint-config-skuba');
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@types/supertest": "6.0.2",
"hot-shots": "10.0.0",
"koa": "2.15.3",
"skuba": "8.2.1",
"skuba": "9.1.0",
"supertest": "7.0.0"
},
"peerDependencies": {
Expand All @@ -52,13 +52,14 @@
"optional": true
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
"engines": {
"node": ">=14.17"
},
"skuba": {
"entryPoint": "src/index.ts",
"template": null,
"type": "package",
"version": "8.1.0"
"version": "9.1.0"
}
}
2 changes: 0 additions & 2 deletions src/errorMiddleware/errorMiddleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ describe('errorMiddleware', () => {

it('handles null error', async () => {
mockNext.mockImplementation(() => {
/* eslint-disable-next-line no-throw-literal */
throw null;
});

Expand All @@ -132,7 +131,6 @@ describe('errorMiddleware', () => {

it('handles string error', async () => {
mockNext.mockImplementation(() => {
/* eslint-disable-next-line no-throw-literal */
throw 'bad';
});

Expand Down
2 changes: 1 addition & 1 deletion src/requestLogging/requestLogging.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ describe('RequestLogging', () => {
const errorHandler = jest.fn(async (ctx: Context, next: Next) => {
try {
await next();
} catch (err) {
} catch {
// Nonsense status code; the caller sees this but not the middleware
ctx.status = 418;
}
Expand Down
1 change: 1 addition & 0 deletions src/requestLogging/requestLogging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export const createMiddleware = <StateT extends State, CustomT>(
{
...(typeof err !== 'undefined' && {
err,
// eslint-disable-next-line @typescript-eslint/no-base-to-string
internalErrorString: String(err),
}),
latency,
Expand Down
2,341 changes: 1,286 additions & 1,055 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 94ae955

Please sign in to comment.