@netgreener/runtime 0.1.12 → 0.1.13

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.
@@ -118,7 +118,7 @@ export function buildRuntimeHealthV0() {
118
118
  if (!state.hooksActive) {
119
119
  status = 'unknown';
120
120
  }
121
- else if (state.exportFail > 0 && failRate >= 0.5) {
121
+ else if (state.lastError && state.exportFail > 0 && failRate >= 0.5) {
122
122
  status = 'conflict';
123
123
  remediation.push('Check NETGREENER_API_URL / NETGREENER_TOKEN (direct) or NETGREENER_COLLECTOR_ENDPOINT (collector).');
124
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netgreener/runtime",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "NetGreener Node.js Runtime — Express/Fastify/Nest/Next/process adapter uploading RunSessions to api_server.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",