@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.standalone.js
CHANGED
|
@@ -6,6 +6,7 @@ var Websocket = require('faye-websocket');
|
|
|
6
6
|
var util = require('@firebase/util');
|
|
7
7
|
var tslib = require('tslib');
|
|
8
8
|
var logger$1 = require('@firebase/logger');
|
|
9
|
+
var component = require('@firebase/component');
|
|
9
10
|
|
|
10
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
12
|
|
|
@@ -14357,6 +14358,50 @@ var forceRestClient = function (forceRestClient) {
|
|
|
14357
14358
|
repoManagerForceRestClient(forceRestClient);
|
|
14358
14359
|
};
|
|
14359
14360
|
|
|
14361
|
+
/**
|
|
14362
|
+
* @license
|
|
14363
|
+
* Copyright 2023 Google LLC
|
|
14364
|
+
*
|
|
14365
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
14366
|
+
* you may not use this file except in compliance with the License.
|
|
14367
|
+
* You may obtain a copy of the License at
|
|
14368
|
+
*
|
|
14369
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14370
|
+
*
|
|
14371
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14372
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14373
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14374
|
+
* See the License for the specific language governing permissions and
|
|
14375
|
+
* limitations under the License.
|
|
14376
|
+
*/
|
|
14377
|
+
/**
|
|
14378
|
+
* Used by console to create a database based on the app,
|
|
14379
|
+
* passed database URL and a custom auth implementation.
|
|
14380
|
+
* @internal
|
|
14381
|
+
* @param app - A valid FirebaseApp-like object
|
|
14382
|
+
* @param url - A valid Firebase databaseURL
|
|
14383
|
+
* @param version - custom version e.g. firebase-admin version
|
|
14384
|
+
* @param customAppCheckImpl - custom app check implementation
|
|
14385
|
+
* @param customAuthImpl - custom auth implementation
|
|
14386
|
+
*/
|
|
14387
|
+
function _initStandalone(_a) {
|
|
14388
|
+
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;
|
|
14389
|
+
setSDKVersion(version);
|
|
14390
|
+
/**
|
|
14391
|
+
* ComponentContainer('database-standalone') is just a placeholder that doesn't perform
|
|
14392
|
+
* any actual function.
|
|
14393
|
+
*/
|
|
14394
|
+
var componentContainer = new component.ComponentContainer('database-standalone');
|
|
14395
|
+
var authProvider = new component.Provider('auth-internal', componentContainer);
|
|
14396
|
+
var appCheckProvider;
|
|
14397
|
+
if (customAppCheckImpl) {
|
|
14398
|
+
appCheckProvider = new component.Provider('app-check-internal', componentContainer);
|
|
14399
|
+
appCheckProvider.setComponent(new component.Component('app-check-internal', function () { return customAppCheckImpl; }, "PRIVATE" /* ComponentType.PRIVATE */));
|
|
14400
|
+
}
|
|
14401
|
+
authProvider.setComponent(new component.Component('auth-internal', function () { return customAuthImpl; }, "PRIVATE" /* ComponentType.PRIVATE */));
|
|
14402
|
+
return repoManagerDatabaseFromApp(app, authProvider, appCheckProvider, url, nodeAdmin);
|
|
14403
|
+
}
|
|
14404
|
+
|
|
14360
14405
|
/**
|
|
14361
14406
|
* @license
|
|
14362
14407
|
* Copyright 2021 Google LLC
|
|
@@ -14385,6 +14430,7 @@ exports._QueryParams = QueryParams;
|
|
|
14385
14430
|
exports._ReferenceImpl = ReferenceImpl;
|
|
14386
14431
|
exports._TEST_ACCESS_forceRestClient = forceRestClient;
|
|
14387
14432
|
exports._TEST_ACCESS_hijackHash = hijackHash;
|
|
14433
|
+
exports._initStandalone = _initStandalone;
|
|
14388
14434
|
exports._repoManagerDatabaseFromApp = repoManagerDatabaseFromApp;
|
|
14389
14435
|
exports._setSDKVersion = setSDKVersion;
|
|
14390
14436
|
exports._validatePathString = validatePathString;
|