@firebase/database 1.1.3-eap-crashlytics.06423a1af → 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.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
|
|
|
8
8
|
var logger$1 = require('@firebase/logger');
|
|
9
9
|
|
|
10
10
|
const name = "@firebase/database";
|
|
11
|
-
const version = "1.1.3-eap-crashlytics.
|
|
11
|
+
const version = "1.1.3-eap-crashlytics.659b578fb";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
@@ -10357,15 +10357,12 @@ function treeForEachChild(tree, action) {
|
|
|
10357
10357
|
* parent.
|
|
10358
10358
|
*/
|
|
10359
10359
|
function treeForEachDescendant(tree, action, includeSelf, childrenFirst) {
|
|
10360
|
-
if (includeSelf &&
|
|
10360
|
+
if (includeSelf && true) {
|
|
10361
10361
|
action(tree);
|
|
10362
10362
|
}
|
|
10363
10363
|
treeForEachChild(tree, child => {
|
|
10364
|
-
treeForEachDescendant(child, action, true
|
|
10364
|
+
treeForEachDescendant(child, action, true);
|
|
10365
10365
|
});
|
|
10366
|
-
if (includeSelf && childrenFirst) {
|
|
10367
|
-
action(tree);
|
|
10368
|
-
}
|
|
10369
10366
|
}
|
|
10370
10367
|
/**
|
|
10371
10368
|
* Calls action on each ancestor node.
|
|
@@ -10376,7 +10373,7 @@ function treeForEachDescendant(tree, action, includeSelf, childrenFirst) {
|
|
|
10376
10373
|
* @returns true if the action callback returned true.
|
|
10377
10374
|
*/
|
|
10378
10375
|
function treeForEachAncestor(tree, action, includeSelf) {
|
|
10379
|
-
let node =
|
|
10376
|
+
let node = tree.parent;
|
|
10380
10377
|
while (node !== null) {
|
|
10381
10378
|
if (action(node)) {
|
|
10382
10379
|
return true;
|
|
@@ -10595,9 +10592,6 @@ const validateFirebaseMergePaths = function (errorPrefix, mergePaths) {
|
|
|
10595
10592
|
* must be an object - e.g. for firebase.update()).
|
|
10596
10593
|
*/
|
|
10597
10594
|
const validateFirebaseMergeDataArg = function (fnName, data, path, optional) {
|
|
10598
|
-
if (optional && data === undefined) {
|
|
10599
|
-
return;
|
|
10600
|
-
}
|
|
10601
10595
|
const errorPrefix = util.errorPrefix(fnName, 'values');
|
|
10602
10596
|
if (!(data && typeof data === 'object') || Array.isArray(data)) {
|
|
10603
10597
|
throw new Error(errorPrefix + ' must be an object containing the children to replace.');
|
|
@@ -10620,9 +10614,6 @@ const validateFirebaseMergeDataArg = function (fnName, data, path, optional) {
|
|
|
10620
10614
|
validateFirebaseMergePaths(errorPrefix, mergePaths);
|
|
10621
10615
|
};
|
|
10622
10616
|
const validatePriority = function (fnName, priority, optional) {
|
|
10623
|
-
if (optional && priority === undefined) {
|
|
10624
|
-
return;
|
|
10625
|
-
}
|
|
10626
10617
|
if (isInvalidJSONNumber(priority)) {
|
|
10627
10618
|
throw new Error(util.errorPrefix(fnName, 'priority') +
|
|
10628
10619
|
'is ' +
|
|
@@ -10638,7 +10629,7 @@ const validatePriority = function (fnName, priority, optional) {
|
|
|
10638
10629
|
}
|
|
10639
10630
|
};
|
|
10640
10631
|
const validateKey = function (fnName, argumentName, key, optional) {
|
|
10641
|
-
if (
|
|
10632
|
+
if (key === undefined) {
|
|
10642
10633
|
return;
|
|
10643
10634
|
}
|
|
10644
10635
|
if (!isValidKey(key)) {
|
|
@@ -12170,7 +12161,7 @@ class OnDisconnect {
|
|
|
12170
12161
|
setWithPriority(value, priority) {
|
|
12171
12162
|
validateWritablePath('OnDisconnect.setWithPriority', this._path);
|
|
12172
12163
|
validateFirebaseDataArg('OnDisconnect.setWithPriority', value, this._path, false);
|
|
12173
|
-
validatePriority('OnDisconnect.setWithPriority', priority
|
|
12164
|
+
validatePriority('OnDisconnect.setWithPriority', priority);
|
|
12174
12165
|
const deferred = new util.Deferred();
|
|
12175
12166
|
repoOnDisconnectSetWithPriority(this._repo, this._path, value, priority, deferred.wrapCallback(() => { }));
|
|
12176
12167
|
return deferred.promise;
|
|
@@ -12193,7 +12184,7 @@ class OnDisconnect {
|
|
|
12193
12184
|
*/
|
|
12194
12185
|
update(values) {
|
|
12195
12186
|
validateWritablePath('OnDisconnect.update', this._path);
|
|
12196
|
-
validateFirebaseMergeDataArg('OnDisconnect.update', values, this._path
|
|
12187
|
+
validateFirebaseMergeDataArg('OnDisconnect.update', values, this._path);
|
|
12197
12188
|
const deferred = new util.Deferred();
|
|
12198
12189
|
repoOnDisconnectUpdate(this._repo, this._path, values, deferred.wrapCallback(() => { }));
|
|
12199
12190
|
return deferred.promise;
|
|
@@ -12744,7 +12735,7 @@ function set(ref, value) {
|
|
|
12744
12735
|
function setPriority(ref, priority) {
|
|
12745
12736
|
ref = util.getModularInstance(ref);
|
|
12746
12737
|
validateWritablePath('setPriority', ref._path);
|
|
12747
|
-
validatePriority('setPriority', priority
|
|
12738
|
+
validatePriority('setPriority', priority);
|
|
12748
12739
|
const deferred = new util.Deferred();
|
|
12749
12740
|
repoSetWithPriority(ref._repo, pathChild(ref._path, '.priority'), priority, null, deferred.wrapCallback(() => { }));
|
|
12750
12741
|
return deferred.promise;
|
|
@@ -12767,7 +12758,7 @@ function setPriority(ref, priority) {
|
|
|
12767
12758
|
function setWithPriority(ref, value, priority) {
|
|
12768
12759
|
validateWritablePath('setWithPriority', ref._path);
|
|
12769
12760
|
validateFirebaseDataArg('setWithPriority', value, ref._path, false);
|
|
12770
|
-
validatePriority('setWithPriority', priority
|
|
12761
|
+
validatePriority('setWithPriority', priority);
|
|
12771
12762
|
if (ref.key === '.length' || ref.key === '.keys') {
|
|
12772
12763
|
throw 'setWithPriority failed: ' + ref.key + ' is a read-only object.';
|
|
12773
12764
|
}
|
|
@@ -12811,7 +12802,7 @@ function setWithPriority(ref, value, priority) {
|
|
|
12811
12802
|
* @returns Resolves when update on server is complete.
|
|
12812
12803
|
*/
|
|
12813
12804
|
function update(ref, values) {
|
|
12814
|
-
validateFirebaseMergeDataArg('update', values, ref._path
|
|
12805
|
+
validateFirebaseMergeDataArg('update', values, ref._path);
|
|
12815
12806
|
const deferred = new util.Deferred();
|
|
12816
12807
|
repoUpdate(ref._repo, ref._path, values, deferred.wrapCallback(() => { }));
|
|
12817
12808
|
return deferred.promise;
|
|
@@ -13057,7 +13048,7 @@ class QueryEndAtConstraint extends QueryConstraint {
|
|
|
13057
13048
|
* value, or priority.
|
|
13058
13049
|
*/
|
|
13059
13050
|
function endAt(value, key) {
|
|
13060
|
-
validateKey('endAt', 'key', key
|
|
13051
|
+
validateKey('endAt', 'key', key);
|
|
13061
13052
|
return new QueryEndAtConstraint(value, key);
|
|
13062
13053
|
}
|
|
13063
13054
|
class QueryEndBeforeConstraint extends QueryConstraint {
|
|
@@ -13099,7 +13090,7 @@ class QueryEndBeforeConstraint extends QueryConstraint {
|
|
|
13099
13090
|
* child, value, or priority.
|
|
13100
13091
|
*/
|
|
13101
13092
|
function endBefore(value, key) {
|
|
13102
|
-
validateKey('endBefore', 'key', key
|
|
13093
|
+
validateKey('endBefore', 'key', key);
|
|
13103
13094
|
return new QueryEndBeforeConstraint(value, key);
|
|
13104
13095
|
}
|
|
13105
13096
|
class QueryStartAtConstraint extends QueryConstraint {
|
|
@@ -13144,7 +13135,7 @@ class QueryStartAtConstraint extends QueryConstraint {
|
|
|
13144
13135
|
* ordering by child, value, or priority.
|
|
13145
13136
|
*/
|
|
13146
13137
|
function startAt(value = null, key) {
|
|
13147
|
-
validateKey('startAt', 'key', key
|
|
13138
|
+
validateKey('startAt', 'key', key);
|
|
13148
13139
|
return new QueryStartAtConstraint(value, key);
|
|
13149
13140
|
}
|
|
13150
13141
|
class QueryStartAfterConstraint extends QueryConstraint {
|
|
@@ -13185,7 +13176,7 @@ class QueryStartAfterConstraint extends QueryConstraint {
|
|
|
13185
13176
|
* ordering by child, value, or priority.
|
|
13186
13177
|
*/
|
|
13187
13178
|
function startAfter(value, key) {
|
|
13188
|
-
validateKey('startAfter', 'key', key
|
|
13179
|
+
validateKey('startAfter', 'key', key);
|
|
13189
13180
|
return new QueryStartAfterConstraint(value, key);
|
|
13190
13181
|
}
|
|
13191
13182
|
class QueryLimitToFirstConstraint extends QueryConstraint {
|
|
@@ -13430,7 +13421,7 @@ class QueryEqualToValueConstraint extends QueryConstraint {
|
|
|
13430
13421
|
* child, value, or priority.
|
|
13431
13422
|
*/
|
|
13432
13423
|
function equalTo(value, key) {
|
|
13433
|
-
validateKey('equalTo', 'key', key
|
|
13424
|
+
validateKey('equalTo', 'key', key);
|
|
13434
13425
|
return new QueryEqualToValueConstraint(value, key);
|
|
13435
13426
|
}
|
|
13436
13427
|
/**
|
|
@@ -13474,6 +13465,7 @@ syncTreeSetReferenceConstructor(ReferenceImpl);
|
|
|
13474
13465
|
* See the License for the specific language governing permissions and
|
|
13475
13466
|
* limitations under the License.
|
|
13476
13467
|
*/
|
|
13468
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
13477
13469
|
/**
|
|
13478
13470
|
* This variable is also defined in the firebase Node.js Admin SDK. Before
|
|
13479
13471
|
* modifying this definition, consult the definition in:
|
|
@@ -13778,6 +13770,7 @@ function enableLogging(logger, persistent) {
|
|
|
13778
13770
|
* See the License for the specific language governing permissions and
|
|
13779
13771
|
* limitations under the License.
|
|
13780
13772
|
*/
|
|
13773
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
13781
13774
|
function registerDatabase(variant) {
|
|
13782
13775
|
setSDKVersion(app.SDK_VERSION);
|
|
13783
13776
|
app._registerComponent(new component.Component('database', (container, { instanceIdentifier: url }) => {
|
|
@@ -13946,7 +13939,6 @@ transactionUpdate, options) {
|
|
|
13946
13939
|
* See the License for the specific language governing permissions and
|
|
13947
13940
|
* limitations under the License.
|
|
13948
13941
|
*/
|
|
13949
|
-
PersistentConnection;
|
|
13950
13942
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13951
13943
|
PersistentConnection.prototype.simpleListen = function (pathString, onComplete) {
|
|
13952
13944
|
this.sendRequest('q', { p: pathString }, onComplete);
|
|
@@ -13955,8 +13947,6 @@ PersistentConnection.prototype.simpleListen = function (pathString, onComplete)
|
|
|
13955
13947
|
PersistentConnection.prototype.echo = function (data, onEcho) {
|
|
13956
13948
|
this.sendRequest('echo', { d: data }, onEcho);
|
|
13957
13949
|
};
|
|
13958
|
-
// RealTimeConnection properties that we use in tests.
|
|
13959
|
-
Connection;
|
|
13960
13950
|
/**
|
|
13961
13951
|
* @internal
|
|
13962
13952
|
*/
|
|
@@ -13972,7 +13962,6 @@ const hijackHash = function (newHash) {
|
|
|
13972
13962
|
PersistentConnection.prototype.put = oldPut;
|
|
13973
13963
|
};
|
|
13974
13964
|
};
|
|
13975
|
-
RepoInfo;
|
|
13976
13965
|
/**
|
|
13977
13966
|
* Forces the RepoManager to create Repos that use ReadonlyRestClient instead of PersistentConnection.
|
|
13978
13967
|
* @internal
|