@silenteer/natsu
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -19,3 +19,3 @@ import type { Msg, NatsConnection } from 'nats'; | ||
declare type NatsValidationResult = { | ||
code: 'OK' | 400; | ||
code: 'OK' | 400 | 404; | ||
errors?: unknown; | ||
@@ -22,0 +22,0 @@ }; |
@@ -5,2 +5,3 @@ import type { NatsAuthorizationResult, NatsHandleResult, NatsValidationResult } from './type'; | ||
error: (errors?: unknown) => NatsValidationResult; | ||
notFound: (errors?: unknown) => NatsValidationResult; | ||
}; | ||
@@ -7,0 +8,0 @@ declare const NatsAuthorizationResultUtil: { |
@@ -7,2 +7,3 @@ "use strict"; | ||
error: (errors) => ({ code: 400, errors }), | ||
notFound: (errors) => ({ code: 404, errors }), | ||
}; | ||
@@ -9,0 +10,0 @@ exports.NatsValidationResultUtil = NatsValidationResultUtil; |
{ | ||
"name": "@silenteer/natsu", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"license": "MIT", | ||
@@ -15,6 +15,6 @@ "private": false, | ||
"scripts": { | ||
"build": "rm -rf dist && tsc && cp package.json ./dist/package.json" | ||
"build": "rm -rf dist && tsc" | ||
}, | ||
"dependencies": { | ||
"@silenteer/natsu-type": "0.0.3", | ||
"@silenteer/natsu-type": "0.0.4", | ||
"nats": "^2.2.0" | ||
@@ -21,0 +21,0 @@ }, |
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
232
16875
13
+ Added@silenteer/natsu-type@0.0.4(transitive)
- Removed@silenteer/natsu-type@0.0.3(transitive)
Updated@silenteer/natsu-type@0.0.4