chore: update eslint-config
Some checks failed
Build and Publish Docker Image / Build and Publish Docker Image (amd64) (push) Has been cancelled
Build and Publish Docker Image / Build and Publish Docker Image (arm64) (push) Has been cancelled

This commit is contained in:
William Oldham 2025-08-16 19:42:46 +01:00
parent b88b611c6f
commit de5036f80a
5 changed files with 2404 additions and 1053 deletions

3431
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -34,7 +34,7 @@
"xmlbuilder": "^15.1.1"
},
"devDependencies": {
"@pretendonetwork/eslint-config": "^0.0.6",
"@pretendonetwork/eslint-config": "^0.1.1",
"@smithy/types": "^4.0.0",
"@types/dicer": "^0.2.4",
"@types/express": "^4.17.21",

View File

@ -18,9 +18,9 @@ npdl.get([
languageCode?: string;
fileName: string;
}, any, any, {
ap?: string;
tm?: string;
}>, response) => {
ap?: string;
tm?: string;
}>, response) => {
const { appID, taskID, countryCode, languageCode, fileName } = request.params;
const file = await getTaskFile(appID, taskID, fileName, countryCode, languageCode);

View File

@ -15,14 +15,14 @@ npfl.get('/p01/filelist/:appID/:taskID', async (request: express.Request<{
appID: string;
taskID: string;
}, any, any, {
c?: string;
l?: string;
a1?: string;
a2?: string;
a3?: string;
ap?: string;
tm?: string;
}>, response) => {
c?: string;
l?: string;
a1?: string;
a2?: string;
a3?: string;
ap?: string;
tm?: string;
}>, response) => {
for (const param in request.query) {
// * Beats me why the real server does this.
// * Just doing accurate emulation ¯\_(ツ)_/¯

View File

@ -1,6 +1,6 @@
// * Credit to https://github.com/bmullan91/express-subdomain/pull/61 for the types!
declare module 'express-subdomain'{
declare module 'express-subdomain' {
import type { Request, Response, Router } from 'express';
/**