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

@cspell/cspell-service-bus

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cspell/cspell-service-bus - npm Package Compare versions

Comparing version 6.14.2 to 6.14.3

4

dist/handlers.d.ts
import { RequestResponseType, ServiceRequest } from './request';
import { ServiceRequestFactory, ServiceRequestFactoryRequestType } from './ServiceRequestFactory';
import { Dispatcher } from './Dispatcher';
export declare type HandleRequestFn<R extends ServiceRequest> = (request: R, next: HandleRequest, dispatch: Dispatcher) => RequestResponseType<R>;
export type HandleRequestFn<R extends ServiceRequest> = (request: R, next: HandleRequest, dispatch: Dispatcher) => RequestResponseType<R>;
export interface HandleRequest {

@@ -11,3 +11,3 @@ <R extends ServiceRequest>(request: R): any;

}
export declare type FactoryRequestHandler<T extends ServiceRequestFactory<ServiceRequest>, R extends ServiceRequest = ServiceRequestFactoryRequestType<T>> = HandleRequestKnown<R>;
export type FactoryRequestHandler<T extends ServiceRequestFactory<ServiceRequest>, R extends ServiceRequest = ServiceRequestFactoryRequestType<T>> = HandleRequestKnown<R>;
export interface HandlerNext {

@@ -14,0 +14,0 @@ (next: HandleRequest): HandleRequest;

@@ -27,9 +27,9 @@ export interface ServiceRequest<T extends string = string, P = unknown, R = unknown> {

}
export declare type ServiceResponse<T> = ServiceResponseSuccess<T> | ServiceResponseFailure<T>;
export declare type IsARequest<T extends ServiceRequest> = (r: ServiceRequest) => r is T;
export type ServiceResponse<T> = ServiceResponseSuccess<T> | ServiceResponseFailure<T>;
export type IsARequest<T extends ServiceRequest> = (r: ServiceRequest) => r is T;
export declare function createResponse<R extends ServiceRequest, T = RequestResponseType<R>>(value: T, _req?: R): ServiceResponseSuccess<T>;
declare type VT<T> = T extends {
type VT<T> = T extends {
___T?: infer R;
} ? R : never;
export declare type RequestResponseType<T> = T extends {
export type RequestResponseType<T> = T extends {
__r?: infer R;

@@ -36,0 +36,0 @@ } ? R : never;

@@ -13,5 +13,5 @@ import { Handler, HandleRequestFn } from './handlers';

}
export declare type ServiceRequestFactoryRequestType<T> = T extends {
export type ServiceRequestFactoryRequestType<T> = T extends {
__request?: infer R;
} ? R : never;
//# sourceMappingURL=ServiceRequestFactory.d.ts.map

@@ -6,3 +6,3 @@ {

},
"version": "6.14.2",
"version": "6.14.3",
"description": "A Library for connecting requests to services that can fulfill them.",

@@ -78,3 +78,3 @@ "keywords": [

},
"gitHead": "ea9692380357e9e890c20f15b1200cc1c6c3a2df"
"gitHead": "df0efdbb0dc7b084579130ba5fe97441c0ab67ca"
}
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