@neomanex/analytics-nuxt 1.0.3 → 1.0.4

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.
@@ -159,6 +159,9 @@ export class AnalyticsClient {
159
159
  this.flushTimer = setInterval(() => {
160
160
  void this.flush();
161
161
  }, this.config.flushInterval);
162
+ if (typeof this.flushTimer === "object" && "unref" in this.flushTimer) {
163
+ this.flushTimer.unref();
164
+ }
162
165
  }
163
166
  stopFlushTimer() {
164
167
  if (this.flushTimer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neomanex/analytics-nuxt",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Nuxt module for analytics tracking with SSR middleware, browser plugin, and server proxy",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",