@firebase/database 1.0.0 → 1.0.1-20230718222737
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 +45 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +46 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +47 -3
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +46 -1
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +46 -0
- package/dist/index.standalone.js.map +1 -1
- package/dist/internal.d.ts +22 -0
- package/dist/node-esm/index.node.esm.js +46 -3
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/api.standalone.d.ts +1 -0
- package/dist/node-esm/src/internal/index.d.ts +38 -0
- package/dist/private.d.ts +5 -0
- package/dist/public.d.ts +1 -0
- package/dist/src/api.standalone.d.ts +1 -0
- package/dist/src/internal/index.d.ts +38 -0
- package/package.json +1 -1
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
|
-
import { Component } from '@firebase/component';
|
|
2
|
+
import { Component, ComponentContainer, Provider } from '@firebase/component';
|
|
3
3
|
import { __spreadArray, __read, __values, __assign, __extends, __awaiter, __generator } from 'tslib';
|
|
4
4
|
import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sha1, base64, deepCopy, base64Encode, isMobileCordova, stringLength, Deferred, safeGet, isAdmin, isValidFormat, isEmpty, isReactNative, assertionError, map, querystring, errorPrefix, getModularInstance, getDefaultEmulatorHostnameAndPort, createMockUserToken } from '@firebase/util';
|
|
5
5
|
import { Logger, LogLevel } from '@firebase/logger';
|
|
6
6
|
|
|
7
7
|
var name = "@firebase/database";
|
|
8
|
-
var version = "1.0.
|
|
8
|
+
var version = "1.0.1-20230718222737";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
@@ -14405,6 +14405,50 @@ var forceRestClient = function (forceRestClient) {
|
|
|
14405
14405
|
repoManagerForceRestClient(forceRestClient);
|
|
14406
14406
|
};
|
|
14407
14407
|
|
|
14408
|
+
/**
|
|
14409
|
+
* @license
|
|
14410
|
+
* Copyright 2023 Google LLC
|
|
14411
|
+
*
|
|
14412
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
14413
|
+
* you may not use this file except in compliance with the License.
|
|
14414
|
+
* You may obtain a copy of the License at
|
|
14415
|
+
*
|
|
14416
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14417
|
+
*
|
|
14418
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14419
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14420
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14421
|
+
* See the License for the specific language governing permissions and
|
|
14422
|
+
* limitations under the License.
|
|
14423
|
+
*/
|
|
14424
|
+
/**
|
|
14425
|
+
* Used by console to create a database based on the app,
|
|
14426
|
+
* passed database URL and a custom auth implementation.
|
|
14427
|
+
* @internal
|
|
14428
|
+
* @param app - A valid FirebaseApp-like object
|
|
14429
|
+
* @param url - A valid Firebase databaseURL
|
|
14430
|
+
* @param version - custom version e.g. firebase-admin version
|
|
14431
|
+
* @param customAppCheckImpl - custom app check implementation
|
|
14432
|
+
* @param customAuthImpl - custom auth implementation
|
|
14433
|
+
*/
|
|
14434
|
+
function _initStandalone(_a) {
|
|
14435
|
+
var app = _a.app, url = _a.url, version = _a.version, customAuthImpl = _a.customAuthImpl, customAppCheckImpl = _a.customAppCheckImpl, _b = _a.nodeAdmin, nodeAdmin = _b === void 0 ? false : _b;
|
|
14436
|
+
setSDKVersion(version);
|
|
14437
|
+
/**
|
|
14438
|
+
* ComponentContainer('database-standalone') is just a placeholder that doesn't perform
|
|
14439
|
+
* any actual function.
|
|
14440
|
+
*/
|
|
14441
|
+
var componentContainer = new ComponentContainer('database-standalone');
|
|
14442
|
+
var authProvider = new Provider('auth-internal', componentContainer);
|
|
14443
|
+
var appCheckProvider;
|
|
14444
|
+
if (customAppCheckImpl) {
|
|
14445
|
+
appCheckProvider = new Provider('app-check-internal', componentContainer);
|
|
14446
|
+
appCheckProvider.setComponent(new Component('app-check-internal', function () { return customAppCheckImpl; }, "PRIVATE" /* ComponentType.PRIVATE */));
|
|
14447
|
+
}
|
|
14448
|
+
authProvider.setComponent(new Component('auth-internal', function () { return customAuthImpl; }, "PRIVATE" /* ComponentType.PRIVATE */));
|
|
14449
|
+
return repoManagerDatabaseFromApp(app, authProvider, appCheckProvider, url, nodeAdmin);
|
|
14450
|
+
}
|
|
14451
|
+
|
|
14408
14452
|
/**
|
|
14409
14453
|
* Firebase Realtime Database
|
|
14410
14454
|
*
|
|
@@ -14412,5 +14456,5 @@ var forceRestClient = function (forceRestClient) {
|
|
|
14412
14456
|
*/
|
|
14413
14457
|
registerDatabase();
|
|
14414
14458
|
|
|
14415
|
-
export { DataSnapshot, Database, OnDisconnect, QueryConstraint, TransactionResult, QueryImpl as _QueryImpl, QueryParams as _QueryParams, ReferenceImpl as _ReferenceImpl, forceRestClient as _TEST_ACCESS_forceRestClient, hijackHash as _TEST_ACCESS_hijackHash, repoManagerDatabaseFromApp as _repoManagerDatabaseFromApp, setSDKVersion as _setSDKVersion, validatePathString as _validatePathString, validateWritablePath as _validateWritablePath, child, connectDatabaseEmulator, enableLogging, endAt, endBefore, equalTo, forceLongPolling, forceWebSockets, get, getDatabase, goOffline, goOnline, increment, limitToFirst, limitToLast, off, onChildAdded, onChildChanged, onChildMoved, onChildRemoved, onDisconnect, onValue, orderByChild, orderByKey, orderByPriority, orderByValue, push, query, ref, refFromURL, remove, runTransaction, serverTimestamp, set, setPriority, setWithPriority, startAfter, startAt, update };
|
|
14459
|
+
export { DataSnapshot, Database, OnDisconnect, QueryConstraint, TransactionResult, QueryImpl as _QueryImpl, QueryParams as _QueryParams, ReferenceImpl as _ReferenceImpl, forceRestClient as _TEST_ACCESS_forceRestClient, hijackHash as _TEST_ACCESS_hijackHash, _initStandalone, repoManagerDatabaseFromApp as _repoManagerDatabaseFromApp, setSDKVersion as _setSDKVersion, validatePathString as _validatePathString, validateWritablePath as _validateWritablePath, child, connectDatabaseEmulator, enableLogging, endAt, endBefore, equalTo, forceLongPolling, forceWebSockets, get, getDatabase, goOffline, goOnline, increment, limitToFirst, limitToLast, off, onChildAdded, onChildChanged, onChildMoved, onChildRemoved, onDisconnect, onValue, orderByChild, orderByKey, orderByPriority, orderByValue, push, query, ref, refFromURL, remove, runTransaction, serverTimestamp, set, setPriority, setWithPriority, startAfter, startAt, update };
|
|
14416
14460
|
//# sourceMappingURL=index.esm5.js.map
|