@firebase/database 0.13.6 → 0.13.7-canary.0a112bd2a
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/CHANGELOG.md +10 -0
- package/dist/index.esm2017.js +13 -7
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +13 -23
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +12 -22
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +4 -20
- package/dist/index.standalone.js.map +1 -1
- package/dist/internal.d.ts +4 -4
- package/dist/node-esm/index.node.esm.js +13 -7
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/api/Reference_impl.d.ts +4 -4
- package/dist/private.d.ts +4 -4
- package/dist/public.d.ts +4 -4
- package/dist/src/api/Reference_impl.d.ts +4 -4
- package/package.json +6 -6
package/dist/index.esm5.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getApp, _getProvider, _registerComponent, registerVersion, SDK_VERSION as SDK_VERSION$1 } from '@firebase/app';
|
|
2
2
|
import { Component } from '@firebase/component';
|
|
3
|
-
import { stringify, jsonEval, contains, assert, isNodeSdk, base64, stringToByteArray, Sha1, deepCopy, base64Encode, isMobileCordova, stringLength, Deferred, safeGet, isAdmin, isValidFormat, isEmpty, isReactNative, assertionError, map, querystring, errorPrefix, getModularInstance, createMockUserToken } from '@firebase/util';
|
|
4
3
|
import { __spreadArray, __read, __values, __extends, __awaiter, __generator, __assign } from 'tslib';
|
|
4
|
+
import { stringify, jsonEval, contains, assert, isNodeSdk, base64, stringToByteArray, Sha1, deepCopy, base64Encode, isMobileCordova, stringLength, Deferred, safeGet, isAdmin, isValidFormat, isEmpty, isReactNative, assertionError, map, querystring, errorPrefix, getModularInstance, getDefaultEmulatorHost, createMockUserToken } from '@firebase/util';
|
|
5
5
|
import { Logger, LogLevel } from '@firebase/logger';
|
|
6
6
|
|
|
7
7
|
var name = "@firebase/database";
|
|
8
|
-
var version = "0.13.
|
|
8
|
+
var version = "0.13.7-canary.0a112bd2a";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
@@ -13108,8 +13108,8 @@ function onDisconnect(ref) {
|
|
|
13108
13108
|
* resulting list of items is chronologically sorted. The keys are also
|
|
13109
13109
|
* designed to be unguessable (they contain 72 random bits of entropy).
|
|
13110
13110
|
*
|
|
13111
|
-
* See {@link https://firebase.google.com/docs/database/web/lists-of-data#append_to_a_list_of_data | Append to a list of data}
|
|
13112
|
-
*
|
|
13111
|
+
* See {@link https://firebase.google.com/docs/database/web/lists-of-data#append_to_a_list_of_data | Append to a list of data}.
|
|
13112
|
+
* See {@link https://firebase.googleblog.com/2015/02/the-2120-ways-to-ensure-unique_68.html | The 2^120 Ways to Ensure Unique Identifiers}.
|
|
13113
13113
|
*
|
|
13114
13114
|
* @param parent - The parent location.
|
|
13115
13115
|
* @param value - Optional value to be written at the generated location.
|
|
@@ -13574,8 +13574,8 @@ var QueryEndBeforeConstraint = /** @class */ (function (_super) {
|
|
|
13574
13574
|
*
|
|
13575
13575
|
* The ending point is exclusive. If only a value is provided, children
|
|
13576
13576
|
* with a value less than the specified value will be included in the query.
|
|
13577
|
-
* If a key is specified, then children must have a value
|
|
13578
|
-
* to the specified value and a
|
|
13577
|
+
* If a key is specified, then children must have a value less than or equal
|
|
13578
|
+
* to the specified value and a key name less than the specified key.
|
|
13579
13579
|
*
|
|
13580
13580
|
* @param value - The value to end before. The argument type depends on which
|
|
13581
13581
|
* `orderBy*()` function was used in this query. Specify a value that matches
|
|
@@ -13976,22 +13976,6 @@ function query(query) {
|
|
|
13976
13976
|
syncPointSetReferenceConstructor(ReferenceImpl);
|
|
13977
13977
|
syncTreeSetReferenceConstructor(ReferenceImpl);
|
|
13978
13978
|
|
|
13979
|
-
/**
|
|
13980
|
-
* @license
|
|
13981
|
-
* Copyright 2020 Google LLC
|
|
13982
|
-
*
|
|
13983
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13984
|
-
* you may not use this file except in compliance with the License.
|
|
13985
|
-
* You may obtain a copy of the License at
|
|
13986
|
-
*
|
|
13987
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13988
|
-
*
|
|
13989
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13990
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13991
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13992
|
-
* See the License for the specific language governing permissions and
|
|
13993
|
-
* limitations under the License.
|
|
13994
|
-
*/
|
|
13995
13979
|
/**
|
|
13996
13980
|
* This variable is also defined in the firebase Node.js Admin SDK. Before
|
|
13997
13981
|
* modifying this definition, consult the definition in:
|
|
@@ -14185,9 +14169,15 @@ function forceLongPolling() {
|
|
|
14185
14169
|
*/
|
|
14186
14170
|
function getDatabase(app, url) {
|
|
14187
14171
|
if (app === void 0) { app = getApp(); }
|
|
14188
|
-
|
|
14172
|
+
var db = _getProvider(app, 'database').getImmediate({
|
|
14189
14173
|
identifier: url
|
|
14190
14174
|
});
|
|
14175
|
+
var databaseEmulatorHost = getDefaultEmulatorHost('database');
|
|
14176
|
+
if (databaseEmulatorHost) {
|
|
14177
|
+
var _a = __read(databaseEmulatorHost.split(':'), 2), host = _a[0], port = _a[1];
|
|
14178
|
+
connectDatabaseEmulator(db, host, parseInt(port, 10));
|
|
14179
|
+
}
|
|
14180
|
+
return db;
|
|
14191
14181
|
}
|
|
14192
14182
|
/**
|
|
14193
14183
|
* Modify the provided instance to communicate with the Realtime Database
|