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

@gtsc/api-models

Package Overview
Dependencies
Maintainers
0
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gtsc/api-models - npm Package Compare versions

Comparing version 0.0.3-next.23 to 0.0.3-next.24

4

dist/types/models/server/httpRestRouteProcessor.d.ts

@@ -7,11 +7,11 @@ import type { IServiceRequestContext } from "@gtsc/services";

* Process the REST request for the specified route.
* @param requestContext The context for the request.
* @param request The request to handle.
* @param response The response data to send if any.
* @param route The route being requested, if a matching one was found.
* @param requestContext The context for the request.
* @param state The state for the request.
* @param options Options for the processor.
*/
export type HttpRestRouteProcessor<T = never> = (requestContext: IServiceRequestContext, request: IHttpRequest, response: IHttpResponse, route: IRestRoute | undefined, state: {
export type HttpRestRouteProcessor<T = never> = (request: IHttpRequest, response: IHttpResponse, route: IRestRoute | undefined, requestContext: IServiceRequestContext, state: {
[id: string]: unknown;
}, options?: T) => Promise<void>;

@@ -7,3 +7,3 @@ [**@gtsc/api-models**](../overview.md) • **Docs**

> **HttpRestRouteProcessor**\<`T`\>: (`requestContext`, `request`, `response`, `route`, `state`, `options`?) => `Promise`\<`void`\>
> **HttpRestRouteProcessor**\<`T`\>: (`request`, `response`, `route`, `requestContext`, `state`, `options`?) => `Promise`\<`void`\>

@@ -18,6 +18,2 @@ Process the REST request for the specified route.

• **requestContext**: `IServiceRequestContext`
The context for the request.
• **request**: [`IHttpRequest`](../interfaces/IHttpRequest.md)

@@ -35,2 +31,6 @@

• **requestContext**: `IServiceRequestContext`
The context for the request.
• **state**

@@ -37,0 +37,0 @@

{
"name": "@gtsc/api-models",
"version": "0.0.3-next.23",
"version": "0.0.3-next.24",
"description": "Contains models and classes for use with APIs",

@@ -5,0 +5,0 @@ "repository": {

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