Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
227 changes: 123 additions & 104 deletions api/package-lock.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@
"devDependencies": {
"@types/express": "^5.0.6",
"@types/express-session": "^1.18.2",
"@types/jest": "^30",
"@types/node": "^25",
"@types/ini": "^4.1.1",
"@types/jest": "^30.0.0",
"@types/node": "^26",
"@types/pdfkit": "^0.17.6",
"@typescript-eslint/eslint-plugin": "^8.52",
"@typescript-eslint/parser": "^8.52",
"eslint": "^10",
Expand Down
6 changes: 3 additions & 3 deletions api/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as express from "express";
import * as cookieParser from "cookie-parser";
import express from "express";
import cookieParser from "cookie-parser";
import * as path from "path";
import * as logger from "morgan";
import logger from "morgan";
import Config from "./models/Config";

const app = express();
Expand Down
4 changes: 2 additions & 2 deletions api/src/jobs/Derivative.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ describe("Derivative", () => {

describe("run", () => {
let job: Job;
let consoleErrorSpy;
let consoleLogSpy;
let consoleErrorSpy: jest.SpyInstance;
let consoleLogSpy: jest.SpyInstance;
beforeEach(() => {
job = {
data: {
Expand Down
2 changes: 1 addition & 1 deletion api/src/jobs/Derivative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Derivative implements QueueJob {

// For each page
const order = PageOrder.fromJob(job.data);
const generatingPromises = [];
const generatingPromises: Promise<string>[] = [];
order.raw.forEach((page) => {
// For each size
const image = ImageFile.build(`${job.data.dir}/${page.filename}`);
Expand Down
2 changes: 1 addition & 1 deletion api/src/models/AudioFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AudioFile extends AbstractAVFile {
return new AudioFile(filename, dir, Config.getInstance());
}

static fromRaw(raw: Record<string, string>, config: Config = null): AudioFile {
static fromRaw(raw: Record<string, string>, config: Config | null = null): AudioFile {
return new AudioFile(raw.filename, raw.label, config ?? Config.getInstance());
}
}
Expand Down
2 changes: 1 addition & 1 deletion api/src/models/Category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path = require("path");

import Job from "./Job";

export class CategoryRaw {
export interface CategoryRaw {
category: string;
jobs: Array<string>;
}
Expand Down
Loading