@firebase/database-compat 0.2.5 → 0.2.6-20220831174748

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @firebase/database-compat
2
2
 
3
+ ## 0.2.6-20220831174748
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`f35533594`](https://github.com/firebase/firebase-js-sdk/commit/f355335942b874ba390bcbf3be6de44a3d33dce8)]:
8
+ - @firebase/database@0.13.6-20220831174748
9
+
3
10
  ## 0.2.5
4
11
 
5
12
  ### Patch Changes
@@ -5,7 +5,7 @@ import { errorPrefix, validateArgCount, validateCallback, validateContextObject,
5
5
  import { Logger } from '@firebase/logger';
6
6
 
7
7
  const name = "@firebase/database-compat";
8
- const version = "0.2.5";
8
+ const version = "0.2.6-20220831174748";
9
9
 
10
10
  /**
11
11
  * @license
@@ -6,7 +6,7 @@ import { __extends } from 'tslib';
6
6
  import { Logger } from '@firebase/logger';
7
7
 
8
8
  var name = "@firebase/database-compat";
9
- var version = "0.2.5";
9
+ var version = "0.2.6-20220831174748";
10
10
 
11
11
  /**
12
12
  * @license
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
12
12
  var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
13
13
 
14
14
  var name = "@firebase/database-compat";
15
- var version = "0.2.5";
15
+ var version = "0.2.6-20220831174748";
16
16
 
17
17
  /**
18
18
  * @license
@@ -4055,8 +4055,17 @@ var beingCrawled = function () {
4055
4055
  */
4056
4056
  var setTimeoutNonBlocking = function (fn, time) {
4057
4057
  var timeout = setTimeout(fn, time);
4058
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
4059
- if (typeof timeout === 'object' && timeout['unref']) {
4058
+ // Note: at the time of this comment, unrefTimer is under the unstable set of APIs. Run with --unstable to enable the API.
4059
+ if (typeof timeout === 'number' &&
4060
+ // @ts-ignore Is only defined in Deno environments.
4061
+ typeof Deno !== 'undefined' &&
4062
+ // @ts-ignore Deno and unrefTimer are only defined in Deno environments.
4063
+ Deno['unrefTimer']) {
4064
+ // @ts-ignore Deno and unrefTimer are only defined in Deno environments.
4065
+ Deno.unrefTimer(timeout);
4066
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4067
+ }
4068
+ else if (typeof timeout === 'object' && timeout['unref']) {
4060
4069
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4061
4070
  timeout['unref']();
4062
4071
  }