Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tinyhttp/app

Package Overview
Dependencies
Maintainers
1
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/app - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

dist/index.d.ts
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 @@

2

package.json
{
"name": "@tinyhttp/app",
"version": "0.0.3",
"version": "0.0.4",
"description": "tinyhttp core",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc