@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.standalone.js
CHANGED
|
@@ -8,10 +8,6 @@ var logger$1 = require('@firebase/logger');
|
|
|
8
8
|
var app = require('@firebase/app');
|
|
9
9
|
var component = require('@firebase/component');
|
|
10
10
|
|
|
11
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
-
|
|
13
|
-
var Websocket__default = /*#__PURE__*/_interopDefaultLegacy(Websocket);
|
|
14
|
-
|
|
15
11
|
/**
|
|
16
12
|
* @license
|
|
17
13
|
* Copyright 2017 Google LLC
|
|
@@ -10362,15 +10358,12 @@ function treeForEachChild(tree, action) {
|
|
|
10362
10358
|
* parent.
|
|
10363
10359
|
*/
|
|
10364
10360
|
function treeForEachDescendant(tree, action, includeSelf, childrenFirst) {
|
|
10365
|
-
if (includeSelf &&
|
|
10361
|
+
if (includeSelf && true) {
|
|
10366
10362
|
action(tree);
|
|
10367
10363
|
}
|
|
10368
10364
|
treeForEachChild(tree, child => {
|
|
10369
|
-
treeForEachDescendant(child, action, true
|
|
10365
|
+
treeForEachDescendant(child, action, true);
|
|
10370
10366
|
});
|
|
10371
|
-
if (includeSelf && childrenFirst) {
|
|
10372
|
-
action(tree);
|
|
10373
|
-
}
|
|
10374
10367
|
}
|
|
10375
10368
|
/**
|
|
10376
10369
|
* Calls action on each ancestor node.
|
|
@@ -10381,7 +10374,7 @@ function treeForEachDescendant(tree, action, includeSelf, childrenFirst) {
|
|
|
10381
10374
|
* @returns true if the action callback returned true.
|
|
10382
10375
|
*/
|
|
10383
10376
|
function treeForEachAncestor(tree, action, includeSelf) {
|
|
10384
|
-
let node =
|
|
10377
|
+
let node = tree.parent;
|
|
10385
10378
|
while (node !== null) {
|
|
10386
10379
|
if (action(node)) {
|
|
10387
10380
|
return true;
|
|
@@ -10600,9 +10593,6 @@ const validateFirebaseMergePaths = function (errorPrefix, mergePaths) {
|
|
|
10600
10593
|
* must be an object - e.g. for firebase.update()).
|
|
10601
10594
|
*/
|
|
10602
10595
|
const validateFirebaseMergeDataArg = function (fnName, data, path, optional) {
|
|
10603
|
-
if (optional && data === undefined) {
|
|
10604
|
-
return;
|
|
10605
|
-
}
|
|
10606
10596
|
const errorPrefix = util.errorPrefix(fnName, 'values');
|
|
10607
10597
|
if (!(data && typeof data === 'object') || Array.isArray(data)) {
|
|
10608
10598
|
throw new Error(errorPrefix + ' must be an object containing the children to replace.');
|
|
@@ -10625,9 +10615,6 @@ const validateFirebaseMergeDataArg = function (fnName, data, path, optional) {
|
|
|
10625
10615
|
validateFirebaseMergePaths(errorPrefix, mergePaths);
|
|
10626
10616
|
};
|
|
10627
10617
|
const validatePriority = function (fnName, priority, optional) {
|
|
10628
|
-
if (optional && priority === undefined) {
|
|
10629
|
-
return;
|
|
10630
|
-
}
|
|
10631
10618
|
if (isInvalidJSONNumber(priority)) {
|
|
10632
10619
|
throw new Error(util.errorPrefix(fnName, 'priority') +
|
|
10633
10620
|
'is ' +
|
|
@@ -10643,7 +10630,7 @@ const validatePriority = function (fnName, priority, optional) {
|
|
|
10643
10630
|
}
|
|
10644
10631
|
};
|
|
10645
10632
|
const validateKey = function (fnName, argumentName, key, optional) {
|
|
10646
|
-
if (
|
|
10633
|
+
if (key === undefined) {
|
|
10647
10634
|
return;
|
|
10648
10635
|
}
|
|
10649
10636
|
if (!isValidKey(key)) {
|
|
@@ -12175,7 +12162,7 @@ class OnDisconnect {
|
|
|
12175
12162
|
setWithPriority(value, priority) {
|
|
12176
12163
|
validateWritablePath('OnDisconnect.setWithPriority', this._path);
|
|
12177
12164
|
validateFirebaseDataArg('OnDisconnect.setWithPriority', value, this._path, false);
|
|
12178
|
-
validatePriority('OnDisconnect.setWithPriority', priority
|
|
12165
|
+
validatePriority('OnDisconnect.setWithPriority', priority);
|
|
12179
12166
|
const deferred = new util.Deferred();
|
|
12180
12167
|
repoOnDisconnectSetWithPriority(this._repo, this._path, value, priority, deferred.wrapCallback(() => { }));
|
|
12181
12168
|
return deferred.promise;
|
|
@@ -12198,7 +12185,7 @@ class OnDisconnect {
|
|
|
12198
12185
|
*/
|
|
12199
12186
|
update(values) {
|
|
12200
12187
|
validateWritablePath('OnDisconnect.update', this._path);
|
|
12201
|
-
validateFirebaseMergeDataArg('OnDisconnect.update', values, this._path
|
|
12188
|
+
validateFirebaseMergeDataArg('OnDisconnect.update', values, this._path);
|
|
12202
12189
|
const deferred = new util.Deferred();
|
|
12203
12190
|
repoOnDisconnectUpdate(this._repo, this._path, values, deferred.wrapCallback(() => { }));
|
|
12204
12191
|
return deferred.promise;
|
|
@@ -12749,7 +12736,7 @@ function set(ref, value) {
|
|
|
12749
12736
|
function setPriority(ref, priority) {
|
|
12750
12737
|
ref = util.getModularInstance(ref);
|
|
12751
12738
|
validateWritablePath('setPriority', ref._path);
|
|
12752
|
-
validatePriority('setPriority', priority
|
|
12739
|
+
validatePriority('setPriority', priority);
|
|
12753
12740
|
const deferred = new util.Deferred();
|
|
12754
12741
|
repoSetWithPriority(ref._repo, pathChild(ref._path, '.priority'), priority, null, deferred.wrapCallback(() => { }));
|
|
12755
12742
|
return deferred.promise;
|
|
@@ -12772,7 +12759,7 @@ function setPriority(ref, priority) {
|
|
|
12772
12759
|
function setWithPriority(ref, value, priority) {
|
|
12773
12760
|
validateWritablePath('setWithPriority', ref._path);
|
|
12774
12761
|
validateFirebaseDataArg('setWithPriority', value, ref._path, false);
|
|
12775
|
-
validatePriority('setWithPriority', priority
|
|
12762
|
+
validatePriority('setWithPriority', priority);
|
|
12776
12763
|
if (ref.key === '.length' || ref.key === '.keys') {
|
|
12777
12764
|
throw 'setWithPriority failed: ' + ref.key + ' is a read-only object.';
|
|
12778
12765
|
}
|
|
@@ -12816,7 +12803,7 @@ function setWithPriority(ref, value, priority) {
|
|
|
12816
12803
|
* @returns Resolves when update on server is complete.
|
|
12817
12804
|
*/
|
|
12818
12805
|
function update(ref, values) {
|
|
12819
|
-
validateFirebaseMergeDataArg('update', values, ref._path
|
|
12806
|
+
validateFirebaseMergeDataArg('update', values, ref._path);
|
|
12820
12807
|
const deferred = new util.Deferred();
|
|
12821
12808
|
repoUpdate(ref._repo, ref._path, values, deferred.wrapCallback(() => { }));
|
|
12822
12809
|
return deferred.promise;
|
|
@@ -13062,7 +13049,7 @@ class QueryEndAtConstraint extends QueryConstraint {
|
|
|
13062
13049
|
* value, or priority.
|
|
13063
13050
|
*/
|
|
13064
13051
|
function endAt(value, key) {
|
|
13065
|
-
validateKey('endAt', 'key', key
|
|
13052
|
+
validateKey('endAt', 'key', key);
|
|
13066
13053
|
return new QueryEndAtConstraint(value, key);
|
|
13067
13054
|
}
|
|
13068
13055
|
class QueryEndBeforeConstraint extends QueryConstraint {
|
|
@@ -13104,7 +13091,7 @@ class QueryEndBeforeConstraint extends QueryConstraint {
|
|
|
13104
13091
|
* child, value, or priority.
|
|
13105
13092
|
*/
|
|
13106
13093
|
function endBefore(value, key) {
|
|
13107
|
-
validateKey('endBefore', 'key', key
|
|
13094
|
+
validateKey('endBefore', 'key', key);
|
|
13108
13095
|
return new QueryEndBeforeConstraint(value, key);
|
|
13109
13096
|
}
|
|
13110
13097
|
class QueryStartAtConstraint extends QueryConstraint {
|
|
@@ -13149,7 +13136,7 @@ class QueryStartAtConstraint extends QueryConstraint {
|
|
|
13149
13136
|
* ordering by child, value, or priority.
|
|
13150
13137
|
*/
|
|
13151
13138
|
function startAt(value = null, key) {
|
|
13152
|
-
validateKey('startAt', 'key', key
|
|
13139
|
+
validateKey('startAt', 'key', key);
|
|
13153
13140
|
return new QueryStartAtConstraint(value, key);
|
|
13154
13141
|
}
|
|
13155
13142
|
class QueryStartAfterConstraint extends QueryConstraint {
|
|
@@ -13190,7 +13177,7 @@ class QueryStartAfterConstraint extends QueryConstraint {
|
|
|
13190
13177
|
* ordering by child, value, or priority.
|
|
13191
13178
|
*/
|
|
13192
13179
|
function startAfter(value, key) {
|
|
13193
|
-
validateKey('startAfter', 'key', key
|
|
13180
|
+
validateKey('startAfter', 'key', key);
|
|
13194
13181
|
return new QueryStartAfterConstraint(value, key);
|
|
13195
13182
|
}
|
|
13196
13183
|
class QueryLimitToFirstConstraint extends QueryConstraint {
|
|
@@ -13435,7 +13422,7 @@ class QueryEqualToValueConstraint extends QueryConstraint {
|
|
|
13435
13422
|
* child, value, or priority.
|
|
13436
13423
|
*/
|
|
13437
13424
|
function equalTo(value, key) {
|
|
13438
|
-
validateKey('equalTo', 'key', key
|
|
13425
|
+
validateKey('equalTo', 'key', key);
|
|
13439
13426
|
return new QueryEqualToValueConstraint(value, key);
|
|
13440
13427
|
}
|
|
13441
13428
|
/**
|
|
@@ -13479,6 +13466,7 @@ syncTreeSetReferenceConstructor(ReferenceImpl);
|
|
|
13479
13466
|
* See the License for the specific language governing permissions and
|
|
13480
13467
|
* limitations under the License.
|
|
13481
13468
|
*/
|
|
13469
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
13482
13470
|
/**
|
|
13483
13471
|
* This variable is also defined in the firebase Node.js Admin SDK. Before
|
|
13484
13472
|
* modifying this definition, consult the definition in:
|
|
@@ -13899,7 +13887,6 @@ transactionUpdate, options) {
|
|
|
13899
13887
|
* See the License for the specific language governing permissions and
|
|
13900
13888
|
* limitations under the License.
|
|
13901
13889
|
*/
|
|
13902
|
-
PersistentConnection;
|
|
13903
13890
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13904
13891
|
PersistentConnection.prototype.simpleListen = function (pathString, onComplete) {
|
|
13905
13892
|
this.sendRequest('q', { p: pathString }, onComplete);
|
|
@@ -13908,8 +13895,6 @@ PersistentConnection.prototype.simpleListen = function (pathString, onComplete)
|
|
|
13908
13895
|
PersistentConnection.prototype.echo = function (data, onEcho) {
|
|
13909
13896
|
this.sendRequest('echo', { d: data }, onEcho);
|
|
13910
13897
|
};
|
|
13911
|
-
// RealTimeConnection properties that we use in tests.
|
|
13912
|
-
Connection;
|
|
13913
13898
|
/**
|
|
13914
13899
|
* @internal
|
|
13915
13900
|
*/
|
|
@@ -13925,7 +13910,6 @@ const hijackHash = function (newHash) {
|
|
|
13925
13910
|
PersistentConnection.prototype.put = oldPut;
|
|
13926
13911
|
};
|
|
13927
13912
|
};
|
|
13928
|
-
RepoInfo;
|
|
13929
13913
|
/**
|
|
13930
13914
|
* Forces the RepoManager to create Repos that use ReadonlyRestClient instead of PersistentConnection.
|
|
13931
13915
|
* @internal
|
|
@@ -13993,7 +13977,7 @@ function _initStandalone({ app, url, version, customAuthImpl, customAppCheckImpl
|
|
|
13993
13977
|
* See the License for the specific language governing permissions and
|
|
13994
13978
|
* limitations under the License.
|
|
13995
13979
|
*/
|
|
13996
|
-
setWebSocketImpl(
|
|
13980
|
+
setWebSocketImpl(Websocket.Client);
|
|
13997
13981
|
|
|
13998
13982
|
exports.DataSnapshot = DataSnapshot;
|
|
13999
13983
|
exports.Database = Database;
|