nice-grpc-server-health
Advanced tools
Comparing version 1.1.2 to 2.0.0
@@ -22,4 +22,3 @@ "use strict"; | ||
async *watch(request, context) { | ||
var _a; | ||
(_a = context.abortOnTerminate) === null || _a === void 0 ? void 0 : _a.call(context); | ||
context.abortOnTerminate?.(); | ||
let lastStatus; | ||
@@ -26,0 +25,0 @@ while (true) { |
@@ -11,4 +11,3 @@ "use strict"; | ||
setStatus(status, service = '') { | ||
var _a; | ||
const prevStatus = (_a = statuses.get(service)) !== null && _a !== void 0 ? _a : 'unknown'; | ||
const prevStatus = statuses.get(service) ?? 'unknown'; | ||
if (prevStatus === status) { | ||
@@ -26,4 +25,3 @@ return; | ||
getStatus(service = '') { | ||
var _a; | ||
return (_a = statuses.get(service)) !== null && _a !== void 0 ? _a : 'unknown'; | ||
return statuses.get(service) ?? 'unknown'; | ||
}, | ||
@@ -30,0 +28,0 @@ }); |
@@ -19,7 +19,7 @@ import * as _m0 from 'protobufjs/minimal'; | ||
encode(message: HealthCheckRequest, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): HealthCheckRequest; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): HealthCheckRequest; | ||
}; | ||
export declare const HealthCheckResponse: { | ||
encode(message: HealthCheckResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): HealthCheckResponse; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): HealthCheckResponse; | ||
}; | ||
@@ -39,3 +39,3 @@ export declare type HealthDefinition = typeof HealthDefinition; | ||
encode(message: HealthCheckRequest, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): HealthCheckRequest; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): HealthCheckRequest; | ||
}; | ||
@@ -45,3 +45,3 @@ readonly requestStream: false; | ||
encode(message: HealthCheckResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): HealthCheckResponse; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): HealthCheckResponse; | ||
}; | ||
@@ -72,3 +72,3 @@ readonly responseStream: false; | ||
encode(message: HealthCheckRequest, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): HealthCheckRequest; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): HealthCheckRequest; | ||
}; | ||
@@ -78,3 +78,3 @@ readonly requestStream: false; | ||
encode(message: HealthCheckResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): HealthCheckResponse; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): HealthCheckResponse; | ||
}; | ||
@@ -81,0 +81,0 @@ readonly responseStream: true; |
@@ -5,8 +5,8 @@ The MIT License (MIT) | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
@@ -17,7 +17,6 @@ The above copyright notice and this permission notice shall be included in all | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
{ | ||
"name": "nice-grpc-server-health", | ||
"version": "1.1.2", | ||
"version": "2.0.0", | ||
"description": "gRPC health checking protocol implementation for nice-grpc", | ||
@@ -26,8 +26,8 @@ "repository": "deeplay-io/nice-grpc", | ||
"devDependencies": { | ||
"@tsconfig/node12": "^1.0.8", | ||
"@types/node": "^12.0.0", | ||
"@tsconfig/node14": "^1.0.3", | ||
"@types/node": "^14.18.23", | ||
"grpc-tools": "^1.10.0", | ||
"jest-os-detection": "^1.3.1", | ||
"mkdirp": "^1.0.4", | ||
"nice-grpc-server-middleware-terminator": "^1.1.2", | ||
"nice-grpc-server-middleware-terminator": "^2.0.0", | ||
"request": "^2.88.2", | ||
@@ -38,7 +38,8 @@ "rimraf": "^3.0.2", | ||
"dependencies": { | ||
"abort-controller-x": "^0.2.6", | ||
"nice-grpc": "^1.2.2", | ||
"abort-controller-x": "^0.4.0", | ||
"nice-grpc": "^2.0.0", | ||
"protobufjs": "^6.11.2", | ||
"typed-emitter": "^2.0.0" | ||
}, | ||
"gitHead": "1eae2167ee0eeb1e7ab0f56278716b59269ffe46" | ||
"gitHead": "0174f605350065a6d9f89df38c6694ba75b891ac" | ||
} |
@@ -1,3 +0,3 @@ | ||
export {HealthDefinition} from './proto/grpc/health/v1/health' | ||
export {HealthDefinition} from './proto/grpc/health/v1/health'; | ||
export * from './healthState'; | ||
export * from './healthServiceImpl'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
31170
4
549
+ Addedprotobufjs@^6.11.2
+ Added@types/long@4.0.2(transitive)
+ Addedabort-controller-x@0.4.3(transitive)
+ Addedlong@4.0.0(transitive)
+ Addednice-grpc@2.1.10(transitive)
+ Addednice-grpc-common@2.0.2(transitive)
+ Addedprotobufjs@6.11.4(transitive)
- Removedabort-controller-x@0.2.7(transitive)
- Removednice-grpc@1.2.2(transitive)
- Removednice-grpc-common@1.1.0(transitive)
- Removednode-abort-controller@1.2.12.0.0(transitive)
Updatedabort-controller-x@^0.4.0
Updatednice-grpc@^2.0.0