@firebase/database-compat 2.1.4-eap-crashlytics.558ee841d → 2.1.4-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.esm.js +8 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -10
- package/dist/index.js.map +1 -1
- package/dist/index.standalone.js +106 -92
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.js +8 -6
- package/dist/node-esm/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.standalone.js
CHANGED
|
@@ -14,20 +14,6 @@ var require$$2$3 = require('@firebase/util');
|
|
|
14
14
|
var require$$1$3 = require('@firebase/logger');
|
|
15
15
|
var require$$0$2 = require('@firebase/component');
|
|
16
16
|
|
|
17
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
|
-
|
|
19
|
-
var require$$2__default = /*#__PURE__*/_interopDefaultLegacy(require$$2);
|
|
20
|
-
var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
|
|
21
|
-
var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
|
|
22
|
-
var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$1);
|
|
23
|
-
var require$$1__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$1$1);
|
|
24
|
-
var require$$2__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$2$1);
|
|
25
|
-
var require$$1__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$1$2);
|
|
26
|
-
var require$$2__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$2$2);
|
|
27
|
-
var require$$2__default$3 = /*#__PURE__*/_interopDefaultLegacy(require$$2$3);
|
|
28
|
-
var require$$1__default$3 = /*#__PURE__*/_interopDefaultLegacy(require$$1$3);
|
|
29
|
-
var require$$0__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$0$2);
|
|
30
|
-
|
|
31
17
|
function getAugmentedNamespace(n) {
|
|
32
18
|
if (n.__esModule) return n;
|
|
33
19
|
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
@@ -51,7 +37,7 @@ var safeBuffer = {exports: {}};
|
|
|
51
37
|
|
|
52
38
|
(function (module, exports) {
|
|
53
39
|
/* eslint-disable node/no-deprecated-api */
|
|
54
|
-
var buffer = require$$
|
|
40
|
+
var buffer = require$$0;
|
|
55
41
|
var Buffer = buffer.Buffer;
|
|
56
42
|
|
|
57
43
|
// alternative to using Object.keys for old browsers
|
|
@@ -161,8 +147,8 @@ driver having these two methods.
|
|
|
161
147
|
**/
|
|
162
148
|
|
|
163
149
|
|
|
164
|
-
var Stream$3 = require$$
|
|
165
|
-
util$c = require$$
|
|
150
|
+
var Stream$3 = require$$0$1.Stream,
|
|
151
|
+
util$c = require$$2;
|
|
166
152
|
|
|
167
153
|
|
|
168
154
|
var IO = function(driver) {
|
|
@@ -366,8 +352,8 @@ StreamReader.prototype.eachByte = function(callback, context) {
|
|
|
366
352
|
var stream_reader = StreamReader;
|
|
367
353
|
|
|
368
354
|
var Buffer$8 = safeBuffer.exports.Buffer,
|
|
369
|
-
Emitter = require$$
|
|
370
|
-
util$b = require$$
|
|
355
|
+
Emitter = require$$1.EventEmitter,
|
|
356
|
+
util$b = require$$2,
|
|
371
357
|
streams = streams$1,
|
|
372
358
|
Headers$2 = headers,
|
|
373
359
|
Reader = stream_reader;
|
|
@@ -1748,8 +1734,8 @@ for (var key$8 in instance$8)
|
|
|
1748
1734
|
var message = Message$1;
|
|
1749
1735
|
|
|
1750
1736
|
var Buffer$5 = safeBuffer.exports.Buffer,
|
|
1751
|
-
crypto$2 = require$$
|
|
1752
|
-
util$a = require$$
|
|
1737
|
+
crypto$2 = require$$1$1,
|
|
1738
|
+
util$a = require$$2,
|
|
1753
1739
|
Extensions = websocket_extensions,
|
|
1754
1740
|
Base$6 = base,
|
|
1755
1741
|
Frame = frame,
|
|
@@ -2199,7 +2185,12 @@ var instance$7 = {
|
|
|
2199
2185
|
if (error) return this._fail('extension_error', error.message);
|
|
2200
2186
|
|
|
2201
2187
|
var payload = message.data;
|
|
2202
|
-
|
|
2188
|
+
|
|
2189
|
+
if (payload.length > this._maxLength)
|
|
2190
|
+
return this._fail('too_large', 'WebSocket frame length too large');
|
|
2191
|
+
|
|
2192
|
+
if (message.opcode === this.OPCODES.text)
|
|
2193
|
+
payload = this._encode(payload);
|
|
2203
2194
|
|
|
2204
2195
|
if (payload === null)
|
|
2205
2196
|
return this._fail('encoding_error', 'Could not decode a text frame as UTF-8');
|
|
@@ -2230,9 +2221,9 @@ for (var key$7 in instance$7)
|
|
|
2230
2221
|
var hybi = Hybi$2;
|
|
2231
2222
|
|
|
2232
2223
|
var Buffer$4 = safeBuffer.exports.Buffer,
|
|
2233
|
-
Stream$2 = require$$
|
|
2234
|
-
url$2 = require$$
|
|
2235
|
-
util$9 = require$$
|
|
2224
|
+
Stream$2 = require$$0$1.Stream,
|
|
2225
|
+
url$2 = require$$2$1,
|
|
2226
|
+
util$9 = require$$2,
|
|
2236
2227
|
Base$5 = base,
|
|
2237
2228
|
Headers$1 = headers,
|
|
2238
2229
|
HttpParser$2 = http_parser;
|
|
@@ -2328,9 +2319,9 @@ for (var key$6 in instance$6)
|
|
|
2328
2319
|
var proxy = Proxy$2;
|
|
2329
2320
|
|
|
2330
2321
|
var Buffer$3 = safeBuffer.exports.Buffer,
|
|
2331
|
-
crypto$1 = require$$
|
|
2332
|
-
url$1 = require$$
|
|
2333
|
-
util$8 = require$$
|
|
2322
|
+
crypto$1 = require$$1$1,
|
|
2323
|
+
url$1 = require$$2$1,
|
|
2324
|
+
util$8 = require$$2,
|
|
2334
2325
|
HttpParser$1 = http_parser,
|
|
2335
2326
|
Base$4 = base,
|
|
2336
2327
|
Hybi$1 = hybi,
|
|
@@ -2470,7 +2461,7 @@ var client$1 = Client$2;
|
|
|
2470
2461
|
|
|
2471
2462
|
var Buffer$2 = safeBuffer.exports.Buffer,
|
|
2472
2463
|
Base$3 = base,
|
|
2473
|
-
util$7 = require$$
|
|
2464
|
+
util$7 = require$$2;
|
|
2474
2465
|
|
|
2475
2466
|
var Draft75$2 = function(request, url, options) {
|
|
2476
2467
|
Base$3.apply(this, arguments);
|
|
@@ -2512,6 +2503,7 @@ var instance$4 = {
|
|
|
2512
2503
|
|
|
2513
2504
|
case 1:
|
|
2514
2505
|
this._length = (octet & 0x7F) + 128 * this._length;
|
|
2506
|
+
if (this._length > this._maxLength) return this.close();
|
|
2515
2507
|
|
|
2516
2508
|
if (this._closing && this._length === 0) {
|
|
2517
2509
|
return this.close();
|
|
@@ -2593,8 +2585,8 @@ var draft75 = Draft75$2;
|
|
|
2593
2585
|
var Buffer$1 = safeBuffer.exports.Buffer,
|
|
2594
2586
|
Base$2 = base,
|
|
2595
2587
|
Draft75$1 = draft75,
|
|
2596
|
-
crypto = require$$
|
|
2597
|
-
util$6 = require$$
|
|
2588
|
+
crypto = require$$1$1,
|
|
2589
|
+
util$6 = require$$2;
|
|
2598
2590
|
|
|
2599
2591
|
|
|
2600
2592
|
var numberFromKey = function(key) {
|
|
@@ -2706,7 +2698,7 @@ for (var key$3 in instance$3)
|
|
|
2706
2698
|
|
|
2707
2699
|
var draft76 = Draft76$1;
|
|
2708
2700
|
|
|
2709
|
-
var util$5 = require$$
|
|
2701
|
+
var util$5 = require$$2,
|
|
2710
2702
|
HttpParser = http_parser,
|
|
2711
2703
|
Base$1 = base,
|
|
2712
2704
|
Draft75 = draft75,
|
|
@@ -2909,8 +2901,8 @@ var EventTarget$2 = {
|
|
|
2909
2901
|
|
|
2910
2902
|
var event_target = EventTarget$2;
|
|
2911
2903
|
|
|
2912
|
-
var Stream$1 = require$$
|
|
2913
|
-
util$4 = require$$
|
|
2904
|
+
var Stream$1 = require$$0$1.Stream,
|
|
2905
|
+
util$4 = require$$2,
|
|
2914
2906
|
driver$3 = driver$4,
|
|
2915
2907
|
EventTarget$1 = event_target,
|
|
2916
2908
|
Event$1 = event;
|
|
@@ -3107,10 +3099,10 @@ for (var key$1 in EventTarget$1) API$3.prototype[key$1] = EventTarget$1[key$1];
|
|
|
3107
3099
|
|
|
3108
3100
|
var api = API$3;
|
|
3109
3101
|
|
|
3110
|
-
var util$3 = require$$
|
|
3111
|
-
net = require$$
|
|
3112
|
-
tls = require$$
|
|
3113
|
-
url = require$$
|
|
3102
|
+
var util$3 = require$$2,
|
|
3103
|
+
net = require$$1$2,
|
|
3104
|
+
tls = require$$2$2,
|
|
3105
|
+
url = require$$2$1,
|
|
3114
3106
|
driver$2 = driver$4,
|
|
3115
3107
|
API$2 = api;
|
|
3116
3108
|
|
|
@@ -3195,8 +3187,8 @@ Client.prototype._configureProxy = function(proxy, originTLS) {
|
|
|
3195
3187
|
|
|
3196
3188
|
var client = Client;
|
|
3197
3189
|
|
|
3198
|
-
var Stream = require$$
|
|
3199
|
-
util$2 = require$$
|
|
3190
|
+
var Stream = require$$0$1.Stream,
|
|
3191
|
+
util$2 = require$$2,
|
|
3200
3192
|
driver$1 = driver$4,
|
|
3201
3193
|
Headers = headers,
|
|
3202
3194
|
API$1 = api,
|
|
@@ -3327,7 +3319,7 @@ for (var key in EventTarget) EventSource.prototype[key] = EventTarget[key];
|
|
|
3327
3319
|
|
|
3328
3320
|
var eventsource = EventSource;
|
|
3329
3321
|
|
|
3330
|
-
var util$1 = require$$
|
|
3322
|
+
var util$1 = require$$2,
|
|
3331
3323
|
driver = driver$4,
|
|
3332
3324
|
API = api;
|
|
3333
3325
|
|
|
@@ -3658,9 +3650,9 @@ var require$$3 = /*@__PURE__*/getAugmentedNamespace(build);
|
|
|
3658
3650
|
|
|
3659
3651
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3660
3652
|
|
|
3661
|
-
var component = require$$
|
|
3662
|
-
var logger$1 = require$$
|
|
3663
|
-
var util = require$$
|
|
3653
|
+
var component = require$$0$2;
|
|
3654
|
+
var logger$1 = require$$1$3;
|
|
3655
|
+
var util = require$$2$3;
|
|
3664
3656
|
var idb = require$$3;
|
|
3665
3657
|
|
|
3666
3658
|
/**
|
|
@@ -3717,7 +3709,7 @@ function isVersionServiceProvider(provider) {
|
|
|
3717
3709
|
}
|
|
3718
3710
|
|
|
3719
3711
|
const name$q = "@firebase/app";
|
|
3720
|
-
const version$1 = "0.
|
|
3712
|
+
const version$1 = "0.15.1-eap-crashlytics.659b578fb";
|
|
3721
3713
|
|
|
3722
3714
|
/**
|
|
3723
3715
|
* @license
|
|
@@ -3788,7 +3780,7 @@ const name$2 = "@firebase/ai";
|
|
|
3788
3780
|
const name$1 = "@firebase/firestore-compat";
|
|
3789
3781
|
|
|
3790
3782
|
const name = "firebase";
|
|
3791
|
-
const version = "12.
|
|
3783
|
+
const version = "12.16.0-eap-crashlytics.659b578fb";
|
|
3792
3784
|
|
|
3793
3785
|
/**
|
|
3794
3786
|
* @license
|
|
@@ -4890,9 +4882,25 @@ function registerCoreComponents(variant) {
|
|
|
4890
4882
|
* @remarks This package coordinates the communication between the different Firebase components
|
|
4891
4883
|
* @packageDocumentation
|
|
4892
4884
|
*/
|
|
4885
|
+
/**
|
|
4886
|
+
* @license
|
|
4887
|
+
* Copyright 2019 Google LLC
|
|
4888
|
+
*
|
|
4889
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4890
|
+
* you may not use this file except in compliance with the License.
|
|
4891
|
+
* You may obtain a copy of the License at
|
|
4892
|
+
*
|
|
4893
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4894
|
+
*
|
|
4895
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4896
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4897
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4898
|
+
* See the License for the specific language governing permissions and
|
|
4899
|
+
* limitations under the License.
|
|
4900
|
+
*/
|
|
4893
4901
|
registerCoreComponents('node');
|
|
4894
4902
|
|
|
4895
|
-
Object.defineProperty(exports,
|
|
4903
|
+
Object.defineProperty(exports, "FirebaseError", {
|
|
4896
4904
|
enumerable: true,
|
|
4897
4905
|
get: function () { return util.FirebaseError; }
|
|
4898
4906
|
});
|
|
@@ -4924,14 +4932,10 @@ exports.setLogLevel = setLogLevel;
|
|
|
4924
4932
|
Object.defineProperty(index_standalone, '__esModule', { value: true });
|
|
4925
4933
|
|
|
4926
4934
|
var Websocket = websocket;
|
|
4927
|
-
var util = require$$
|
|
4928
|
-
var logger$1 = require$$
|
|
4935
|
+
var util = require$$2$3;
|
|
4936
|
+
var logger$1 = require$$1$3;
|
|
4929
4937
|
var app = index_cjs;
|
|
4930
|
-
var component = require$$
|
|
4931
|
-
|
|
4932
|
-
function _interopDefaultLegacy$1 (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
4933
|
-
|
|
4934
|
-
var Websocket__default = /*#__PURE__*/_interopDefaultLegacy$1(Websocket);
|
|
4938
|
+
var component = require$$0$2;
|
|
4935
4939
|
|
|
4936
4940
|
/**
|
|
4937
4941
|
* @license
|
|
@@ -15283,15 +15287,12 @@ function treeForEachChild(tree, action) {
|
|
|
15283
15287
|
* parent.
|
|
15284
15288
|
*/
|
|
15285
15289
|
function treeForEachDescendant(tree, action, includeSelf, childrenFirst) {
|
|
15286
|
-
if (includeSelf &&
|
|
15290
|
+
if (includeSelf && true) {
|
|
15287
15291
|
action(tree);
|
|
15288
15292
|
}
|
|
15289
15293
|
treeForEachChild(tree, child => {
|
|
15290
|
-
treeForEachDescendant(child, action, true
|
|
15294
|
+
treeForEachDescendant(child, action, true);
|
|
15291
15295
|
});
|
|
15292
|
-
if (includeSelf && childrenFirst) {
|
|
15293
|
-
action(tree);
|
|
15294
|
-
}
|
|
15295
15296
|
}
|
|
15296
15297
|
/**
|
|
15297
15298
|
* Calls action on each ancestor node.
|
|
@@ -15302,7 +15303,7 @@ function treeForEachDescendant(tree, action, includeSelf, childrenFirst) {
|
|
|
15302
15303
|
* @returns true if the action callback returned true.
|
|
15303
15304
|
*/
|
|
15304
15305
|
function treeForEachAncestor(tree, action, includeSelf) {
|
|
15305
|
-
let node =
|
|
15306
|
+
let node = tree.parent;
|
|
15306
15307
|
while (node !== null) {
|
|
15307
15308
|
if (action(node)) {
|
|
15308
15309
|
return true;
|
|
@@ -15521,9 +15522,6 @@ const validateFirebaseMergePaths = function (errorPrefix, mergePaths) {
|
|
|
15521
15522
|
* must be an object - e.g. for firebase.update()).
|
|
15522
15523
|
*/
|
|
15523
15524
|
const validateFirebaseMergeDataArg = function (fnName, data, path, optional) {
|
|
15524
|
-
if (optional && data === undefined) {
|
|
15525
|
-
return;
|
|
15526
|
-
}
|
|
15527
15525
|
const errorPrefix = util.errorPrefix(fnName, 'values');
|
|
15528
15526
|
if (!(data && typeof data === 'object') || Array.isArray(data)) {
|
|
15529
15527
|
throw new Error(errorPrefix + ' must be an object containing the children to replace.');
|
|
@@ -15546,9 +15544,6 @@ const validateFirebaseMergeDataArg = function (fnName, data, path, optional) {
|
|
|
15546
15544
|
validateFirebaseMergePaths(errorPrefix, mergePaths);
|
|
15547
15545
|
};
|
|
15548
15546
|
const validatePriority = function (fnName, priority, optional) {
|
|
15549
|
-
if (optional && priority === undefined) {
|
|
15550
|
-
return;
|
|
15551
|
-
}
|
|
15552
15547
|
if (isInvalidJSONNumber(priority)) {
|
|
15553
15548
|
throw new Error(util.errorPrefix(fnName, 'priority') +
|
|
15554
15549
|
'is ' +
|
|
@@ -15564,7 +15559,7 @@ const validatePriority = function (fnName, priority, optional) {
|
|
|
15564
15559
|
}
|
|
15565
15560
|
};
|
|
15566
15561
|
const validateKey = function (fnName, argumentName, key, optional) {
|
|
15567
|
-
if (
|
|
15562
|
+
if (key === undefined) {
|
|
15568
15563
|
return;
|
|
15569
15564
|
}
|
|
15570
15565
|
if (!isValidKey(key)) {
|
|
@@ -17024,7 +17019,7 @@ class CallbackContext {
|
|
|
17024
17019
|
* operation to occur each time a disconnect occurs, you'll need to re-establish
|
|
17025
17020
|
* the `onDisconnect` operations each time you reconnect.
|
|
17026
17021
|
*/
|
|
17027
|
-
|
|
17022
|
+
let OnDisconnect$1 = class OnDisconnect {
|
|
17028
17023
|
/** @hideconstructor */
|
|
17029
17024
|
constructor(_repo, _path) {
|
|
17030
17025
|
this._repo = _repo;
|
|
@@ -17096,7 +17091,7 @@ class OnDisconnect$1 {
|
|
|
17096
17091
|
setWithPriority(value, priority) {
|
|
17097
17092
|
validateWritablePath('OnDisconnect.setWithPriority', this._path);
|
|
17098
17093
|
validateFirebaseDataArg('OnDisconnect.setWithPriority', value, this._path, false);
|
|
17099
|
-
validatePriority('OnDisconnect.setWithPriority', priority
|
|
17094
|
+
validatePriority('OnDisconnect.setWithPriority', priority);
|
|
17100
17095
|
const deferred = new util.Deferred();
|
|
17101
17096
|
repoOnDisconnectSetWithPriority(this._repo, this._path, value, priority, deferred.wrapCallback(() => { }));
|
|
17102
17097
|
return deferred.promise;
|
|
@@ -17119,12 +17114,12 @@ class OnDisconnect$1 {
|
|
|
17119
17114
|
*/
|
|
17120
17115
|
update(values) {
|
|
17121
17116
|
validateWritablePath('OnDisconnect.update', this._path);
|
|
17122
|
-
validateFirebaseMergeDataArg('OnDisconnect.update', values, this._path
|
|
17117
|
+
validateFirebaseMergeDataArg('OnDisconnect.update', values, this._path);
|
|
17123
17118
|
const deferred = new util.Deferred();
|
|
17124
17119
|
repoOnDisconnectUpdate(this._repo, this._path, values, deferred.wrapCallback(() => { }));
|
|
17125
17120
|
return deferred.promise;
|
|
17126
17121
|
}
|
|
17127
|
-
}
|
|
17122
|
+
};
|
|
17128
17123
|
|
|
17129
17124
|
/**
|
|
17130
17125
|
* @license
|
|
@@ -17304,7 +17299,7 @@ class ReferenceImpl extends QueryImpl {
|
|
|
17304
17299
|
* a Database location. It cannot be modified and will never change (to modify
|
|
17305
17300
|
* data, you always call the `set()` method on a `Reference` directly).
|
|
17306
17301
|
*/
|
|
17307
|
-
|
|
17302
|
+
let DataSnapshot$1 = class DataSnapshot {
|
|
17308
17303
|
/**
|
|
17309
17304
|
* @param _node - A SnapshotNode to wrap.
|
|
17310
17305
|
* @param ref - The location this snapshot came from.
|
|
@@ -17363,7 +17358,7 @@ class DataSnapshot$1 {
|
|
|
17363
17358
|
child(path) {
|
|
17364
17359
|
const childPath = new Path(path);
|
|
17365
17360
|
const childRef = child(this.ref, path);
|
|
17366
|
-
return new DataSnapshot
|
|
17361
|
+
return new DataSnapshot(this._node.getChild(childPath), childRef, PRIORITY_INDEX);
|
|
17367
17362
|
}
|
|
17368
17363
|
/**
|
|
17369
17364
|
* Returns true if this `DataSnapshot` contains any data. It is slightly more
|
|
@@ -17410,7 +17405,7 @@ class DataSnapshot$1 {
|
|
|
17410
17405
|
const childrenNode = this._node;
|
|
17411
17406
|
// Sanitize the return value to a boolean. ChildrenNode.forEachChild has a weird return type...
|
|
17412
17407
|
return !!childrenNode.forEachChild(this._index, (key, node) => {
|
|
17413
|
-
return action(new DataSnapshot
|
|
17408
|
+
return action(new DataSnapshot(node, child(this.ref, key), PRIORITY_INDEX));
|
|
17414
17409
|
});
|
|
17415
17410
|
}
|
|
17416
17411
|
/**
|
|
@@ -17465,7 +17460,7 @@ class DataSnapshot$1 {
|
|
|
17465
17460
|
val() {
|
|
17466
17461
|
return this._node.val();
|
|
17467
17462
|
}
|
|
17468
|
-
}
|
|
17463
|
+
};
|
|
17469
17464
|
/**
|
|
17470
17465
|
*
|
|
17471
17466
|
* Returns a `Reference` representing the location in the Database
|
|
@@ -17670,7 +17665,7 @@ function set(ref, value) {
|
|
|
17670
17665
|
function setPriority(ref, priority) {
|
|
17671
17666
|
ref = util.getModularInstance(ref);
|
|
17672
17667
|
validateWritablePath('setPriority', ref._path);
|
|
17673
|
-
validatePriority('setPriority', priority
|
|
17668
|
+
validatePriority('setPriority', priority);
|
|
17674
17669
|
const deferred = new util.Deferred();
|
|
17675
17670
|
repoSetWithPriority(ref._repo, pathChild(ref._path, '.priority'), priority, null, deferred.wrapCallback(() => { }));
|
|
17676
17671
|
return deferred.promise;
|
|
@@ -17693,7 +17688,7 @@ function setPriority(ref, priority) {
|
|
|
17693
17688
|
function setWithPriority(ref, value, priority) {
|
|
17694
17689
|
validateWritablePath('setWithPriority', ref._path);
|
|
17695
17690
|
validateFirebaseDataArg('setWithPriority', value, ref._path, false);
|
|
17696
|
-
validatePriority('setWithPriority', priority
|
|
17691
|
+
validatePriority('setWithPriority', priority);
|
|
17697
17692
|
if (ref.key === '.length' || ref.key === '.keys') {
|
|
17698
17693
|
throw 'setWithPriority failed: ' + ref.key + ' is a read-only object.';
|
|
17699
17694
|
}
|
|
@@ -17737,7 +17732,7 @@ function setWithPriority(ref, value, priority) {
|
|
|
17737
17732
|
* @returns Resolves when update on server is complete.
|
|
17738
17733
|
*/
|
|
17739
17734
|
function update(ref, values) {
|
|
17740
|
-
validateFirebaseMergeDataArg('update', values, ref._path
|
|
17735
|
+
validateFirebaseMergeDataArg('update', values, ref._path);
|
|
17741
17736
|
const deferred = new util.Deferred();
|
|
17742
17737
|
repoUpdate(ref._repo, ref._path, values, deferred.wrapCallback(() => { }));
|
|
17743
17738
|
return deferred.promise;
|
|
@@ -17983,7 +17978,7 @@ class QueryEndAtConstraint extends QueryConstraint {
|
|
|
17983
17978
|
* value, or priority.
|
|
17984
17979
|
*/
|
|
17985
17980
|
function endAt(value, key) {
|
|
17986
|
-
validateKey('endAt', 'key', key
|
|
17981
|
+
validateKey('endAt', 'key', key);
|
|
17987
17982
|
return new QueryEndAtConstraint(value, key);
|
|
17988
17983
|
}
|
|
17989
17984
|
class QueryEndBeforeConstraint extends QueryConstraint {
|
|
@@ -18025,7 +18020,7 @@ class QueryEndBeforeConstraint extends QueryConstraint {
|
|
|
18025
18020
|
* child, value, or priority.
|
|
18026
18021
|
*/
|
|
18027
18022
|
function endBefore(value, key) {
|
|
18028
|
-
validateKey('endBefore', 'key', key
|
|
18023
|
+
validateKey('endBefore', 'key', key);
|
|
18029
18024
|
return new QueryEndBeforeConstraint(value, key);
|
|
18030
18025
|
}
|
|
18031
18026
|
class QueryStartAtConstraint extends QueryConstraint {
|
|
@@ -18070,7 +18065,7 @@ class QueryStartAtConstraint extends QueryConstraint {
|
|
|
18070
18065
|
* ordering by child, value, or priority.
|
|
18071
18066
|
*/
|
|
18072
18067
|
function startAt(value = null, key) {
|
|
18073
|
-
validateKey('startAt', 'key', key
|
|
18068
|
+
validateKey('startAt', 'key', key);
|
|
18074
18069
|
return new QueryStartAtConstraint(value, key);
|
|
18075
18070
|
}
|
|
18076
18071
|
class QueryStartAfterConstraint extends QueryConstraint {
|
|
@@ -18111,7 +18106,7 @@ class QueryStartAfterConstraint extends QueryConstraint {
|
|
|
18111
18106
|
* ordering by child, value, or priority.
|
|
18112
18107
|
*/
|
|
18113
18108
|
function startAfter(value, key) {
|
|
18114
|
-
validateKey('startAfter', 'key', key
|
|
18109
|
+
validateKey('startAfter', 'key', key);
|
|
18115
18110
|
return new QueryStartAfterConstraint(value, key);
|
|
18116
18111
|
}
|
|
18117
18112
|
class QueryLimitToFirstConstraint extends QueryConstraint {
|
|
@@ -18356,7 +18351,7 @@ class QueryEqualToValueConstraint extends QueryConstraint {
|
|
|
18356
18351
|
* child, value, or priority.
|
|
18357
18352
|
*/
|
|
18358
18353
|
function equalTo(value, key) {
|
|
18359
|
-
validateKey('equalTo', 'key', key
|
|
18354
|
+
validateKey('equalTo', 'key', key);
|
|
18360
18355
|
return new QueryEqualToValueConstraint(value, key);
|
|
18361
18356
|
}
|
|
18362
18357
|
/**
|
|
@@ -18400,6 +18395,7 @@ syncTreeSetReferenceConstructor(ReferenceImpl);
|
|
|
18400
18395
|
* See the License for the specific language governing permissions and
|
|
18401
18396
|
* limitations under the License.
|
|
18402
18397
|
*/
|
|
18398
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
18403
18399
|
/**
|
|
18404
18400
|
* This variable is also defined in the firebase Node.js Admin SDK. Before
|
|
18405
18401
|
* modifying this definition, consult the definition in:
|
|
@@ -18515,7 +18511,7 @@ function repoManagerForceRestClient(forceRestClient) {
|
|
|
18515
18511
|
/**
|
|
18516
18512
|
* Class representing a Firebase Realtime Database.
|
|
18517
18513
|
*/
|
|
18518
|
-
|
|
18514
|
+
let Database$1 = class Database {
|
|
18519
18515
|
/** @hideconstructor */
|
|
18520
18516
|
constructor(_repoInternal,
|
|
18521
18517
|
/** The {@link @firebase/app#FirebaseApp} associated with this Realtime Database instance. */
|
|
@@ -18553,7 +18549,7 @@ class Database$1 {
|
|
|
18553
18549
|
fatal('Cannot call ' + apiName + ' on a deleted database.');
|
|
18554
18550
|
}
|
|
18555
18551
|
}
|
|
18556
|
-
}
|
|
18552
|
+
};
|
|
18557
18553
|
function checkTransportInit() {
|
|
18558
18554
|
if (TransportManager.IS_TRANSPORT_INITIALIZED) {
|
|
18559
18555
|
warn$1('Transport has already been initialized. Please call this function before calling ref or setting up a listener');
|
|
@@ -18726,7 +18722,7 @@ function increment(delta) {
|
|
|
18726
18722
|
/**
|
|
18727
18723
|
* A type for the resolve value of {@link runTransaction}.
|
|
18728
18724
|
*/
|
|
18729
|
-
|
|
18725
|
+
let TransactionResult$1 = class TransactionResult {
|
|
18730
18726
|
/** @hideconstructor */
|
|
18731
18727
|
constructor(
|
|
18732
18728
|
/** Whether the transaction was successfully committed. */
|
|
@@ -18740,7 +18736,7 @@ class TransactionResult$1 {
|
|
|
18740
18736
|
toJSON() {
|
|
18741
18737
|
return { committed: this.committed, snapshot: this.snapshot.toJSON() };
|
|
18742
18738
|
}
|
|
18743
|
-
}
|
|
18739
|
+
};
|
|
18744
18740
|
/**
|
|
18745
18741
|
* Atomically modifies the data at this location.
|
|
18746
18742
|
*
|
|
@@ -18803,6 +18799,23 @@ transactionUpdate, options) {
|
|
|
18803
18799
|
repoStartTransaction(ref._repo, ref._path, transactionUpdate, promiseComplete, unwatcher, applyLocally);
|
|
18804
18800
|
return deferred.promise;
|
|
18805
18801
|
}
|
|
18802
|
+
|
|
18803
|
+
/**
|
|
18804
|
+
* @license
|
|
18805
|
+
* Copyright 2017 Google LLC
|
|
18806
|
+
*
|
|
18807
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
18808
|
+
* you may not use this file except in compliance with the License.
|
|
18809
|
+
* You may obtain a copy of the License at
|
|
18810
|
+
*
|
|
18811
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
18812
|
+
*
|
|
18813
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
18814
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18815
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18816
|
+
* See the License for the specific language governing permissions and
|
|
18817
|
+
* limitations under the License.
|
|
18818
|
+
*/
|
|
18806
18819
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18807
18820
|
PersistentConnection.prototype.simpleListen = function (pathString, onComplete) {
|
|
18808
18821
|
this.sendRequest('q', { p: pathString }, onComplete);
|
|
@@ -18893,7 +18906,7 @@ function _initStandalone({ app, url, version, customAuthImpl, customAppCheckImpl
|
|
|
18893
18906
|
* See the License for the specific language governing permissions and
|
|
18894
18907
|
* limitations under the License.
|
|
18895
18908
|
*/
|
|
18896
|
-
setWebSocketImpl(
|
|
18909
|
+
setWebSocketImpl(Websocket.Client);
|
|
18897
18910
|
|
|
18898
18911
|
index_standalone.DataSnapshot = DataSnapshot$1;
|
|
18899
18912
|
index_standalone.Database = Database$1;
|
|
@@ -18988,7 +19001,7 @@ const warn = function (msg) {
|
|
|
18988
19001
|
* limitations under the License.
|
|
18989
19002
|
*/
|
|
18990
19003
|
const validateBoolean = function (fnName, argumentName, bool, optional) {
|
|
18991
|
-
if (
|
|
19004
|
+
if (bool === undefined) {
|
|
18992
19005
|
return;
|
|
18993
19006
|
}
|
|
18994
19007
|
if (typeof bool !== 'boolean') {
|
|
@@ -18996,7 +19009,7 @@ const validateBoolean = function (fnName, argumentName, bool, optional) {
|
|
|
18996
19009
|
}
|
|
18997
19010
|
};
|
|
18998
19011
|
const validateEventType = function (fnName, eventType, optional) {
|
|
18999
|
-
if (
|
|
19012
|
+
if (eventType === undefined) {
|
|
19000
19013
|
return;
|
|
19001
19014
|
}
|
|
19002
19015
|
switch (eventType) {
|
|
@@ -19303,7 +19316,7 @@ class Query {
|
|
|
19303
19316
|
}
|
|
19304
19317
|
off(eventType, callback, context) {
|
|
19305
19318
|
require$$2$3.validateArgCount('Query.off', 0, 3, arguments.length);
|
|
19306
|
-
validateEventType('Query.off', eventType
|
|
19319
|
+
validateEventType('Query.off', eventType);
|
|
19307
19320
|
require$$2$3.validateCallback('Query.off', 'callback', callback, true);
|
|
19308
19321
|
require$$2$3.validateContextObject('Query.off', 'context', context, true);
|
|
19309
19322
|
if (callback) {
|
|
@@ -19592,7 +19605,7 @@ class Reference extends Query {
|
|
|
19592
19605
|
require$$2$3.validateArgCount('Reference.transaction', 1, 3, arguments.length);
|
|
19593
19606
|
require$$2$3.validateCallback('Reference.transaction', 'transactionUpdate', transactionUpdate, false);
|
|
19594
19607
|
require$$2$3.validateCallback('Reference.transaction', 'onComplete', onComplete, true);
|
|
19595
|
-
validateBoolean('Reference.transaction', 'applyLocally', applyLocally
|
|
19608
|
+
validateBoolean('Reference.transaction', 'applyLocally', applyLocally);
|
|
19596
19609
|
const result = runTransaction_1(this._delegate, transactionUpdate, {
|
|
19597
19610
|
applyLocally
|
|
19598
19611
|
}).then(transactionResult => new TransactionResult(transactionResult.committed, new DataSnapshot(this.database, transactionResult.snapshot)));
|
|
@@ -19654,6 +19667,7 @@ class Reference extends Query {
|
|
|
19654
19667
|
* See the License for the specific language governing permissions and
|
|
19655
19668
|
* limitations under the License.
|
|
19656
19669
|
*/
|
|
19670
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
19657
19671
|
/**
|
|
19658
19672
|
* Class representing a firebase database.
|
|
19659
19673
|
*/
|