@tinyhttp/app
Advanced tools
Comparing version 0.2.20 to 0.2.21
# @tinyhttp/app | ||
## 0.2.21 | ||
### Patch Changes | ||
- Refactor logger | ||
## 0.2.19 | ||
@@ -4,0 +10,0 @@ |
@@ -464,3 +464,3 @@ import { STATUS_CODES, METHODS, createServer } from 'http'; | ||
const applyHandler = (h) => async (req, res, next) => { | ||
if (isAsync(h) || h instanceof Promise) { | ||
if (isAsync(h)) { | ||
await h(req, res, next); | ||
@@ -467,0 +467,0 @@ } |
{ | ||
"name": "@tinyhttp/app", | ||
"version": "0.2.20", | ||
"version": "0.2.21", | ||
"description": "tinyhttp core with App, Request, Response and Router", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -53,3 +53,3 @@ ![](https://tinyhttp.v1rtl.site/cover.jpg) | ||
import { App } from '@tinyhttp/app' | ||
import logger from '@tinyhttp/logger' | ||
import { logger } from '@tinyhttp/logger' | ||
@@ -56,0 +56,0 @@ const app = new App() |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55164