mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 11:23:50 +00:00
Deps migration (#1988)
* chore: migrate eslint to oxlint * chore: migrate prettier to oxfmt * chore: migrate typescript * chore: toThrow should have a expected value * chore: cast test value as Day * chore: small title fix * chore: mocks should be hoisted * chore: incorrect async useage * chore: test should be inside description * chore: test sohuld include an expeced * chore: oxfmt --------- Co-authored-by: alex-Arc <omnivox@LAPTOP-RC5SNBVV.localdomain>
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import express, { type Request, type Response, type NextFunction } from 'express';
|
||||
import type { IncomingMessage } from 'node:http';
|
||||
import type { WebSocket } from 'ws';
|
||||
|
||||
import { parse as parseCookie } from 'cookie';
|
||||
import express, { type NextFunction, type Request, type Response } from 'express';
|
||||
import type { WebSocket } from 'ws';
|
||||
|
||||
import { hashPassword } from '../utils/hash.js';
|
||||
import { hasPassword, hashedPassword } from '../api-data/session/session.service.js';
|
||||
import { srcFiles } from '../setup/index.js';
|
||||
import { hashedPassword, hasPassword } from '../api-data/session/session.service.js';
|
||||
|
||||
import { hashPassword } from '../utils/hash.js';
|
||||
import { noopMiddleware } from './noop.js';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Request, Response, NextFunction } from 'express';
|
||||
import type { NextFunction, Request, Response } from 'express';
|
||||
|
||||
export function noopMiddleware(_req: Request, _res: Response, next: NextFunction) {
|
||||
next();
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import expressStaticGzip from 'express-static-gzip';
|
||||
import { extname } from 'node:path';
|
||||
|
||||
import expressStaticGzip from 'express-static-gzip';
|
||||
|
||||
import { srcDir } from '../setup/index.js';
|
||||
|
||||
// serve static - react, in dev/test mode we fetch the React app from module
|
||||
|
||||
Reference in New Issue
Block a user