@firebase/database-compat 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/database-compat/test/helpers/util.d.ts +1 -1
- package/dist/index.esm2017.js +1 -1
- package/dist/index.esm5.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.standalone.js +10 -10
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/database-compat/test/helpers/util.d.ts +1 -1
- package/dist/node-esm/index.js +1 -1
- package/package.json +7 -7
@@ -28,7 +28,7 @@ export declare function createTestApp(): import("@firebase/app-compat").Firebase
|
|
28
28
|
export declare function getRootNode(i?: number, ref?: string): any;
|
29
29
|
/**
|
30
30
|
* Create multiple refs to the same top level
|
31
|
-
* push key - each on
|
31
|
+
* push key - each on its own Firebase.Context.
|
32
32
|
*/
|
33
33
|
export declare function getRandomNode(numNodes?: any): Reference | Reference[];
|
34
34
|
export declare function getQueryValue(query: Query): Promise<unknown>;
|
package/dist/index.esm2017.js
CHANGED
package/dist/index.esm5.js
CHANGED
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 = "1.0.
|
15
|
+
var version = "1.0.7-canary.b4c5ef3c3";
|
16
16
|
|
17
17
|
/**
|
18
18
|
* @license
|
package/dist/index.standalone.js
CHANGED
@@ -3954,7 +3954,7 @@ var isWindowsStoreApp = function () {
|
|
3954
3954
|
return typeof Windows === 'object' && typeof Windows.UI === 'object';
|
3955
3955
|
};
|
3956
3956
|
/**
|
3957
|
-
* Converts a server error code to a
|
3957
|
+
* Converts a server error code to a JavaScript Error
|
3958
3958
|
*/
|
3959
3959
|
function errorForServerCode(code, query) {
|
3960
3960
|
var reason = 'Unknown Error';
|
@@ -3983,7 +3983,7 @@ var INTEGER_REGEXP_ = new RegExp('^-?(0*)\\d{1,10}$');
|
|
3983
3983
|
*/
|
3984
3984
|
var INTEGER_32_MIN = -2147483648;
|
3985
3985
|
/**
|
3986
|
-
* For use in
|
3986
|
+
* For use in keys, the maximum possible 32-bit integer.
|
3987
3987
|
*/
|
3988
3988
|
var INTEGER_32_MAX = 2147483647;
|
3989
3989
|
/**
|
@@ -4681,7 +4681,7 @@ var AppCheckTokenProvider = /** @class */ (function () {
|
|
4681
4681
|
// Support delayed initialization of FirebaseAppCheck. This allows our
|
4682
4682
|
// customers to initialize the RTDB SDK before initializing Firebase
|
4683
4683
|
// AppCheck and ensures that all requests are authenticated if a token
|
4684
|
-
// becomes available before the
|
4684
|
+
// becomes available before the timeout below expires.
|
4685
4685
|
setTimeout(function () {
|
4686
4686
|
if (_this.appCheck) {
|
4687
4687
|
_this.getToken(forceRefresh).then(resolve, reject);
|
@@ -4743,7 +4743,7 @@ var FirebaseAuthTokenProvider = /** @class */ (function () {
|
|
4743
4743
|
// Support delayed initialization of FirebaseAuth. This allows our
|
4744
4744
|
// customers to initialize the RTDB SDK before initializing Firebase
|
4745
4745
|
// Auth and ensures that all requests are authenticated if a token
|
4746
|
-
// becomes available before the
|
4746
|
+
// becomes available before the timeout below expires.
|
4747
4747
|
setTimeout(function () {
|
4748
4748
|
if (_this.auth_) {
|
4749
4749
|
_this.getToken(forceRefresh).then(resolve, reject);
|
@@ -5237,7 +5237,7 @@ var BrowserPollConnection = /** @class */ (function () {
|
|
5237
5237
|
*********************************************************************************************/
|
5238
5238
|
var FirebaseIFrameScriptHolder = /** @class */ (function () {
|
5239
5239
|
/**
|
5240
|
-
* @param commandCB - The callback to be called when control commands are
|
5240
|
+
* @param commandCB - The callback to be called when control commands are received from the server.
|
5241
5241
|
* @param onMessageCB - The callback to be triggered when responses arrive from the server.
|
5242
5242
|
* @param onDisconnect - The callback to be triggered when this tag holder is closed
|
5243
5243
|
* @param urlFn - A function that provides the URL of the endpoint to send data to.
|
@@ -13997,7 +13997,7 @@ function treeHasChildren(tree) {
|
|
13997
13997
|
return tree.node.childCount > 0;
|
13998
13998
|
}
|
13999
13999
|
/**
|
14000
|
-
* @returns
|
14000
|
+
* @returns Whether the tree is empty (no value or children).
|
14001
14001
|
*/
|
14002
14002
|
function treeIsEmpty(tree) {
|
14003
14003
|
return treeGetValue(tree) === undefined && !treeHasChildren(tree);
|
@@ -16408,7 +16408,7 @@ function push(parent, value) {
|
|
16408
16408
|
// then() and catch() methods and is used as the return value of push(). The
|
16409
16409
|
// second remains a regular Reference and is used as the fulfilled value of
|
16410
16410
|
// the first ThennableReference.
|
16411
|
-
var
|
16411
|
+
var thenablePushRef = child(parent, name);
|
16412
16412
|
var pushRef = child(parent, name);
|
16413
16413
|
var promise;
|
16414
16414
|
if (value != null) {
|
@@ -16417,9 +16417,9 @@ function push(parent, value) {
|
|
16417
16417
|
else {
|
16418
16418
|
promise = Promise.resolve(pushRef);
|
16419
16419
|
}
|
16420
|
-
|
16421
|
-
|
16422
|
-
return
|
16420
|
+
thenablePushRef.then = promise.then.bind(promise);
|
16421
|
+
thenablePushRef.catch = promise.then.bind(promise, undefined);
|
16422
|
+
return thenablePushRef;
|
16423
16423
|
}
|
16424
16424
|
/**
|
16425
16425
|
* Removes the data at this Database location.
|