@firebase/database 1.1.3-eap-crashlytics.558ee841d → 1.1.3-eap-crashlytics.659b578fb
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 +17 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +19 -30
- package/dist/index.esm.js.map +1 -1
- package/dist/index.node.cjs.js +23 -33
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +16 -32
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +24 -30
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +12 -12
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _isFirebaseServerApp, _getProvider, getApp, SDK_VERSION as SDK_VERSION$1
|
|
1
|
+
import { _isFirebaseServerApp, _getProvider, getApp, _registerComponent, registerVersion, SDK_VERSION as SDK_VERSION$1 } from '@firebase/app';
|
|
2
2
|
import { Component, ComponentContainer, Provider } from '@firebase/component';
|
|
3
|
-
import { stringify, jsonEval, contains, assert,
|
|
3
|
+
import { stringify, jsonEval, contains, assert, stringToByteArray, Sha1, base64, isNodeSdk, deepCopy, base64Encode, isMobileCordova, stringLength, Deferred, safeGet, isAdmin, isValidFormat, isEmpty, isReactNative, assertionError, map, querystring, errorPrefix, getModularInstance, deepEqual, createMockUserToken, isCloudWorkstation, pingServer, getDefaultEmulatorHostnameAndPort } from '@firebase/util';
|
|
4
4
|
import { Logger, LogLevel } from '@firebase/logger';
|
|
5
5
|
|
|
6
6
|
const name = "@firebase/database";
|
|
7
|
-
const version = "1.1.3-eap-crashlytics.
|
|
7
|
+
const version = "1.1.3-eap-crashlytics.659b578fb";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -10353,15 +10353,12 @@ function treeForEachChild(tree, action) {
|
|
|
10353
10353
|
* parent.
|
|
10354
10354
|
*/
|
|
10355
10355
|
function treeForEachDescendant(tree, action, includeSelf, childrenFirst) {
|
|
10356
|
-
if (includeSelf &&
|
|
10356
|
+
if (includeSelf && true) {
|
|
10357
10357
|
action(tree);
|
|
10358
10358
|
}
|
|
10359
10359
|
treeForEachChild(tree, child => {
|
|
10360
|
-
treeForEachDescendant(child, action, true
|
|
10360
|
+
treeForEachDescendant(child, action, true);
|
|
10361
10361
|
});
|
|
10362
|
-
if (includeSelf && childrenFirst) {
|
|
10363
|
-
action(tree);
|
|
10364
|
-
}
|
|
10365
10362
|
}
|
|
10366
10363
|
/**
|
|
10367
10364
|
* Calls action on each ancestor node.
|
|
@@ -10372,7 +10369,7 @@ function treeForEachDescendant(tree, action, includeSelf, childrenFirst) {
|
|
|
10372
10369
|
* @returns true if the action callback returned true.
|
|
10373
10370
|
*/
|
|
10374
10371
|
function treeForEachAncestor(tree, action, includeSelf) {
|
|
10375
|
-
let node =
|
|
10372
|
+
let node = tree.parent;
|
|
10376
10373
|
while (node !== null) {
|
|
10377
10374
|
if (action(node)) {
|
|
10378
10375
|
return true;
|
|
@@ -10591,9 +10588,6 @@ const validateFirebaseMergePaths = function (errorPrefix, mergePaths) {
|
|
|
10591
10588
|
* must be an object - e.g. for firebase.update()).
|
|
10592
10589
|
*/
|
|
10593
10590
|
const validateFirebaseMergeDataArg = function (fnName, data, path, optional) {
|
|
10594
|
-
if (optional && data === undefined) {
|
|
10595
|
-
return;
|
|
10596
|
-
}
|
|
10597
10591
|
const errorPrefix$1 = errorPrefix(fnName, 'values');
|
|
10598
10592
|
if (!(data && typeof data === 'object') || Array.isArray(data)) {
|
|
10599
10593
|
throw new Error(errorPrefix$1 + ' must be an object containing the children to replace.');
|
|
@@ -10616,9 +10610,6 @@ const validateFirebaseMergeDataArg = function (fnName, data, path, optional) {
|
|
|
10616
10610
|
validateFirebaseMergePaths(errorPrefix$1, mergePaths);
|
|
10617
10611
|
};
|
|
10618
10612
|
const validatePriority = function (fnName, priority, optional) {
|
|
10619
|
-
if (optional && priority === undefined) {
|
|
10620
|
-
return;
|
|
10621
|
-
}
|
|
10622
10613
|
if (isInvalidJSONNumber(priority)) {
|
|
10623
10614
|
throw new Error(errorPrefix(fnName, 'priority') +
|
|
10624
10615
|
'is ' +
|
|
@@ -10634,7 +10625,7 @@ const validatePriority = function (fnName, priority, optional) {
|
|
|
10634
10625
|
}
|
|
10635
10626
|
};
|
|
10636
10627
|
const validateKey = function (fnName, argumentName, key, optional) {
|
|
10637
|
-
if (
|
|
10628
|
+
if (key === undefined) {
|
|
10638
10629
|
return;
|
|
10639
10630
|
}
|
|
10640
10631
|
if (!isValidKey(key)) {
|
|
@@ -12166,7 +12157,7 @@ class OnDisconnect {
|
|
|
12166
12157
|
setWithPriority(value, priority) {
|
|
12167
12158
|
validateWritablePath('OnDisconnect.setWithPriority', this._path);
|
|
12168
12159
|
validateFirebaseDataArg('OnDisconnect.setWithPriority', value, this._path, false);
|
|
12169
|
-
validatePriority('OnDisconnect.setWithPriority', priority
|
|
12160
|
+
validatePriority('OnDisconnect.setWithPriority', priority);
|
|
12170
12161
|
const deferred = new Deferred();
|
|
12171
12162
|
repoOnDisconnectSetWithPriority(this._repo, this._path, value, priority, deferred.wrapCallback(() => { }));
|
|
12172
12163
|
return deferred.promise;
|
|
@@ -12189,7 +12180,7 @@ class OnDisconnect {
|
|
|
12189
12180
|
*/
|
|
12190
12181
|
update(values) {
|
|
12191
12182
|
validateWritablePath('OnDisconnect.update', this._path);
|
|
12192
|
-
validateFirebaseMergeDataArg('OnDisconnect.update', values, this._path
|
|
12183
|
+
validateFirebaseMergeDataArg('OnDisconnect.update', values, this._path);
|
|
12193
12184
|
const deferred = new Deferred();
|
|
12194
12185
|
repoOnDisconnectUpdate(this._repo, this._path, values, deferred.wrapCallback(() => { }));
|
|
12195
12186
|
return deferred.promise;
|
|
@@ -12740,7 +12731,7 @@ function set(ref, value) {
|
|
|
12740
12731
|
function setPriority(ref, priority) {
|
|
12741
12732
|
ref = getModularInstance(ref);
|
|
12742
12733
|
validateWritablePath('setPriority', ref._path);
|
|
12743
|
-
validatePriority('setPriority', priority
|
|
12734
|
+
validatePriority('setPriority', priority);
|
|
12744
12735
|
const deferred = new Deferred();
|
|
12745
12736
|
repoSetWithPriority(ref._repo, pathChild(ref._path, '.priority'), priority, null, deferred.wrapCallback(() => { }));
|
|
12746
12737
|
return deferred.promise;
|
|
@@ -12763,7 +12754,7 @@ function setPriority(ref, priority) {
|
|
|
12763
12754
|
function setWithPriority(ref, value, priority) {
|
|
12764
12755
|
validateWritablePath('setWithPriority', ref._path);
|
|
12765
12756
|
validateFirebaseDataArg('setWithPriority', value, ref._path, false);
|
|
12766
|
-
validatePriority('setWithPriority', priority
|
|
12757
|
+
validatePriority('setWithPriority', priority);
|
|
12767
12758
|
if (ref.key === '.length' || ref.key === '.keys') {
|
|
12768
12759
|
throw 'setWithPriority failed: ' + ref.key + ' is a read-only object.';
|
|
12769
12760
|
}
|
|
@@ -12807,7 +12798,7 @@ function setWithPriority(ref, value, priority) {
|
|
|
12807
12798
|
* @returns Resolves when update on server is complete.
|
|
12808
12799
|
*/
|
|
12809
12800
|
function update(ref, values) {
|
|
12810
|
-
validateFirebaseMergeDataArg('update', values, ref._path
|
|
12801
|
+
validateFirebaseMergeDataArg('update', values, ref._path);
|
|
12811
12802
|
const deferred = new Deferred();
|
|
12812
12803
|
repoUpdate(ref._repo, ref._path, values, deferred.wrapCallback(() => { }));
|
|
12813
12804
|
return deferred.promise;
|
|
@@ -13053,7 +13044,7 @@ class QueryEndAtConstraint extends QueryConstraint {
|
|
|
13053
13044
|
* value, or priority.
|
|
13054
13045
|
*/
|
|
13055
13046
|
function endAt(value, key) {
|
|
13056
|
-
validateKey('endAt', 'key', key
|
|
13047
|
+
validateKey('endAt', 'key', key);
|
|
13057
13048
|
return new QueryEndAtConstraint(value, key);
|
|
13058
13049
|
}
|
|
13059
13050
|
class QueryEndBeforeConstraint extends QueryConstraint {
|
|
@@ -13095,7 +13086,7 @@ class QueryEndBeforeConstraint extends QueryConstraint {
|
|
|
13095
13086
|
* child, value, or priority.
|
|
13096
13087
|
*/
|
|
13097
13088
|
function endBefore(value, key) {
|
|
13098
|
-
validateKey('endBefore', 'key', key
|
|
13089
|
+
validateKey('endBefore', 'key', key);
|
|
13099
13090
|
return new QueryEndBeforeConstraint(value, key);
|
|
13100
13091
|
}
|
|
13101
13092
|
class QueryStartAtConstraint extends QueryConstraint {
|
|
@@ -13140,7 +13131,7 @@ class QueryStartAtConstraint extends QueryConstraint {
|
|
|
13140
13131
|
* ordering by child, value, or priority.
|
|
13141
13132
|
*/
|
|
13142
13133
|
function startAt(value = null, key) {
|
|
13143
|
-
validateKey('startAt', 'key', key
|
|
13134
|
+
validateKey('startAt', 'key', key);
|
|
13144
13135
|
return new QueryStartAtConstraint(value, key);
|
|
13145
13136
|
}
|
|
13146
13137
|
class QueryStartAfterConstraint extends QueryConstraint {
|
|
@@ -13181,7 +13172,7 @@ class QueryStartAfterConstraint extends QueryConstraint {
|
|
|
13181
13172
|
* ordering by child, value, or priority.
|
|
13182
13173
|
*/
|
|
13183
13174
|
function startAfter(value, key) {
|
|
13184
|
-
validateKey('startAfter', 'key', key
|
|
13175
|
+
validateKey('startAfter', 'key', key);
|
|
13185
13176
|
return new QueryStartAfterConstraint(value, key);
|
|
13186
13177
|
}
|
|
13187
13178
|
class QueryLimitToFirstConstraint extends QueryConstraint {
|
|
@@ -13426,7 +13417,7 @@ class QueryEqualToValueConstraint extends QueryConstraint {
|
|
|
13426
13417
|
* child, value, or priority.
|
|
13427
13418
|
*/
|
|
13428
13419
|
function equalTo(value, key) {
|
|
13429
|
-
validateKey('equalTo', 'key', key
|
|
13420
|
+
validateKey('equalTo', 'key', key);
|
|
13430
13421
|
return new QueryEqualToValueConstraint(value, key);
|
|
13431
13422
|
}
|
|
13432
13423
|
/**
|
|
@@ -13470,6 +13461,7 @@ syncTreeSetReferenceConstructor(ReferenceImpl);
|
|
|
13470
13461
|
* See the License for the specific language governing permissions and
|
|
13471
13462
|
* limitations under the License.
|
|
13472
13463
|
*/
|
|
13464
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
13473
13465
|
/**
|
|
13474
13466
|
* This variable is also defined in the firebase Node.js Admin SDK. Before
|
|
13475
13467
|
* modifying this definition, consult the definition in:
|
|
@@ -13774,6 +13766,7 @@ function enableLogging(logger, persistent) {
|
|
|
13774
13766
|
* See the License for the specific language governing permissions and
|
|
13775
13767
|
* limitations under the License.
|
|
13776
13768
|
*/
|
|
13769
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
13777
13770
|
function registerDatabase(variant) {
|
|
13778
13771
|
setSDKVersion(SDK_VERSION$1);
|
|
13779
13772
|
_registerComponent(new Component('database', (container, { instanceIdentifier: url }) => {
|
|
@@ -13942,7 +13935,6 @@ transactionUpdate, options) {
|
|
|
13942
13935
|
* See the License for the specific language governing permissions and
|
|
13943
13936
|
* limitations under the License.
|
|
13944
13937
|
*/
|
|
13945
|
-
PersistentConnection;
|
|
13946
13938
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13947
13939
|
PersistentConnection.prototype.simpleListen = function (pathString, onComplete) {
|
|
13948
13940
|
this.sendRequest('q', { p: pathString }, onComplete);
|
|
@@ -13951,8 +13943,6 @@ PersistentConnection.prototype.simpleListen = function (pathString, onComplete)
|
|
|
13951
13943
|
PersistentConnection.prototype.echo = function (data, onEcho) {
|
|
13952
13944
|
this.sendRequest('echo', { d: data }, onEcho);
|
|
13953
13945
|
};
|
|
13954
|
-
// RealTimeConnection properties that we use in tests.
|
|
13955
|
-
Connection;
|
|
13956
13946
|
/**
|
|
13957
13947
|
* @internal
|
|
13958
13948
|
*/
|
|
@@ -13968,7 +13958,6 @@ const hijackHash = function (newHash) {
|
|
|
13968
13958
|
PersistentConnection.prototype.put = oldPut;
|
|
13969
13959
|
};
|
|
13970
13960
|
};
|
|
13971
|
-
RepoInfo;
|
|
13972
13961
|
/**
|
|
13973
13962
|
* Forces the RepoManager to create Repos that use ReadonlyRestClient instead of PersistentConnection.
|
|
13974
13963
|
* @internal
|