Socket
Socket
Sign inDemoInstall

koa-fp-ts-router

Package Overview
Dependencies
44
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

16

cjs/index.d.ts
import Koa from 'koa';
import { Middleware, Context } from 'koa';
import { Middleware } from 'koa';
import { Match } from 'fp-ts-routing';

@@ -17,4 +17,4 @@ export interface Options {

*/
allowedMethods(): Middleware<StateT, Context & CustomT>;
routes(): Middleware<StateT, Context & CustomT & {
allowedMethods(): Middleware<StateT, CustomT>;
routes(): Middleware<StateT, CustomT & {
params: unknown;

@@ -25,3 +25,3 @@ }>;

*/
delete<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & {
delete<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & {
params: Params;

@@ -32,3 +32,3 @@ }>): void;

*/
get<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & {
get<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & {
params: Params;

@@ -39,3 +39,3 @@ }>): void;

*/
patch<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & {
patch<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & {
params: Params;

@@ -46,3 +46,3 @@ }>): void;

*/
post<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & {
post<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & {
params: Params;

@@ -53,3 +53,3 @@ }>): void;

*/
put<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & {
put<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & {
params: Params;

@@ -56,0 +56,0 @@ }>): void;

import Koa from 'koa';
import { Middleware, Context } from 'koa';
import { Middleware } from 'koa';
import { Match } from 'fp-ts-routing';

@@ -17,4 +17,4 @@ export interface Options {

*/
allowedMethods(): Middleware<StateT, Context & CustomT>;
routes(): Middleware<StateT, Context & CustomT & {
allowedMethods(): Middleware<StateT, CustomT>;
routes(): Middleware<StateT, CustomT & {
params: unknown;

@@ -25,3 +25,3 @@ }>;

*/
delete<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & {
delete<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & {
params: Params;

@@ -32,3 +32,3 @@ }>): void;

*/
get<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & {
get<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & {
params: Params;

@@ -39,3 +39,3 @@ }>): void;

*/
patch<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & {
patch<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & {
params: Params;

@@ -46,3 +46,3 @@ }>): void;

*/
post<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & {
post<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & {
params: Params;

@@ -53,3 +53,3 @@ }>): void;

*/
put<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & {
put<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & {
params: Params;

@@ -56,0 +56,0 @@ }>): void;

{
"name": "koa-fp-ts-router",
"version": "0.2.1",
"version": "0.2.2",
"description": "A Koa router middleware built on the top of fp-ts-routing",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc