@firebase/database 0.13.6 → 0.13.7
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 +9 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +9 -19
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +8 -18
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +0 -16
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +9 -3
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +4 -4
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";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
@@ -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
|