@silenteer/natsu
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -228,6 +228,5 @@ "use strict"; | ||
}, error: (params) => { | ||
const { data, code = 500, errors } = params; | ||
const { code = 500, errors } = params; | ||
return { | ||
code, | ||
data, | ||
errors, | ||
@@ -234,0 +233,0 @@ }; |
@@ -76,7 +76,4 @@ import type { Msg, NatsConnection, PublishOptions, RequestOptions } from 'nats'; | ||
declare type NatsValidationInjection<TService extends NatsService<string, unknown, unknown>, TInjection extends Record<string, unknown> = Record<string, unknown>> = NatsInjection<TService, TInjection> & { | ||
ok: (params: { | ||
data: NatsRequest<TService['request']>; | ||
}) => NatsValidationResult; | ||
ok: () => NatsValidationResult; | ||
error: (params: { | ||
data: NatsRequest<TService['request']>; | ||
code?: number; | ||
@@ -87,7 +84,4 @@ errors: unknown; | ||
declare type NatsAuthorizationInjection<TService extends NatsService<string, unknown, unknown>, TInjection extends Record<string, unknown> = Record<string, unknown>> = NatsInjection<TService, TInjection> & { | ||
ok: (params: { | ||
data: NatsRequest<TService['request']>; | ||
}) => NatsAuthorizationResult; | ||
ok: () => NatsAuthorizationResult; | ||
error: (params: { | ||
data: NatsRequest<TService['request']>; | ||
code?: number; | ||
@@ -100,3 +94,2 @@ errors: unknown; | ||
error: (params: { | ||
data: NatsRequest<TService['request']>; | ||
code?: number; | ||
@@ -103,0 +96,0 @@ errors: unknown; |
{ | ||
"name": "@silenteer/natsu", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
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
72385
734