Comparing version 18.2.5 to 18.2.6
@@ -6,3 +6,3 @@ /** | ||
* @license BSD-3-Clause | ||
* @version 18.2.5 | ||
* @version 18.2.6 | ||
*/ | ||
@@ -302,3 +302,3 @@ import {STATUS_CODES,METHODS}from'node:http';import {join,extname,resolve}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)); | ||
if (req.method === GET) { | ||
if ((file.etag.length > INT_0 && req.headers[IF_NONE_MATCH] === file.etag) || (req.headers[IF_NONE_MATCH] === void 0 && Date.parse(req.headers[IF_MODIFIED_SINCE]) >= file.stats.mtime)) { | ||
if (file.etag.length > INT_0 && req.headers[IF_NONE_MATCH] === file.etag || req.headers[IF_NONE_MATCH] === void 0 && Date.parse(req.headers[IF_MODIFIED_SINCE]) >= file.stats.mtime) { | ||
res.removeHeader(CONTENT_LENGTH); | ||
@@ -305,0 +305,0 @@ res.send(EMPTY, INT_304); |
{ | ||
"name": "woodland", | ||
"version": "18.2.5", | ||
"version": "18.2.6", | ||
"description": "Lightweight HTTP framework with automatic headers", | ||
@@ -29,3 +29,3 @@ "type": "module", | ||
"types": "npx -p typescript tsc src/woodland.js --declaration --allowJs --emitDeclarationOnly --outDir types", | ||
"prepare": "husky install" | ||
"prepare": "husky" | ||
}, | ||
@@ -60,7 +60,7 @@ "repository": { | ||
"dependencies": { | ||
"mime-db": "^1.52.0", | ||
"mime-db": "^1.53.0", | ||
"precise": "^4.0.3", | ||
"tiny-coerce": "^3.0.2", | ||
"tiny-etag": "^4.0.5", | ||
"tiny-lru": "^11.2.6" | ||
"tiny-lru": "^11.2.11" | ||
}, | ||
@@ -71,10 +71,10 @@ "devDependencies": { | ||
"concurrently": "^8.2.2", | ||
"eslint": "^9.5.0", | ||
"husky": "^9.0.11", | ||
"mocha": "^10.4.0", | ||
"eslint": "^9.7.0", | ||
"husky": "^9.1.1", | ||
"mocha": "^10.7.0", | ||
"nyc": "^17.0.0", | ||
"rollup": "^4.18.0", | ||
"rollup": "^4.19.0", | ||
"tiny-httptest": "^4.0.11", | ||
"typescript": "^5.4.5" | ||
"typescript": "^5.5.4" | ||
} | ||
} |
@@ -0,0 +0,0 @@ <img src="https://avoidwork.github.io/woodland/logo.svg" width="108" /> |
@@ -0,0 +0,0 @@ export const ACCESS_CONTROL_ALLOW_CREDENTIALS: "access-control-allow-credentials"; |
@@ -0,0 +0,0 @@ export function autoindex(title?: string, files?: any[]): any; |
@@ -0,0 +0,0 @@ export function woodland(arg: any): Woodland; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
81143
Updatedmime-db@^1.53.0
Updatedtiny-lru@^11.2.11