@mantiq/heartbeat 0.2.0 → 0.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantiq/heartbeat",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Observability, APM & queue monitoring for MantiqJS",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -196,8 +196,8 @@ export class HeartbeatServiceProvider extends ServiceProvider {
196
196
  const onAny = eventBus.onAny.bind(eventBus)
197
197
 
198
198
  for (const [key, watcher] of watcherMap) {
199
- const watcherConfig = config.watchers[key]
200
- if (!watcherConfig.enabled) continue
199
+ const watcherConfig = config.watchers[key as keyof typeof config.watchers]
200
+ if (!watcherConfig?.enabled) continue
201
201
 
202
202
  watcher.configure(watcherConfig as Record<string, any>)
203
203
  heartbeat.addWatcher(watcher)