@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
|
@@ -27,3 +27,4 @@ export { validatePathString as _validatePathString, validateWritablePath as _val
|
|
|
27
27
|
export { UserCallback as _UserCallback } from './core/view/EventRegistration';
|
|
28
28
|
export { QueryParams as _QueryParams } from './core/view/QueryParams';
|
|
29
29
|
export { hijackHash as _TEST_ACCESS_hijackHash, forceRestClient as _TEST_ACCESS_forceRestClient } from './api/test_access';
|
|
30
|
+
export * from './internal/index';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { FirebaseAppCheckInternal } from '@firebase/app-check-interop-types';
|
|
18
|
+
import { FirebaseApp } from '@firebase/app-types';
|
|
19
|
+
import { FirebaseAuthInternal } from '@firebase/auth-interop-types';
|
|
20
|
+
import { Database } from '../api.standalone';
|
|
21
|
+
/**
|
|
22
|
+
* Used by console to create a database based on the app,
|
|
23
|
+
* passed database URL and a custom auth implementation.
|
|
24
|
+
* @internal
|
|
25
|
+
* @param app - A valid FirebaseApp-like object
|
|
26
|
+
* @param url - A valid Firebase databaseURL
|
|
27
|
+
* @param version - custom version e.g. firebase-admin version
|
|
28
|
+
* @param customAppCheckImpl - custom app check implementation
|
|
29
|
+
* @param customAuthImpl - custom auth implementation
|
|
30
|
+
*/
|
|
31
|
+
export declare function _initStandalone({ app, url, version, customAuthImpl, customAppCheckImpl, nodeAdmin }: {
|
|
32
|
+
app: FirebaseApp;
|
|
33
|
+
url: string;
|
|
34
|
+
version: string;
|
|
35
|
+
customAuthImpl: FirebaseAuthInternal;
|
|
36
|
+
customAppCheckImpl?: FirebaseAppCheckInternal;
|
|
37
|
+
nodeAdmin?: boolean;
|
|
38
|
+
}): Database;
|
package/dist/private.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ import { AppCheckTokenListener } from '@firebase/app-check-interop-types';
|
|
|
9
9
|
import { AppCheckTokenResult } from '@firebase/app-check-interop-types';
|
|
10
10
|
import { EmulatorMockTokenOptions } from '@firebase/util';
|
|
11
11
|
import { FirebaseApp } from '@firebase/app';
|
|
12
|
+
import { FirebaseApp as FirebaseApp_2 } from '@firebase/app-types';
|
|
13
|
+
import { FirebaseAppCheckInternal } from '@firebase/app-check-interop-types';
|
|
14
|
+
import { FirebaseAuthInternal } from '@firebase/auth-interop-types';
|
|
12
15
|
import { FirebaseAuthInternalName } from '@firebase/auth-interop-types';
|
|
13
16
|
import { FirebaseAuthTokenData } from '@firebase/app-types/private';
|
|
14
17
|
import { Provider } from '@firebase/component';
|
|
@@ -765,6 +768,8 @@ declare abstract class Index {
|
|
|
765
768
|
abstract toString(): string;
|
|
766
769
|
}
|
|
767
770
|
|
|
771
|
+
/* Excluded from this release type: _initStandalone */
|
|
772
|
+
|
|
768
773
|
/**
|
|
769
774
|
* Represents a child snapshot of a `Reference` that is being iterated over. The key will never be undefined.
|
|
770
775
|
*/
|
package/dist/public.d.ts
CHANGED
|
@@ -359,6 +359,7 @@ export declare function goOnline(db: Database): void;
|
|
|
359
359
|
* @returns A placeholder value for modifying data atomically server-side.
|
|
360
360
|
*/
|
|
361
361
|
export declare function increment(delta: number): object;
|
|
362
|
+
/* Excluded from this release type: _initStandalone */
|
|
362
363
|
/**
|
|
363
364
|
* Represents a child snapshot of a `Reference` that is being iterated over. The key will never be undefined.
|
|
364
365
|
*/
|
|
@@ -27,3 +27,4 @@ export { validatePathString as _validatePathString, validateWritablePath as _val
|
|
|
27
27
|
export { UserCallback as _UserCallback } from './core/view/EventRegistration';
|
|
28
28
|
export { QueryParams as _QueryParams } from './core/view/QueryParams';
|
|
29
29
|
export { hijackHash as _TEST_ACCESS_hijackHash, forceRestClient as _TEST_ACCESS_forceRestClient } from './api/test_access';
|
|
30
|
+
export * from './internal/index';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { FirebaseAppCheckInternal } from '@firebase/app-check-interop-types';
|
|
18
|
+
import { FirebaseApp } from '@firebase/app-types';
|
|
19
|
+
import { FirebaseAuthInternal } from '@firebase/auth-interop-types';
|
|
20
|
+
import { Database } from '../api.standalone';
|
|
21
|
+
/**
|
|
22
|
+
* Used by console to create a database based on the app,
|
|
23
|
+
* passed database URL and a custom auth implementation.
|
|
24
|
+
* @internal
|
|
25
|
+
* @param app - A valid FirebaseApp-like object
|
|
26
|
+
* @param url - A valid Firebase databaseURL
|
|
27
|
+
* @param version - custom version e.g. firebase-admin version
|
|
28
|
+
* @param customAppCheckImpl - custom app check implementation
|
|
29
|
+
* @param customAuthImpl - custom auth implementation
|
|
30
|
+
*/
|
|
31
|
+
export declare function _initStandalone({ app, url, version, customAuthImpl, customAppCheckImpl, nodeAdmin }: {
|
|
32
|
+
app: FirebaseApp;
|
|
33
|
+
url: string;
|
|
34
|
+
version: string;
|
|
35
|
+
customAuthImpl: FirebaseAuthInternal;
|
|
36
|
+
customAppCheckImpl?: FirebaseAppCheckInternal;
|
|
37
|
+
nodeAdmin?: boolean;
|
|
38
|
+
}): Database;
|