graceful-server-elysia
Advanced tools
Comparing version 1.0.24 to 1.0.25
@@ -32,3 +32,3 @@ import { EventEmitter } from 'node:events'; | ||
}, { | ||
ready: { | ||
[x: string]: { | ||
get: { | ||
@@ -48,3 +48,3 @@ body: unknown; | ||
} & { | ||
live: { | ||
[x: string]: { | ||
get: { | ||
@@ -51,0 +51,0 @@ body: unknown; |
@@ -28,5 +28,5 @@ 'use strict'; | ||
return new elysia.Elysia().state("startedSince", Date.now()).get( | ||
"/ready", | ||
config.readinessEndpoint, | ||
() => { | ||
if (global.gracefulServerIsReady || config.serverIsReadyOnStart) { | ||
if (global.gracefulServerIsReady) { | ||
return { | ||
@@ -47,3 +47,3 @@ status: "ready" | ||
).get( | ||
"/live", | ||
config.livenessEndpoint, | ||
({ store: { startedSince } }) => { | ||
@@ -50,0 +50,0 @@ return { |
{ | ||
"name": "graceful-server-elysia", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "dist", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11227