@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.
- package/CHANGELOG.md +6 -0
- package/dist/index.esm2017.js +12 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +12 -3
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +12 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +11 -2
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +12 -3
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/test/deno.test.d.ts +17 -0
- package/dist/test/deno.test.d.ts +17 -0
- package/package.json +6 -6
|
@@ -676,8 +676,17 @@ const beingCrawled = function () {
|
|
|
676
676
|
*/
|
|
677
677
|
const setTimeoutNonBlocking = function (fn, time) {
|
|
678
678
|
const timeout = setTimeout(fn, time);
|
|
679
|
-
//
|
|
680
|
-
if (typeof timeout === '
|
|
679
|
+
// Note: at the time of this comment, unrefTimer is under the unstable set of APIs. Run with --unstable to enable the API.
|
|
680
|
+
if (typeof timeout === 'number' &&
|
|
681
|
+
// @ts-ignore Is only defined in Deno environments.
|
|
682
|
+
typeof Deno !== 'undefined' &&
|
|
683
|
+
// @ts-ignore Deno and unrefTimer are only defined in Deno environments.
|
|
684
|
+
Deno['unrefTimer']) {
|
|
685
|
+
// @ts-ignore Deno and unrefTimer are only defined in Deno environments.
|
|
686
|
+
Deno.unrefTimer(timeout);
|
|
687
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
688
|
+
}
|
|
689
|
+
else if (typeof timeout === 'object' && timeout['unref']) {
|
|
681
690
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
682
691
|
timeout['unref']();
|
|
683
692
|
}
|
|
@@ -1241,7 +1250,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
|
|
|
1241
1250
|
WebSocketConnection.healthyTimeout = 30000;
|
|
1242
1251
|
|
|
1243
1252
|
const name = "@firebase/database";
|
|
1244
|
-
const version = "0.13.
|
|
1253
|
+
const version = "0.13.6";
|
|
1245
1254
|
|
|
1246
1255
|
/**
|
|
1247
1256
|
* @license
|