@firebase/database 1.0.6 → 1.0.7-canary.b4c5ef3c3
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/dist/index.cjs.js +14 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +14 -15
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +14 -15
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +14 -15
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +10 -10
- package/dist/index.standalone.js.map +1 -1
- package/dist/internal.d.ts +4 -5
- package/dist/node-esm/index.node.esm.js +14 -15
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/api/Database.d.ts +3 -4
- package/dist/node-esm/src/core/WriteTree.d.ts +1 -1
- package/dist/node-esm/src/core/util/Tree.d.ts +1 -1
- package/dist/node-esm/src/core/util/util.d.ts +2 -2
- package/dist/node-esm/src/realtime/BrowserPollConnection.d.ts +1 -1
- package/dist/private.d.ts +4 -5
- package/dist/public.d.ts +3 -4
- package/dist/src/api/Database.d.ts +3 -4
- package/dist/src/core/WriteTree.d.ts +1 -1
- package/dist/src/core/util/Tree.d.ts +1 -1
- package/dist/src/core/util/util.d.ts +2 -2
- package/dist/src/realtime/BrowserPollConnection.d.ts +1 -1
- package/package.json +7 -7
package/dist/index.node.cjs.js
CHANGED
|
@@ -608,7 +608,7 @@ var isWindowsStoreApp = function () {
|
|
|
608
608
|
return typeof Windows === 'object' && typeof Windows.UI === 'object';
|
|
609
609
|
};
|
|
610
610
|
/**
|
|
611
|
-
* Converts a server error code to a
|
|
611
|
+
* Converts a server error code to a JavaScript Error
|
|
612
612
|
*/
|
|
613
613
|
function errorForServerCode(code, query) {
|
|
614
614
|
var reason = 'Unknown Error';
|
|
@@ -637,7 +637,7 @@ var INTEGER_REGEXP_ = new RegExp('^-?(0*)\\d{1,10}$');
|
|
|
637
637
|
*/
|
|
638
638
|
var INTEGER_32_MIN = -2147483648;
|
|
639
639
|
/**
|
|
640
|
-
* For use in
|
|
640
|
+
* For use in keys, the maximum possible 32-bit integer.
|
|
641
641
|
*/
|
|
642
642
|
var INTEGER_32_MAX = 2147483647;
|
|
643
643
|
/**
|
|
@@ -1300,7 +1300,7 @@ var WebSocketConnection = /** @class */ (function () {
|
|
|
1300
1300
|
}());
|
|
1301
1301
|
|
|
1302
1302
|
var name = "@firebase/database";
|
|
1303
|
-
var version = "1.0.
|
|
1303
|
+
var version = "1.0.7-canary.b4c5ef3c3";
|
|
1304
1304
|
|
|
1305
1305
|
/**
|
|
1306
1306
|
* @license
|
|
@@ -1338,7 +1338,7 @@ var AppCheckTokenProvider = /** @class */ (function () {
|
|
|
1338
1338
|
// Support delayed initialization of FirebaseAppCheck. This allows our
|
|
1339
1339
|
// customers to initialize the RTDB SDK before initializing Firebase
|
|
1340
1340
|
// AppCheck and ensures that all requests are authenticated if a token
|
|
1341
|
-
// becomes available before the
|
|
1341
|
+
// becomes available before the timeout below expires.
|
|
1342
1342
|
setTimeout(function () {
|
|
1343
1343
|
if (_this.appCheck) {
|
|
1344
1344
|
_this.getToken(forceRefresh).then(resolve, reject);
|
|
@@ -1400,7 +1400,7 @@ var FirebaseAuthTokenProvider = /** @class */ (function () {
|
|
|
1400
1400
|
// Support delayed initialization of FirebaseAuth. This allows our
|
|
1401
1401
|
// customers to initialize the RTDB SDK before initializing Firebase
|
|
1402
1402
|
// Auth and ensures that all requests are authenticated if a token
|
|
1403
|
-
// becomes available before the
|
|
1403
|
+
// becomes available before the timeout below expires.
|
|
1404
1404
|
setTimeout(function () {
|
|
1405
1405
|
if (_this.auth_) {
|
|
1406
1406
|
_this.getToken(forceRefresh).then(resolve, reject);
|
|
@@ -1894,7 +1894,7 @@ var BrowserPollConnection = /** @class */ (function () {
|
|
|
1894
1894
|
*********************************************************************************************/
|
|
1895
1895
|
var FirebaseIFrameScriptHolder = /** @class */ (function () {
|
|
1896
1896
|
/**
|
|
1897
|
-
* @param commandCB - The callback to be called when control commands are
|
|
1897
|
+
* @param commandCB - The callback to be called when control commands are received from the server.
|
|
1898
1898
|
* @param onMessageCB - The callback to be triggered when responses arrive from the server.
|
|
1899
1899
|
* @param onDisconnect - The callback to be triggered when this tag holder is closed
|
|
1900
1900
|
* @param urlFn - A function that provides the URL of the endpoint to send data to.
|
|
@@ -10654,7 +10654,7 @@ function treeHasChildren(tree) {
|
|
|
10654
10654
|
return tree.node.childCount > 0;
|
|
10655
10655
|
}
|
|
10656
10656
|
/**
|
|
10657
|
-
* @returns
|
|
10657
|
+
* @returns Whether the tree is empty (no value or children).
|
|
10658
10658
|
*/
|
|
10659
10659
|
function treeIsEmpty(tree) {
|
|
10660
10660
|
return treeGetValue(tree) === undefined && !treeHasChildren(tree);
|
|
@@ -13065,7 +13065,7 @@ function push(parent, value) {
|
|
|
13065
13065
|
// then() and catch() methods and is used as the return value of push(). The
|
|
13066
13066
|
// second remains a regular Reference and is used as the fulfilled value of
|
|
13067
13067
|
// the first ThennableReference.
|
|
13068
|
-
var
|
|
13068
|
+
var thenablePushRef = child(parent, name);
|
|
13069
13069
|
var pushRef = child(parent, name);
|
|
13070
13070
|
var promise;
|
|
13071
13071
|
if (value != null) {
|
|
@@ -13074,9 +13074,9 @@ function push(parent, value) {
|
|
|
13074
13074
|
else {
|
|
13075
13075
|
promise = Promise.resolve(pushRef);
|
|
13076
13076
|
}
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
return
|
|
13077
|
+
thenablePushRef.then = promise.then.bind(promise);
|
|
13078
|
+
thenablePushRef.catch = promise.then.bind(promise, undefined);
|
|
13079
|
+
return thenablePushRef;
|
|
13080
13080
|
}
|
|
13081
13081
|
/**
|
|
13082
13082
|
* Removes the data at this Database location.
|
|
@@ -14108,10 +14108,9 @@ function forceLongPolling() {
|
|
|
14108
14108
|
BrowserPollConnection.forceAllow();
|
|
14109
14109
|
}
|
|
14110
14110
|
/**
|
|
14111
|
-
* Returns the instance of the Realtime Database SDK that is associated
|
|
14112
|
-
*
|
|
14113
|
-
*
|
|
14114
|
-
* a custom database URL.
|
|
14111
|
+
* Returns the instance of the Realtime Database SDK that is associated with the provided
|
|
14112
|
+
* {@link @firebase/app#FirebaseApp}. Initializes a new instance with default settings if
|
|
14113
|
+
* no instance exists or if the existing instance uses a custom database URL.
|
|
14115
14114
|
*
|
|
14116
14115
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned Realtime
|
|
14117
14116
|
* Database instance is associated with.
|