@dnlup/doc
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -66,3 +66,9 @@ 'use strict' | ||
if (instances.hasSubscribers) { | ||
process.nextTick(() => instances.publish(this)) | ||
process.nextTick(() => { | ||
try { | ||
// On Node 18 the `hasSubscribers` check is not enough so this call fails | ||
// with an uncaught exception if there are no subscribers. | ||
instances.publish(this) | ||
} catch (_) {} | ||
}) | ||
} | ||
@@ -125,3 +131,7 @@ } | ||
if (samples.hasSubscribers) { | ||
samples.publish(this) | ||
try { | ||
// On Node 18 the `hasSubscribers` check is not enough so this call fails | ||
// with an uncaught exception if there are no subscribers. | ||
samples.publish(this) | ||
} catch (_) {} | ||
} | ||
@@ -128,0 +138,0 @@ } |
{ | ||
"name": "@dnlup/doc", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Get usage and health data about your Node.js process", | ||
@@ -64,4 +64,3 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">=18", | ||
"npm": ">=10" | ||
"node": ">=18" | ||
}, | ||
@@ -68,0 +67,0 @@ "tsd": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49199
878