New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@api-ts/typed-express-router

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api-ts/typed-express-router - npm Package Compare versions

Comparing version 1.0.13 to 1.1.0

2

dist/src/index.js

@@ -122,2 +122,3 @@ "use strict";

delete: makeAddRoute('delete'),
patch: makeAddRoute('patch'),
getUnchecked: makeAddUncheckedRoute('get'),

@@ -127,2 +128,3 @@ postUnchecked: makeAddUncheckedRoute('post'),

deleteUnchecked: makeAddUncheckedRoute('delete'),
patchUnchecked: makeAddUncheckedRoute('patch'),
use: (middleware) => {

@@ -129,0 +131,0 @@ routerMiddleware.push(middleware);

4

dist/src/types.d.ts

@@ -32,3 +32,3 @@ import { ApiSpec, HttpRoute, Method as HttpMethod } from '@api-ts/io-ts-http';

export declare type AddUncheckedRouteHandler<Spec extends ApiSpec, Method extends Methods> = <ApiName extends ApiNamesWithMethod<Spec, Method>>(apiName: ApiName, handlers: UncheckedRequestHandler<Spec, ApiName, Method>[], options?: UncheckedWrappedRouteOptions) => void;
export declare type WrappedRouter<Spec extends ApiSpec> = Omit<express.Router, 'get' | 'post' | 'put' | 'delete' | 'use'> & express.RequestHandler & {
export declare type WrappedRouter<Spec extends ApiSpec> = Omit<express.Router, 'get' | 'post' | 'put' | 'delete' | 'use' | 'patch'> & express.RequestHandler & {
use: (middleware: UncheckedRequestHandler<ApiSpec, string, HttpMethod>) => void;

@@ -39,2 +39,3 @@ get: AddRouteHandler<Spec, 'get'>;

delete: AddRouteHandler<Spec, 'delete'>;
patch: AddRouteHandler<Spec, 'patch'>;
getUnchecked: AddUncheckedRouteHandler<Spec, 'get'>;

@@ -44,4 +45,5 @@ postUnchecked: AddUncheckedRouteHandler<Spec, 'post'>;

deleteUnchecked: AddUncheckedRouteHandler<Spec, 'delete'>;
patchUnchecked: AddUncheckedRouteHandler<Spec, 'patch'>;
};
export {};
//# sourceMappingURL=types.d.ts.map
{
"name": "@api-ts/typed-express-router",
"version": "1.0.13",
"version": "1.1.0",
"description": "Implement an HTTP specification with Express",

@@ -17,6 +17,6 @@ "author": "Patrick McLaughlin <patrickmclaughlin@bitgo.com>",

"format:fix": "prettier --write .",
"test": "c8 --all ava"
"test": "c8 --all node --loader tsx --test test/*.ts"
},
"dependencies": {
"@api-ts/io-ts-http": "2.3.0",
"@api-ts/io-ts-http": "2.4.0",
"@types/express": "4.17.17",

@@ -28,20 +28,7 @@ "express": "4.18.2",

"devDependencies": {
"@api-ts/superagent-wrapper": "1.1.10",
"@ava/typescript": "3.0.1",
"ava": "5.2.0",
"@api-ts/superagent-wrapper": "1.1.11",
"c8": "7.13.0",
"ts-node": "10.9.1",
"typescript": "4.7.4"
"typescript": "4.7.4",
"tsx": "3.12.7"
},
"ava": {
"typescript": {
"compile": false,
"extensions": [
"ts"
],
"rewritePaths": {
"test/": "dist/test/"
}
}
},
"publishConfig": {

@@ -48,0 +35,0 @@ "access": "public"

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