itty-router
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -1,2 +0,2 @@ | ||
import { AutoRouterOptions } from './types'; | ||
export declare const AutoRouter: ({ format, missing, finally: f, before, ...options }?: AutoRouterOptions) => import("types/RouterType").RouterType<import("types/IRequest").IRequest, any[]>; | ||
import { AutoRouterOptions, AutoRouterType, IRequest } from './types'; | ||
export declare const AutoRouter: <RequestType extends IRequest = IRequest, Args extends any[] = any[], ResponseType = any>({ format, missing, finally: f, before, ...options }?: AutoRouterOptions) => AutoRouterType<RequestType, Args, ResponseType>; |
import { IRequest, IttyRouterOptions, IttyRouterType } from './types'; | ||
export declare const IttyRouter: <RequestType extends IRequest = IRequest, Args extends any[] = any[]>({ base, routes, ...other }?: IttyRouterOptions) => IttyRouterType<RequestType, Args>; | ||
export declare const IttyRouter: <RequestType extends IRequest = IRequest, Args extends any[] = any[], ResponseType = any>({ base, routes, ...other }?: IttyRouterOptions) => IttyRouterType<RequestType, Args, ResponseType>; |
{ | ||
"name": "itty-router", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "A tiny, zero-dependency router, designed to make beautiful APIs in any environment.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -57,3 +57,3 @@ <p align="center"> | ||
- [100% Test Coverage](https://coveralls.io/github/kwhitley/itty-router?branch=v5.x). Bulletproof for production peace-of-mind. | ||
- Designed specifically for serverless (but works anywhere) | ||
- Designed specifically for serverless (but works anywhere). | ||
- No assumptions. Return anything; pass in anything. | ||
@@ -60,0 +60,0 @@ - Future-proof. HTTP methods not-yet-invented already work with it. |
import { IRequest, RouterOptions, RouterType } from './types'; | ||
export declare const Router: <RequestType = IRequest, Args extends any[] = any[]>({ base, routes, ...other }?: RouterOptions) => RouterType<RequestType, Args>; | ||
export declare const Router: <RequestType = IRequest, Args extends any[] = any[], ResponseType = any>({ base, routes, ...other }?: RouterOptions) => RouterType<RequestType, Args, ResponseType>; |
export * from './types/AutoRouterOptions'; | ||
export * from './types/AutoRouterType'; | ||
export * from './types/CustomRoutes'; | ||
@@ -3,0 +4,0 @@ export * from './types/ErrorHandler'; |
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
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
83435
118
343
0