@firebase/database 1.0.12 → 1.0.13-20250226000544
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 +16 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +17 -9
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +16 -8
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +15 -7
- package/dist/index.standalone.js.map +1 -1
- package/dist/internal.d.ts +6 -17
- package/dist/node-esm/index.node.esm.js +17 -9
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/core/RepoInfo.d.ts +6 -1
- package/dist/node-esm/test/helpers/util.d.ts +2 -0
- package/dist/private.d.ts +6 -17
- package/dist/src/core/RepoInfo.d.ts +6 -1
- package/dist/test/helpers/util.d.ts +2 -0
- package/package.json +2 -2
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
import { EmulatorMockTokenOptions } from '@firebase/util';
|
|
18
|
+
export interface RepoInfoEmulatorOptions {
|
|
19
|
+
mockUserToken?: string | EmulatorMockTokenOptions;
|
|
20
|
+
}
|
|
17
21
|
/**
|
|
18
22
|
* A class that holds metadata about a Repo object
|
|
19
23
|
*/
|
|
@@ -25,6 +29,7 @@ export declare class RepoInfo {
|
|
|
25
29
|
readonly persistenceKey: string;
|
|
26
30
|
readonly includeNamespaceInQueryParams: boolean;
|
|
27
31
|
readonly isUsingEmulator: boolean;
|
|
32
|
+
readonly emulatorOptions: RepoInfoEmulatorOptions | null;
|
|
28
33
|
private _host;
|
|
29
34
|
private _domain;
|
|
30
35
|
internalHost: string;
|
|
@@ -36,7 +41,7 @@ export declare class RepoInfo {
|
|
|
36
41
|
* @param nodeAdmin - Whether this instance uses Admin SDK credentials
|
|
37
42
|
* @param persistenceKey - Override the default session persistence storage key
|
|
38
43
|
*/
|
|
39
|
-
constructor(host: string, secure: boolean, namespace: string, webSocketOnly: boolean, nodeAdmin?: boolean, persistenceKey?: string, includeNamespaceInQueryParams?: boolean, isUsingEmulator?: boolean);
|
|
44
|
+
constructor(host: string, secure: boolean, namespace: string, webSocketOnly: boolean, nodeAdmin?: boolean, persistenceKey?: string, includeNamespaceInQueryParams?: boolean, isUsingEmulator?: boolean, emulatorOptions?: RepoInfoEmulatorOptions | null);
|
|
40
45
|
isCacheableHost(): boolean;
|
|
41
46
|
isCustomHost(): boolean;
|
|
42
47
|
get host(): string;
|
|
@@ -18,6 +18,8 @@ import { Database, DatabaseReference } from '../../src';
|
|
|
18
18
|
import { Path } from '../../src/core/util/Path';
|
|
19
19
|
import { EventAccumulator } from './EventAccumulator';
|
|
20
20
|
export declare const TEST_PROJECT: any;
|
|
21
|
+
export declare const EMULATOR_PORT: string;
|
|
22
|
+
export declare const USE_EMULATOR: boolean;
|
|
21
23
|
export declare function getFreshRepo(path: Path): DatabaseReference;
|
|
22
24
|
export declare const DATABASE_ADDRESS: any;
|
|
23
25
|
export declare const DATABASE_URL: any;
|
package/dist/private.d.ts
CHANGED
|
@@ -2164,22 +2164,6 @@ declare class Repo {
|
|
|
2164
2164
|
toString(): string;
|
|
2165
2165
|
}
|
|
2166
2166
|
|
|
2167
|
-
/**
|
|
2168
|
-
* @license
|
|
2169
|
-
* Copyright 2017 Google LLC
|
|
2170
|
-
*
|
|
2171
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2172
|
-
* you may not use this file except in compliance with the License.
|
|
2173
|
-
* You may obtain a copy of the License at
|
|
2174
|
-
*
|
|
2175
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2176
|
-
*
|
|
2177
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2178
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2179
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2180
|
-
* See the License for the specific language governing permissions and
|
|
2181
|
-
* limitations under the License.
|
|
2182
|
-
*/
|
|
2183
2167
|
/**
|
|
2184
2168
|
* A class that holds metadata about a Repo object
|
|
2185
2169
|
*/
|
|
@@ -2191,6 +2175,7 @@ declare class RepoInfo {
|
|
|
2191
2175
|
readonly persistenceKey: string;
|
|
2192
2176
|
readonly includeNamespaceInQueryParams: boolean;
|
|
2193
2177
|
readonly isUsingEmulator: boolean;
|
|
2178
|
+
readonly emulatorOptions: RepoInfoEmulatorOptions | null;
|
|
2194
2179
|
private _host;
|
|
2195
2180
|
private _domain;
|
|
2196
2181
|
internalHost: string;
|
|
@@ -2202,7 +2187,7 @@ declare class RepoInfo {
|
|
|
2202
2187
|
* @param nodeAdmin - Whether this instance uses Admin SDK credentials
|
|
2203
2188
|
* @param persistenceKey - Override the default session persistence storage key
|
|
2204
2189
|
*/
|
|
2205
|
-
constructor(host: string, secure: boolean, namespace: string, webSocketOnly: boolean, nodeAdmin?: boolean, persistenceKey?: string, includeNamespaceInQueryParams?: boolean, isUsingEmulator?: boolean);
|
|
2190
|
+
constructor(host: string, secure: boolean, namespace: string, webSocketOnly: boolean, nodeAdmin?: boolean, persistenceKey?: string, includeNamespaceInQueryParams?: boolean, isUsingEmulator?: boolean, emulatorOptions?: RepoInfoEmulatorOptions | null);
|
|
2206
2191
|
isCacheableHost(): boolean;
|
|
2207
2192
|
isCustomHost(): boolean;
|
|
2208
2193
|
get host(): string;
|
|
@@ -2211,6 +2196,10 @@ declare class RepoInfo {
|
|
|
2211
2196
|
toURLString(): string;
|
|
2212
2197
|
}
|
|
2213
2198
|
|
|
2199
|
+
declare interface RepoInfoEmulatorOptions {
|
|
2200
|
+
mockUserToken?: string | EmulatorMockTokenOptions;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2214
2203
|
/* Excluded from this release type: _repoManagerDatabaseFromApp */
|
|
2215
2204
|
|
|
2216
2205
|
/**
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
import { EmulatorMockTokenOptions } from '@firebase/util';
|
|
18
|
+
export interface RepoInfoEmulatorOptions {
|
|
19
|
+
mockUserToken?: string | EmulatorMockTokenOptions;
|
|
20
|
+
}
|
|
17
21
|
/**
|
|
18
22
|
* A class that holds metadata about a Repo object
|
|
19
23
|
*/
|
|
@@ -25,6 +29,7 @@ export declare class RepoInfo {
|
|
|
25
29
|
readonly persistenceKey: string;
|
|
26
30
|
readonly includeNamespaceInQueryParams: boolean;
|
|
27
31
|
readonly isUsingEmulator: boolean;
|
|
32
|
+
readonly emulatorOptions: RepoInfoEmulatorOptions | null;
|
|
28
33
|
private _host;
|
|
29
34
|
private _domain;
|
|
30
35
|
internalHost: string;
|
|
@@ -36,7 +41,7 @@ export declare class RepoInfo {
|
|
|
36
41
|
* @param nodeAdmin - Whether this instance uses Admin SDK credentials
|
|
37
42
|
* @param persistenceKey - Override the default session persistence storage key
|
|
38
43
|
*/
|
|
39
|
-
constructor(host: string, secure: boolean, namespace: string, webSocketOnly: boolean, nodeAdmin?: boolean, persistenceKey?: string, includeNamespaceInQueryParams?: boolean, isUsingEmulator?: boolean);
|
|
44
|
+
constructor(host: string, secure: boolean, namespace: string, webSocketOnly: boolean, nodeAdmin?: boolean, persistenceKey?: string, includeNamespaceInQueryParams?: boolean, isUsingEmulator?: boolean, emulatorOptions?: RepoInfoEmulatorOptions | null);
|
|
40
45
|
isCacheableHost(): boolean;
|
|
41
46
|
isCustomHost(): boolean;
|
|
42
47
|
get host(): string;
|
|
@@ -18,6 +18,8 @@ import { Database, DatabaseReference } from '../../src';
|
|
|
18
18
|
import { Path } from '../../src/core/util/Path';
|
|
19
19
|
import { EventAccumulator } from './EventAccumulator';
|
|
20
20
|
export declare const TEST_PROJECT: any;
|
|
21
|
+
export declare const EMULATOR_PORT: string;
|
|
22
|
+
export declare const USE_EMULATOR: boolean;
|
|
21
23
|
export declare function getFreshRepo(path: Path): DatabaseReference;
|
|
22
24
|
export declare const DATABASE_ADDRESS: any;
|
|
23
25
|
export declare const DATABASE_URL: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/database",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13-20250226000544",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"main": "dist/index.node.cjs.js",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"tslib": "^2.1.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@firebase/app": "0.11.
|
|
60
|
+
"@firebase/app": "0.11.1",
|
|
61
61
|
"rollup": "2.79.2",
|
|
62
62
|
"rollup-plugin-typescript2": "0.36.0",
|
|
63
63
|
"typescript": "5.5.4"
|