Socket
Socket
Sign inDemoInstall

itty-router

Package Overview
Dependencies
Maintainers
2
Versions
265
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itty-router - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

types/AutoRouterType.d.ts

4

AutoRouter.d.ts

@@ -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

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