@kb-labs/rest-api-app 1.5.0 → 2.6.0
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.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +5 -0
- package/dist/manifest.js +23 -0
- package/dist/manifest.js.map +1 -0
- package/package.json +29 -30
- package/README.md +0 -54
package/dist/index.js
CHANGED
|
@@ -937,6 +937,8 @@ var SystemMetricsCollector = class {
|
|
|
937
937
|
this.getActiveOperations = getActiveOperations;
|
|
938
938
|
this.instanceId = `${os.hostname()}:${process2.pid}`;
|
|
939
939
|
}
|
|
940
|
+
serviceId;
|
|
941
|
+
getActiveOperations;
|
|
940
942
|
intervalId = null;
|
|
941
943
|
instanceId;
|
|
942
944
|
lastCpuUsage = process2.cpuUsage();
|
|
@@ -1069,7 +1071,7 @@ function getLatestSystemMetrics() {
|
|
|
1069
1071
|
}
|
|
1070
1072
|
|
|
1071
1073
|
// src/observability/service-contract.ts
|
|
1072
|
-
var REST_VERSION = "
|
|
1074
|
+
var REST_VERSION = "1.6.0" ;
|
|
1073
1075
|
function resolveInstanceId() {
|
|
1074
1076
|
return `${hostname()}:${process.pid}`;
|
|
1075
1077
|
}
|
|
@@ -1194,7 +1196,7 @@ function buildRestObservabilityHealth(basePath, healthSnapshot, readiness, metri
|
|
|
1194
1196
|
}
|
|
1195
1197
|
|
|
1196
1198
|
// src/routes/health.ts
|
|
1197
|
-
var REST_VERSION2 = "
|
|
1199
|
+
var REST_VERSION2 = "1.6.0" ;
|
|
1198
1200
|
var CACHE_WINDOW_MS = 200;
|
|
1199
1201
|
var READY_SCHEMA = "kb.ready/1";
|
|
1200
1202
|
var cachedBaseSnapshot = null;
|
|
@@ -7914,7 +7916,7 @@ function registerMiddleware(server, config) {
|
|
|
7914
7916
|
registerEnvelopeMiddleware(server, config);
|
|
7915
7917
|
registerErrorGuard(server);
|
|
7916
7918
|
}
|
|
7917
|
-
var kDisableRequestLogging = Symbol.for("fastify.disableRequestLogging");
|
|
7919
|
+
var kDisableRequestLogging = /* @__PURE__ */ Symbol.for("fastify.disableRequestLogging");
|
|
7918
7920
|
async function createServer(config, repoRoot, registry) {
|
|
7919
7921
|
const useHttp2 = config.http2?.enabled ?? false;
|
|
7920
7922
|
const allowHTTP1 = config.http2?.allowHTTP1 ?? true;
|