@firebase/database 1.0.0 → 1.0.1-20230718235906
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.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
|
|
|
8
8
|
var logger$1 = require('@firebase/logger');
|
|
9
9
|
|
|
10
10
|
const name = "@firebase/database";
|
|
11
|
-
const version = "1.0.
|
|
11
|
+
const version = "1.0.1-20230718235906";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
@@ -13936,6 +13936,49 @@ const forceRestClient = function (forceRestClient) {
|
|
|
13936
13936
|
repoManagerForceRestClient(forceRestClient);
|
|
13937
13937
|
};
|
|
13938
13938
|
|
|
13939
|
+
/**
|
|
13940
|
+
* @license
|
|
13941
|
+
* Copyright 2023 Google LLC
|
|
13942
|
+
*
|
|
13943
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13944
|
+
* you may not use this file except in compliance with the License.
|
|
13945
|
+
* You may obtain a copy of the License at
|
|
13946
|
+
*
|
|
13947
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13948
|
+
*
|
|
13949
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13950
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13951
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13952
|
+
* See the License for the specific language governing permissions and
|
|
13953
|
+
* limitations under the License.
|
|
13954
|
+
*/
|
|
13955
|
+
/**
|
|
13956
|
+
* Used by console to create a database based on the app,
|
|
13957
|
+
* passed database URL and a custom auth implementation.
|
|
13958
|
+
* @internal
|
|
13959
|
+
* @param app - A valid FirebaseApp-like object
|
|
13960
|
+
* @param url - A valid Firebase databaseURL
|
|
13961
|
+
* @param version - custom version e.g. firebase-admin version
|
|
13962
|
+
* @param customAppCheckImpl - custom app check implementation
|
|
13963
|
+
* @param customAuthImpl - custom auth implementation
|
|
13964
|
+
*/
|
|
13965
|
+
function _initStandalone({ app, url, version, customAuthImpl, customAppCheckImpl, nodeAdmin = false }) {
|
|
13966
|
+
setSDKVersion(version);
|
|
13967
|
+
/**
|
|
13968
|
+
* ComponentContainer('database-standalone') is just a placeholder that doesn't perform
|
|
13969
|
+
* any actual function.
|
|
13970
|
+
*/
|
|
13971
|
+
const componentContainer = new component.ComponentContainer('database-standalone');
|
|
13972
|
+
const authProvider = new component.Provider('auth-internal', componentContainer);
|
|
13973
|
+
let appCheckProvider;
|
|
13974
|
+
if (customAppCheckImpl) {
|
|
13975
|
+
appCheckProvider = new component.Provider('app-check-internal', componentContainer);
|
|
13976
|
+
appCheckProvider.setComponent(new component.Component('app-check-internal', () => customAppCheckImpl, "PRIVATE" /* ComponentType.PRIVATE */));
|
|
13977
|
+
}
|
|
13978
|
+
authProvider.setComponent(new component.Component('auth-internal', () => customAuthImpl, "PRIVATE" /* ComponentType.PRIVATE */));
|
|
13979
|
+
return repoManagerDatabaseFromApp(app, authProvider, appCheckProvider, url, nodeAdmin);
|
|
13980
|
+
}
|
|
13981
|
+
|
|
13939
13982
|
/**
|
|
13940
13983
|
* Firebase Realtime Database
|
|
13941
13984
|
*
|
|
@@ -13953,6 +13996,7 @@ exports._QueryParams = QueryParams;
|
|
|
13953
13996
|
exports._ReferenceImpl = ReferenceImpl;
|
|
13954
13997
|
exports._TEST_ACCESS_forceRestClient = forceRestClient;
|
|
13955
13998
|
exports._TEST_ACCESS_hijackHash = hijackHash;
|
|
13999
|
+
exports._initStandalone = _initStandalone;
|
|
13956
14000
|
exports._repoManagerDatabaseFromApp = repoManagerDatabaseFromApp;
|
|
13957
14001
|
exports._setSDKVersion = setSDKVersion;
|
|
13958
14002
|
exports._validatePathString = validatePathString;
|