@tinyhttp/app
Advanced tools
Comparing version 0.0.3 to 0.0.4
import Request from './classes/request'; | ||
import Response from './classes/response'; | ||
export * from './classes/request'; | ||
export * from './classes/response'; | ||
export declare const METHODS: string[]; | ||
@@ -4,0 +6,0 @@ export declare type Handler = (req: Request, res: Response) => void | Promise<void>; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -12,2 +22,4 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
const notFound_1 = __importDefault(require("./notFound")); | ||
__exportStar(require("./classes/request"), exports); | ||
__exportStar(require("./classes/response"), exports); | ||
exports.METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'HEAD']; | ||
@@ -14,0 +26,0 @@ const createHandler = ({ url, handler, method }) => ({ |
@@ -7,2 +7,5 @@ import { createServer } from 'http' | ||
export * from './classes/request' | ||
export * from './classes/response' | ||
export const METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'HEAD'] | ||
@@ -9,0 +12,0 @@ |
{ | ||
"name": "@tinyhttp/app", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "tinyhttp core", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
16943
469