Skip to content

Commit

Permalink
chore(deps): update (#1760)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Mar 7, 2024
1 parent e6b64d7 commit 7ed24e0
Show file tree
Hide file tree
Showing 10 changed files with 1,007 additions and 1,228 deletions.
2,157 changes: 968 additions & 1,189 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
"@babel/cli": "^7.16.7",
"@babel/core": "^7.16.7",
"@babel/preset-env": "^7.16.7",
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@commitlint/cli": "^19.0.3",
"@commitlint/config-conventional": "^19.0.3",
"@types/connect": "^3.4.35",
"@types/express": "^4.17.13",
"@types/mime-types": "^2.1.1",
Expand Down
8 changes: 4 additions & 4 deletions types/middleware.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export = wrapper;
* @return {import("./index.js").Middleware<Request, Response>}
*/
declare function wrapper<
Request_1 extends import("http").IncomingMessage,
Response_1 extends import("./index.js").ServerResponse,
Request extends import("http").IncomingMessage,
Response extends import("./index.js").ServerResponse,
>(
context: import("./index.js").Context<Request_1, Response_1>,
): import("./index.js").Middleware<Request_1, Response_1>;
context: import("./index.js").Context<Request, Response>,
): import("./index.js").Middleware<Request, Response>;
declare namespace wrapper {
export { NextFunction, IncomingMessage, ServerResponse };
}
Expand Down
28 changes: 14 additions & 14 deletions types/utils/compatibleAPI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@ export type ExpectedResponse = {
* @returns {string[]}
*/
export function getHeaderNames<
Response_1 extends import("../index.js").ServerResponse,
>(res: Response_1): string[];
Response extends import("../index.js").ServerResponse,
>(res: Response): string[];
/**
* @template {IncomingMessage} Request
* @param {Request} req
* @param {string} name
* @returns {string | undefined}
*/
export function getHeaderFromRequest<
Request_1 extends import("http").IncomingMessage,
>(req: Request_1, name: string): string | undefined;
Request extends import("http").IncomingMessage,
>(req: Request, name: string): string | undefined;
/**
* @template {ServerResponse} Response
* @param {Response} res
* @param {string} name
* @returns {number | string | string[] | undefined}
*/
export function getHeaderFromResponse<
Response_1 extends import("../index.js").ServerResponse,
>(res: Response_1, name: string): number | string | string[] | undefined;
Response extends import("../index.js").ServerResponse,
>(res: Response, name: string): number | string | string[] | undefined;
/**
* @template {ServerResponse} Response
* @param {Response} res
Expand All @@ -57,16 +57,16 @@ export function getHeaderFromResponse<
* @returns {void}
*/
export function setHeaderForResponse<
Response_1 extends import("../index.js").ServerResponse,
>(res: Response_1, name: string, value: number | string | string[]): void;
Response extends import("../index.js").ServerResponse,
>(res: Response, name: string, value: number | string | string[]): void;
/**
* @template {ServerResponse} Response
* @param {Response} res
* @param {number} code
*/
export function setStatusCode<
Response_1 extends import("../index.js").ServerResponse,
>(res: Response_1, code: number): void;
Response extends import("../index.js").ServerResponse,
>(res: Response, code: number): void;
/**
* @template {IncomingMessage} Request
* @template {ServerResponse} Response
Expand All @@ -76,11 +76,11 @@ export function setStatusCode<
* @param {number} byteLength
*/
export function send<
Request_1 extends import("http").IncomingMessage,
Response_1 extends import("../index.js").ServerResponse,
Request extends import("http").IncomingMessage,
Response extends import("../index.js").ServerResponse,
>(
req: Request_1,
res: Response_1,
req: Request,
res: Response,
bufferOtStream: string | Buffer | import("fs").ReadStream,
byteLength: number,
): void;
6 changes: 3 additions & 3 deletions types/utils/getFilenameFromUrl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export = getFilenameFromUrl;
* @returns {string | undefined}
*/
declare function getFilenameFromUrl<
Request_1 extends import("http").IncomingMessage,
Response_1 extends import("../index.js").ServerResponse,
Request extends import("http").IncomingMessage,
Response extends import("./getPaths").ServerResponse,
>(
context: import("../index.js").Context<Request_1, Response_1>,
context: import("../index.js").Context<Request, Response>,
url: string,
): string | undefined;
declare namespace getFilenameFromUrl {
Expand Down
6 changes: 3 additions & 3 deletions types/utils/getPaths.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export = getPaths;
* @param {import("../index.js").Context<Request, Response>} context
*/
declare function getPaths<
Request_1 extends import("http").IncomingMessage,
Response_1 extends import("../index.js").ServerResponse,
Request extends import("http").IncomingMessage,
Response extends import("../index.js").ServerResponse,
>(
context: import("../index.js").Context<Request_1, Response_1>,
context: import("../index.js").Context<Request, Response>,
): {
outputPath: string;
publicPath: string;
Expand Down
8 changes: 4 additions & 4 deletions types/utils/ready.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ export = ready;
* @returns {void}
*/
declare function ready<
Request_1 extends import("http").IncomingMessage,
Response_1 extends import("../index.js").ServerResponse,
Request extends import("http").IncomingMessage,
Response extends import("../index.js").ServerResponse,
>(
context: import("../index.js").Context<Request_1, Response_1>,
context: import("../index.js").Context<Request, Response>,
callback: (...args: any[]) => any,
req?: Request_1 | undefined,
req?: Request | undefined,
): void;
declare namespace ready {
export { IncomingMessage, ServerResponse };
Expand Down
6 changes: 3 additions & 3 deletions types/utils/setupHooks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export = setupHooks;
* @param {import("../index.js").Context<Request, Response>} context
*/
declare function setupHooks<
Request_1 extends import("http").IncomingMessage,
Response_1 extends import("../index.js").ServerResponse,
>(context: import("../index.js").Context<Request_1, Response_1>): void;
Request extends import("http").IncomingMessage,
Response extends import("../index.js").ServerResponse,
>(context: import("../index.js").Context<Request, Response>): void;
declare namespace setupHooks {
export {
Configuration,
Expand Down
6 changes: 3 additions & 3 deletions types/utils/setupOutputFileSystem.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export = setupOutputFileSystem;
* @param {import("../index.js").Context<Request, Response>} context
*/
declare function setupOutputFileSystem<
Request_1 extends import("http").IncomingMessage,
Response_1 extends import("../index.js").ServerResponse,
>(context: import("../index.js").Context<Request_1, Response_1>): void;
Request extends import("http").IncomingMessage,
Response extends import("../index.js").ServerResponse,
>(context: import("../index.js").Context<Request, Response>): void;
declare namespace setupOutputFileSystem {
export { MultiCompiler, IncomingMessage, ServerResponse };
}
Expand Down
6 changes: 3 additions & 3 deletions types/utils/setupWriteToDisk.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export = setupWriteToDisk;
* @param {import("../index.js").Context<Request, Response>} context
*/
declare function setupWriteToDisk<
Request_1 extends import("http").IncomingMessage,
Response_1 extends import("../index.js").ServerResponse,
>(context: import("../index.js").Context<Request_1, Response_1>): void;
Request extends import("http").IncomingMessage,
Response extends import("../index.js").ServerResponse,
>(context: import("../index.js").Context<Request, Response>): void;
declare namespace setupWriteToDisk {
export {
Compiler,
Expand Down

0 comments on commit 7ed24e0

Please sign in to comment.