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

18h

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

18h - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

LICENSE

2

dist/@types/http-method.d.ts

@@ -17,3 +17,3 @@ import { Context, Middleware } from "koa";

export declare type RouteHandlerRules<ResponseBody = unknown, RequestBody extends ObjectShape | null = null, RouteParams = Record<string, string | undefined>> = {
handler(context?: ExtendedContext<RequestBody, RouteParams>): Promise<RequestHandlerResult<ResponseBody>>;
handler(context: ExtendedContext<RequestBody, RouteParams>): Promise<RequestHandlerResult<ResponseBody>>;
middleware?: {

@@ -20,0 +20,0 @@ pre?: Middleware[];

@@ -35,3 +35,3 @@ import { Context, Middleware } from "koa";

handler(
context?: ExtendedContext<RequestBody, RouteParams>
context: ExtendedContext<RequestBody, RouteParams>
): Promise<RequestHandlerResult<ResponseBody>>;

@@ -38,0 +38,0 @@ middleware?: {

{
"name": "18h",
"description": "A Next.js style dynamic API router for Koa-based APIs.",
"version": "2.1.0",
"version": "2.1.1",
"repository": {

@@ -6,0 +6,0 @@ "url": "https://github.com/ridafkih/18h"

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