@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.node.cjs.js
CHANGED
|
@@ -1300,7 +1300,7 @@ var WebSocketConnection = /** @class */ (function () {
|
|
|
1300
1300
|
}());
|
|
1301
1301
|
|
|
1302
1302
|
var name = "@firebase/database";
|
|
1303
|
-
var version = "1.0.
|
|
1303
|
+
var version = "1.0.1-20230718222737";
|
|
1304
1304
|
|
|
1305
1305
|
/**
|
|
1306
1306
|
* @license
|
|
@@ -14417,6 +14417,50 @@ var forceRestClient = function (forceRestClient) {
|
|
|
14417
14417
|
repoManagerForceRestClient(forceRestClient);
|
|
14418
14418
|
};
|
|
14419
14419
|
|
|
14420
|
+
/**
|
|
14421
|
+
* @license
|
|
14422
|
+
* Copyright 2023 Google LLC
|
|
14423
|
+
*
|
|
14424
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
14425
|
+
* you may not use this file except in compliance with the License.
|
|
14426
|
+
* You may obtain a copy of the License at
|
|
14427
|
+
*
|
|
14428
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14429
|
+
*
|
|
14430
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14431
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14432
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14433
|
+
* See the License for the specific language governing permissions and
|
|
14434
|
+
* limitations under the License.
|
|
14435
|
+
*/
|
|
14436
|
+
/**
|
|
14437
|
+
* Used by console to create a database based on the app,
|
|
14438
|
+
* passed database URL and a custom auth implementation.
|
|
14439
|
+
* @internal
|
|
14440
|
+
* @param app - A valid FirebaseApp-like object
|
|
14441
|
+
* @param url - A valid Firebase databaseURL
|
|
14442
|
+
* @param version - custom version e.g. firebase-admin version
|
|
14443
|
+
* @param customAppCheckImpl - custom app check implementation
|
|
14444
|
+
* @param customAuthImpl - custom auth implementation
|
|
14445
|
+
*/
|
|
14446
|
+
function _initStandalone(_a) {
|
|
14447
|
+
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;
|
|
14448
|
+
setSDKVersion(version);
|
|
14449
|
+
/**
|
|
14450
|
+
* ComponentContainer('database-standalone') is just a placeholder that doesn't perform
|
|
14451
|
+
* any actual function.
|
|
14452
|
+
*/
|
|
14453
|
+
var componentContainer = new component.ComponentContainer('database-standalone');
|
|
14454
|
+
var authProvider = new component.Provider('auth-internal', componentContainer);
|
|
14455
|
+
var appCheckProvider;
|
|
14456
|
+
if (customAppCheckImpl) {
|
|
14457
|
+
appCheckProvider = new component.Provider('app-check-internal', componentContainer);
|
|
14458
|
+
appCheckProvider.setComponent(new component.Component('app-check-internal', function () { return customAppCheckImpl; }, "PRIVATE" /* ComponentType.PRIVATE */));
|
|
14459
|
+
}
|
|
14460
|
+
authProvider.setComponent(new component.Component('auth-internal', function () { return customAuthImpl; }, "PRIVATE" /* ComponentType.PRIVATE */));
|
|
14461
|
+
return repoManagerDatabaseFromApp(app, authProvider, appCheckProvider, url, nodeAdmin);
|
|
14462
|
+
}
|
|
14463
|
+
|
|
14420
14464
|
/**
|
|
14421
14465
|
* @license
|
|
14422
14466
|
* Copyright 2021 Google LLC
|
|
@@ -14446,6 +14490,7 @@ exports._QueryParams = QueryParams;
|
|
|
14446
14490
|
exports._ReferenceImpl = ReferenceImpl;
|
|
14447
14491
|
exports._TEST_ACCESS_forceRestClient = forceRestClient;
|
|
14448
14492
|
exports._TEST_ACCESS_hijackHash = hijackHash;
|
|
14493
|
+
exports._initStandalone = _initStandalone;
|
|
14449
14494
|
exports._repoManagerDatabaseFromApp = repoManagerDatabaseFromApp;
|
|
14450
14495
|
exports._setSDKVersion = setSDKVersion;
|
|
14451
14496
|
exports._validatePathString = validatePathString;
|