@silenteer/natsu
Advanced tools
Comparing version 1.0.29 to 1.0.30
@@ -8,4 +8,10 @@ import type { Msg, NatsConnection, PublishOptions, RequestOptions } from 'nats'; | ||
natsService: { | ||
request: (subject: string, data?: NatsRequest, opts?: RequestOptions) => Promise<Msg>; | ||
publish: (subject: string, data?: NatsResponse, opts?: PublishOptions) => Promise<void>; | ||
request: <T extends NatsService<string, unknown, unknown>>(subject: T['subject'], data?: NatsRequest, opts?: RequestOptions) => Promise<Msg>; | ||
publish: <T extends NatsService<string, unknown, unknown>>(subject: T['subject'], data?: NatsResponse | { | ||
headers: { | ||
[key: string]: unknown; | ||
}; | ||
body?: T['response']; | ||
code: 200; | ||
}, opts?: PublishOptions) => Promise<void>; | ||
subscribe: NatsConnection['subscribe']; | ||
@@ -12,0 +18,0 @@ drain: NatsConnection['drain']; |
{ | ||
"name": "@silenteer/natsu", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52771
740