From b0b8921e05347ab9fd11301a05cca510196b2d8f Mon Sep 17 00:00:00 2001 From: Jason Mulligan Date: Wed, 24 Jul 2024 09:03:42 -0400 Subject: [PATCH] Updating type def --- dist/cli.cjs | 2 +- dist/woodland.cjs | 2 +- dist/woodland.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- types/woodland.d.ts | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/cli.cjs b/dist/cli.cjs index b1f2db7..2cbfa24 100644 --- a/dist/cli.cjs +++ b/dist/cli.cjs @@ -4,7 +4,7 @@ * * @copyright 2024 Jason Mulligan * @license BSD-3-Clause - * @version 18.2.8 + * @version 18.2.9 */ 'use strict'; diff --git a/dist/woodland.cjs b/dist/woodland.cjs index 1da1d8a..2cc1594 100644 --- a/dist/woodland.cjs +++ b/dist/woodland.cjs @@ -3,7 +3,7 @@ * * @copyright 2024 Jason Mulligan * @license BSD-3-Clause - * @version 18.2.8 + * @version 18.2.9 */ 'use strict'; diff --git a/dist/woodland.js b/dist/woodland.js index fbde717..7791cd9 100644 --- a/dist/woodland.js +++ b/dist/woodland.js @@ -3,7 +3,7 @@ * * @copyright 2024 Jason Mulligan * @license BSD-3-Clause - * @version 18.2.8 + * @version 18.2.9 */ import {STATUS_CODES,METHODS}from'node:http';import {join,extname}from'node:path';import {EventEmitter}from'node:events';import {stat,readdir}from'node:fs/promises';import {etag}from'tiny-etag';import {precise}from'precise';import {lru}from'tiny-lru';import {createRequire}from'node:module';import {fileURLToPath,URL}from'node:url';import {readFileSync,createReadStream}from'node:fs';import {coerce}from'tiny-coerce';import mimeDb from'mime-db';const __dirname$1 = fileURLToPath(new URL(".", import.meta.url)); const require = createRequire(import.meta.url); diff --git a/package-lock.json b/package-lock.json index 4f91cd4..eb6875b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "woodland", - "version": "18.2.8", + "version": "18.2.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "woodland", - "version": "18.2.8", + "version": "18.2.9", "license": "BSD-3-Clause", "dependencies": { "mime-db": "^1.53.0", diff --git a/package.json b/package.json index 3026fe8..9ce5395 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "woodland", - "version": "18.2.8", + "version": "18.2.9", "description": "Lightweight HTTP framework with automatic headers", "type": "module", "types": "types/woodland.d.ts", diff --git a/types/woodland.d.ts b/types/woodland.d.ts index 8bb59f2..1a0f8fd 100644 --- a/types/woodland.d.ts +++ b/types/woodland.d.ts @@ -76,9 +76,9 @@ export class Woodland { routes(uri: any, method: any, override?: boolean): any; send(req: any, res: any): (body?: string, status?: any, headers?: {}) => void; set(res: any): (arg?: {}) => any; - serve(req: any, res: any, arg?: string, folder?: any, index?: string[]): Promise; + serve(req: any, res: any, arg: string, folder?: string): Promise; status(res: any): (arg?: number) => any; - staticFiles(root?: string): void; + staticFiles(root: string, folder?: string): void; trace(...args: any[]): this; use(rpath: any, ...fn: any[]): this; }