Skip to content

Commit e78ae5f

Browse files
authored
Deploy Feb 14, 2025 (#545)
2 parents 4f2aab8 + 8d29656 commit e78ae5f

File tree

6 files changed

+1469
-1534
lines changed

6 files changed

+1469
-1534
lines changed

package.json

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -35,42 +35,42 @@
3535
"ts-generate-types": "npx --yes dts-gen -m"
3636
},
3737
"devDependencies": {
38-
"@babel/cli": "^7.24.5",
39-
"@babel/core": "^7.24.5",
40-
"@babel/eslint-parser": "^7.24.5",
41-
"@babel/eslint-plugin": "^7.24.5",
42-
"@babel/node": "^7.23.9",
38+
"@babel/cli": "^7.26.4",
39+
"@babel/core": "^7.26.7",
40+
"@babel/eslint-parser": "^7.26.5",
41+
"@babel/eslint-plugin": "^7.25.9",
42+
"@babel/node": "^7.26.0",
4343
"@babel/plugin-proposal-class-properties": "^7.18.6",
4444
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
45-
"@babel/preset-env": "^7.24.5",
46-
"@babel/preset-typescript": "^7.24.1",
45+
"@babel/preset-env": "^7.26.7",
46+
"@babel/preset-typescript": "^7.26.0",
4747
"@types/content-type": "^1.1.8",
4848
"@types/convict": "^6.1.6",
49-
"@types/jest": "^29.5.12",
50-
"@types/jsonwebtoken": "^9.0.6",
49+
"@types/jest": "^29.5.14",
50+
"@types/jsonwebtoken": "^9.0.8",
5151
"@types/koa__cors": "^4.0.3",
5252
"@types/koa__router": "^12.0.4",
53-
"@types/node": "^20.12.7",
53+
"@types/node": "^22.13.1",
5454
"@types/node-fetch": "^2.6.2",
5555
"@types/supertest": "^6.0.2",
56-
"@typescript-eslint/eslint-plugin": "^7.8.0",
57-
"@typescript-eslint/parser": "^7.8.0",
56+
"@typescript-eslint/eslint-plugin": "^8.19.1",
57+
"@typescript-eslint/parser": "^8.21.0",
5858
"babel-jest": "^29.7.0",
5959
"devtools-license-check": "^0.9.0",
60-
"eslint": "^8.57.0",
61-
"eslint-config-prettier": "^9.1.0",
62-
"eslint-plugin-import": "^2.29.1",
60+
"eslint": "^8.57.1",
61+
"eslint-config-prettier": "^10.0.1",
62+
"eslint-plugin-import": "^2.31.0",
6363
"husky": "^4.3.8",
6464
"jest": "^29.7.0",
65-
"lockfile-lint": "^4.13.2",
65+
"lockfile-lint": "^4.14.0",
6666
"mkdirp": "^3.0.1",
67-
"nock": "^13.5.4",
68-
"nodemon": "^3.1.0",
69-
"npm-run-all": "^4.1.5",
70-
"prettier": "^3.2.5",
71-
"rimraf": "^5.0.5",
67+
"nock": "^13.5.6",
68+
"nodemon": "^3.1.9",
69+
"npm-run-all2": "^7.0.2",
70+
"prettier": "^3.4.2",
71+
"rimraf": "^5.0.10",
7272
"supertest": "^7.0.0",
73-
"typescript": "^5.4.5"
73+
"typescript": "^5.7.3"
7474
},
7575
"husky": {
7676
"hooks": {
@@ -81,15 +81,16 @@
8181
}
8282
},
8383
"dependencies": {
84-
"@google-cloud/storage": "^7.10.1",
84+
"@google-cloud/storage": "^7.15.0",
8585
"@koa/cors": "^4.0.0",
86-
"@koa/router": "^12.0.1",
86+
"@koa/router": "^13.1.0",
8787
"content-type": "^1.0.5",
8888
"convict": "^6.2.4",
89-
"dotenv": "^16.4.5",
89+
"dotenv": "^16.4.7",
90+
"helmet": "^8.0.0",
9091
"jsonwebtoken": "^9.0.2",
91-
"koa": "^2.15.3",
92-
"koa-helmet": "^7.0.2",
92+
"koa": "^2.15.4",
93+
"koa-helmet": "^8.0.1",
9394
"koa-json-body": "^5.3.0",
9495
"koa-jwt": "^4.0.4",
9596
"koa-logger": "^3.2.1",

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function createApp() {
2626
// environment variable LOG_LEVEL to "verbose".
2727
// In production we should be able to have the logs of requests from
2828
// the server frontend instead.
29-
// eslint-disable-next-line @typescript-eslint/no-var-requires
29+
// eslint-disable-next-line @typescript-eslint/no-require-imports
3030
app.use(require('koa-logger')());
3131
}
3232

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function validateConfigValues(config: Config) {
7979
// to find the authentication information from other means.
8080
try {
8181
fs.accessSync(googleAuthenticationFilePath, fs.constants.R_OK);
82-
} catch (e) {
82+
} catch {
8383
log.critical(
8484
'gcs_configuration_error',
8585
`The authentication file '${googleAuthenticationFilePath}' is missing or not readable.`

src/logic/shorten-url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class BitlyResponseError extends Error {
2929
if (body.description) {
3030
message += `\nBitly error is: ${body.description} (${body.message})`;
3131
}
32-
} catch (e) {
32+
} catch {
3333
// Nothing is needed here.
3434
}
3535

test/api/dockerflow.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ describe('dockerflow endpoints', () => {
150150
});
151151

152152
it('answers to the version endpoint when the file is present', async () => {
153-
// eslint-disable-next-line @typescript-eslint/no-var-requires
153+
// eslint-disable-next-line @typescript-eslint/no-require-imports
154154
const fixture = require('./fixtures/version.json');
155155
const fakeLastModifiedDate = new Date('Thu, 01 May 2020 10:20:15 GMT');
156156
jest.spyOn(fs.promises, 'readFile').mockResolvedValue(fixture);
@@ -171,7 +171,7 @@ describe('dockerflow endpoints', () => {
171171
});
172172

173173
it('all endpoints uses security headers', async () => {
174-
// eslint-disable-next-line @typescript-eslint/no-var-requires
174+
// eslint-disable-next-line @typescript-eslint/no-require-imports
175175
const fixture = require('./fixtures/version.json');
176176
jest.spyOn(fs.promises, 'readFile').mockResolvedValue(fixture);
177177
// @ts-expect-error Other fields are not included for this test.

0 commit comments

Comments
 (0)