@tahminator/sapling 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1227,11 +1227,11 @@ let DefaultHealthMiddleware = class DefaultHealthMiddleware {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
async readiness(_request, _response, _next) {
|
|
1229
1229
|
const up = await this.healthRegistrar._readiness();
|
|
1230
|
-
return ResponseEntity.
|
|
1230
|
+
return ResponseEntity.status(up ? 200 : 503).body({ up });
|
|
1231
1231
|
}
|
|
1232
1232
|
async liveness(_request, _response, _next) {
|
|
1233
1233
|
const up = await this.healthRegistrar._liveness();
|
|
1234
|
-
return ResponseEntity.
|
|
1234
|
+
return ResponseEntity.status(up ? 200 : 503).body({ up });
|
|
1235
1235
|
}
|
|
1236
1236
|
};
|
|
1237
1237
|
__decorate([GET(_settings.health.ready.path)], DefaultHealthMiddleware.prototype, "readiness", null);
|
package/dist/index.mjs
CHANGED
|
@@ -1202,11 +1202,11 @@ let DefaultHealthMiddleware = class DefaultHealthMiddleware {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
async readiness(_request, _response, _next) {
|
|
1204
1204
|
const up = await this.healthRegistrar._readiness();
|
|
1205
|
-
return ResponseEntity.
|
|
1205
|
+
return ResponseEntity.status(up ? 200 : 503).body({ up });
|
|
1206
1206
|
}
|
|
1207
1207
|
async liveness(_request, _response, _next) {
|
|
1208
1208
|
const up = await this.healthRegistrar._liveness();
|
|
1209
|
-
return ResponseEntity.
|
|
1209
|
+
return ResponseEntity.status(up ? 200 : 503).body({ up });
|
|
1210
1210
|
}
|
|
1211
1211
|
};
|
|
1212
1212
|
__decorate([GET(_settings.health.ready.path)], DefaultHealthMiddleware.prototype, "readiness", null);
|