@firebase/database 0.13.5-canary.f88805e48 → 0.13.6

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.
@@ -5,7 +5,7 @@ import { __spreadArray, __read, __values, __extends, __awaiter, __generator, __a
5
5
  import { Logger, LogLevel } from '@firebase/logger';
6
6
 
7
7
  var name = "@firebase/database";
8
- var version = "0.13.5-canary.f88805e48";
8
+ var version = "0.13.6";
9
9
 
10
10
  /**
11
11
  * @license
@@ -701,8 +701,17 @@ var beingCrawled = function () {
701
701
  */
702
702
  var setTimeoutNonBlocking = function (fn, time) {
703
703
  var timeout = setTimeout(fn, time);
704
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
705
- if (typeof timeout === 'object' && timeout['unref']) {
704
+ // Note: at the time of this comment, unrefTimer is under the unstable set of APIs. Run with --unstable to enable the API.
705
+ if (typeof timeout === 'number' &&
706
+ // @ts-ignore Is only defined in Deno environments.
707
+ typeof Deno !== 'undefined' &&
708
+ // @ts-ignore Deno and unrefTimer are only defined in Deno environments.
709
+ Deno['unrefTimer']) {
710
+ // @ts-ignore Deno and unrefTimer are only defined in Deno environments.
711
+ Deno.unrefTimer(timeout);
712
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
713
+ }
714
+ else if (typeof timeout === 'object' && timeout['unref']) {
706
715
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
707
716
  timeout['unref']();
708
717
  }