@firebase/database-compat 2.0.0-canary.a75082f06 → 2.0.0-canary.e577a408c
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/database-compat/src/api/Database.d.ts +74 -74
- package/dist/database-compat/src/api/Reference.d.ts +207 -207
- package/dist/database-compat/src/api/TransactionResult.d.ts +26 -26
- package/dist/database-compat/src/api/internal.d.ts +41 -41
- package/dist/database-compat/src/api/onDisconnect.d.ts +27 -27
- package/dist/database-compat/src/index.d.ts +783 -65
- package/dist/database-compat/src/index.node.d.ts +30 -30
- package/dist/database-compat/src/index.standalone.d.ts +52 -52
- package/dist/database-compat/src/util/util.d.ts +17 -17
- package/dist/database-compat/src/util/validation.d.ts +18 -18
- package/dist/database-compat/test/browser/crawler_support.test.d.ts +17 -17
- package/dist/database-compat/test/database.test.d.ts +17 -17
- package/dist/database-compat/test/datasnapshot.test.d.ts +17 -17
- package/dist/database-compat/test/helpers/events.d.ts +34 -34
- package/dist/database-compat/test/helpers/util.d.ts +42 -42
- package/dist/database-compat/test/info.test.d.ts +17 -17
- package/dist/database-compat/test/order.test.d.ts +17 -17
- package/dist/database-compat/test/order_by.test.d.ts +17 -17
- package/dist/database-compat/test/promise.test.d.ts +17 -17
- package/dist/database-compat/test/query.test.d.ts +17 -17
- package/dist/database-compat/test/servervalues.test.d.ts +17 -17
- package/dist/database-compat/test/transaction.test.d.ts +17 -17
- package/dist/index.esm2017.js +830 -830
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.js +830 -830
- package/dist/index.js.map +1 -1
- package/dist/index.standalone.js +14762 -14762
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/database-compat/src/api/Database.d.ts +74 -74
- package/dist/node-esm/database-compat/src/api/Reference.d.ts +207 -207
- package/dist/node-esm/database-compat/src/api/TransactionResult.d.ts +26 -26
- package/dist/node-esm/database-compat/src/api/internal.d.ts +41 -41
- package/dist/node-esm/database-compat/src/api/onDisconnect.d.ts +27 -27
- package/dist/node-esm/database-compat/src/index.d.ts +32 -32
- package/dist/node-esm/database-compat/src/index.node.d.ts +30 -30
- package/dist/node-esm/database-compat/src/index.standalone.d.ts +52 -52
- package/dist/node-esm/database-compat/src/util/util.d.ts +17 -17
- package/dist/node-esm/database-compat/src/util/validation.d.ts +18 -18
- package/dist/node-esm/database-compat/test/browser/crawler_support.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/database.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/datasnapshot.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/helpers/events.d.ts +34 -34
- package/dist/node-esm/database-compat/test/helpers/util.d.ts +42 -42
- package/dist/node-esm/database-compat/test/info.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/order.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/order_by.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/promise.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/query.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/servervalues.test.d.ts +17 -17
- package/dist/node-esm/database-compat/test/transaction.test.d.ts +17 -17
- package/dist/node-esm/index.js +830 -830
- package/dist/node-esm/index.js.map +1 -1
- package/package.json +8 -8
@@ -1,30 +1,30 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2021 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 * as types from '@firebase/database-types';
|
18
|
-
declare module '@firebase/app-compat' {
|
19
|
-
interface FirebaseNamespace {
|
20
|
-
database?: {
|
21
|
-
(app?: FirebaseApp): types.FirebaseDatabase;
|
22
|
-
enableLogging: typeof types.enableLogging;
|
23
|
-
ServerValue: types.ServerValue;
|
24
|
-
Database: typeof types.FirebaseDatabase;
|
25
|
-
};
|
26
|
-
}
|
27
|
-
interface FirebaseApp {
|
28
|
-
database?(): types.FirebaseDatabase;
|
29
|
-
}
|
30
|
-
}
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 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 * as types from '@firebase/database-types';
|
18
|
+
declare module '@firebase/app-compat' {
|
19
|
+
interface FirebaseNamespace {
|
20
|
+
database?: {
|
21
|
+
(app?: FirebaseApp): types.FirebaseDatabase;
|
22
|
+
enableLogging: typeof types.enableLogging;
|
23
|
+
ServerValue: types.ServerValue;
|
24
|
+
Database: typeof types.FirebaseDatabase;
|
25
|
+
};
|
26
|
+
}
|
27
|
+
interface FirebaseApp {
|
28
|
+
database?(): types.FirebaseDatabase;
|
29
|
+
}
|
30
|
+
}
|
@@ -1,52 +1,52 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2021 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 { FirebaseApp } from '@firebase/app-types';
|
18
|
-
import { enableLogging } from '@firebase/database';
|
19
|
-
import { Database } from './api/Database';
|
20
|
-
import * as INTERNAL from './api/internal';
|
21
|
-
import { DataSnapshot, Query, Reference } from './api/Reference';
|
22
|
-
declare const ServerValue: {
|
23
|
-
TIMESTAMP: object;
|
24
|
-
increment: (delta: number) => object;
|
25
|
-
};
|
26
|
-
/**
|
27
|
-
* A one off register function which returns a database based on the app and
|
28
|
-
* passed database URL. (Used by the Admin SDK)
|
29
|
-
*
|
30
|
-
* @param app - A valid FirebaseApp-like object
|
31
|
-
* @param url - A valid Firebase databaseURL
|
32
|
-
* @param version - custom version e.g. firebase-admin version
|
33
|
-
* @param nodeAdmin - true if the SDK is being initialized from Firebase Admin.
|
34
|
-
*/
|
35
|
-
export declare function initStandalone(app: FirebaseApp, url: string, version: string, nodeAdmin?: boolean): {
|
36
|
-
instance: import("@firebase/database-types").Database;
|
37
|
-
namespace: {
|
38
|
-
Reference: typeof Reference;
|
39
|
-
Query: typeof Query;
|
40
|
-
Database: typeof Database;
|
41
|
-
DataSnapshot: typeof DataSnapshot;
|
42
|
-
enableLogging: typeof enableLogging;
|
43
|
-
INTERNAL: typeof INTERNAL;
|
44
|
-
ServerValue: {
|
45
|
-
TIMESTAMP: object;
|
46
|
-
increment: (delta: number) => object;
|
47
|
-
};
|
48
|
-
};
|
49
|
-
};
|
50
|
-
export { Database, Query, Reference, enableLogging, ServerValue };
|
51
|
-
export { OnDisconnect } from '@firebase/database';
|
52
|
-
export { DataSnapshot } from './api/Reference';
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 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 { FirebaseApp } from '@firebase/app-types';
|
18
|
+
import { enableLogging } from '@firebase/database';
|
19
|
+
import { Database } from './api/Database';
|
20
|
+
import * as INTERNAL from './api/internal';
|
21
|
+
import { DataSnapshot, Query, Reference } from './api/Reference';
|
22
|
+
declare const ServerValue: {
|
23
|
+
TIMESTAMP: object;
|
24
|
+
increment: (delta: number) => object;
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* A one off register function which returns a database based on the app and
|
28
|
+
* passed database URL. (Used by the Admin SDK)
|
29
|
+
*
|
30
|
+
* @param app - A valid FirebaseApp-like object
|
31
|
+
* @param url - A valid Firebase databaseURL
|
32
|
+
* @param version - custom version e.g. firebase-admin version
|
33
|
+
* @param nodeAdmin - true if the SDK is being initialized from Firebase Admin.
|
34
|
+
*/
|
35
|
+
export declare function initStandalone(app: FirebaseApp, url: string, version: string, nodeAdmin?: boolean): {
|
36
|
+
instance: import("@firebase/database-types").Database;
|
37
|
+
namespace: {
|
38
|
+
Reference: typeof Reference;
|
39
|
+
Query: typeof Query;
|
40
|
+
Database: typeof Database;
|
41
|
+
DataSnapshot: typeof DataSnapshot;
|
42
|
+
enableLogging: typeof enableLogging;
|
43
|
+
INTERNAL: typeof INTERNAL;
|
44
|
+
ServerValue: {
|
45
|
+
TIMESTAMP: object;
|
46
|
+
increment: (delta: number) => object;
|
47
|
+
};
|
48
|
+
};
|
49
|
+
};
|
50
|
+
export { Database, Query, Reference, enableLogging, ServerValue };
|
51
|
+
export { OnDisconnect } from '@firebase/database';
|
52
|
+
export { DataSnapshot } from './api/Reference';
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2021 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
|
-
export declare const warn: (msg: string) => void;
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 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
|
+
export declare const warn: (msg: string) => void;
|
@@ -1,18 +1,18 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2021 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
|
-
export declare const validateBoolean: (fnName: string, argumentName: string, bool: unknown, optional: boolean) => void;
|
18
|
-
export declare const validateEventType: (fnName: string, eventType: string, optional: boolean) => void;
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 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
|
+
export declare const validateBoolean: (fnName: string, argumentName: string, bool: unknown, optional: boolean) => void;
|
18
|
+
export declare const validateEventType: (fnName: string, eventType: string, optional: boolean) => void;
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 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
|
-
export {};
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 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
|
+
export {};
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 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 '../src/index';
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 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 '../src/index';
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 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
|
-
export {};
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 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
|
+
export {};
|
@@ -1,34 +1,34 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 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
|
-
/**
|
18
|
-
* A set of functions to clean up event handlers.
|
19
|
-
*/
|
20
|
-
export declare let eventCleanupHandlers: any[];
|
21
|
-
/** Clean up outstanding event handlers */
|
22
|
-
export declare function eventCleanup(): void;
|
23
|
-
/**
|
24
|
-
* Creates a struct which waits for many events.
|
25
|
-
* @param pathAndEvents - an array of tuples of [Firebase, [event type strings]]
|
26
|
-
*/
|
27
|
-
export declare function eventTestHelper(pathAndEvents: any, helperName?: any): {
|
28
|
-
promise: Promise<unknown>;
|
29
|
-
initPromise: Promise<unknown>;
|
30
|
-
waiter: () => boolean;
|
31
|
-
watchesInitializedWaiter: () => boolean;
|
32
|
-
unregister: () => void;
|
33
|
-
addExpectedEvents(moreEvents: any): void;
|
34
|
-
};
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 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
|
+
/**
|
18
|
+
* A set of functions to clean up event handlers.
|
19
|
+
*/
|
20
|
+
export declare let eventCleanupHandlers: any[];
|
21
|
+
/** Clean up outstanding event handlers */
|
22
|
+
export declare function eventCleanup(): void;
|
23
|
+
/**
|
24
|
+
* Creates a struct which waits for many events.
|
25
|
+
* @param pathAndEvents - an array of tuples of [Firebase, [event type strings]]
|
26
|
+
*/
|
27
|
+
export declare function eventTestHelper(pathAndEvents: any, helperName?: any): {
|
28
|
+
promise: Promise<unknown>;
|
29
|
+
initPromise: Promise<unknown>;
|
30
|
+
waiter: () => boolean;
|
31
|
+
watchesInitializedWaiter: () => boolean;
|
32
|
+
unregister: () => void;
|
33
|
+
addExpectedEvents(moreEvents: any): void;
|
34
|
+
};
|
@@ -1,42 +1,42 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 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 '../../src/index';
|
18
|
-
import { Path } from '../../../database/src/core/util/Path';
|
19
|
-
import { Query, Reference } from '../../src/api/Reference';
|
20
|
-
export declare const TEST_PROJECT: any;
|
21
|
-
export declare const DATABASE_ADDRESS: any;
|
22
|
-
export declare const DATABASE_URL: any;
|
23
|
-
export declare function createTestApp(): import("@firebase/app-compat").FirebaseApp;
|
24
|
-
/**
|
25
|
-
* Gets or creates a root node to the test namespace. All calls sharing the
|
26
|
-
* value of opt_i will share an app context.
|
27
|
-
*/
|
28
|
-
export declare function getRootNode(i?: number, ref?: string): any;
|
29
|
-
/**
|
30
|
-
* Create multiple refs to the same top level
|
31
|
-
* push key - each on its own Firebase.Context.
|
32
|
-
*/
|
33
|
-
export declare function getRandomNode(numNodes?: any): Reference | Reference[];
|
34
|
-
export declare function getQueryValue(query: Query): Promise<unknown>;
|
35
|
-
export declare function pause(milliseconds: number): Promise<void>;
|
36
|
-
export declare function getPath(query: Query): string;
|
37
|
-
export declare function shuffle(arr: any, randFn?: () => number): void;
|
38
|
-
export declare function getFreshRepo(path: Path): any;
|
39
|
-
export declare function getFreshRepoFromReference(ref: any): any;
|
40
|
-
export declare function getSnap(path: any): any;
|
41
|
-
export declare function getVal(path: any): any;
|
42
|
-
export declare function canCreateExtraConnections(): boolean;
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 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 '../../src/index';
|
18
|
+
import { Path } from '../../../database/src/core/util/Path';
|
19
|
+
import { Query, Reference } from '../../src/api/Reference';
|
20
|
+
export declare const TEST_PROJECT: any;
|
21
|
+
export declare const DATABASE_ADDRESS: any;
|
22
|
+
export declare const DATABASE_URL: any;
|
23
|
+
export declare function createTestApp(): import("@firebase/app-compat").FirebaseApp;
|
24
|
+
/**
|
25
|
+
* Gets or creates a root node to the test namespace. All calls sharing the
|
26
|
+
* value of opt_i will share an app context.
|
27
|
+
*/
|
28
|
+
export declare function getRootNode(i?: number, ref?: string): any;
|
29
|
+
/**
|
30
|
+
* Create multiple refs to the same top level
|
31
|
+
* push key - each on its own Firebase.Context.
|
32
|
+
*/
|
33
|
+
export declare function getRandomNode(numNodes?: any): Reference | Reference[];
|
34
|
+
export declare function getQueryValue(query: Query): Promise<unknown>;
|
35
|
+
export declare function pause(milliseconds: number): Promise<void>;
|
36
|
+
export declare function getPath(query: Query): string;
|
37
|
+
export declare function shuffle(arr: any, randFn?: () => number): void;
|
38
|
+
export declare function getFreshRepo(path: Path): any;
|
39
|
+
export declare function getFreshRepoFromReference(ref: any): any;
|
40
|
+
export declare function getSnap(path: any): any;
|
41
|
+
export declare function getVal(path: any): any;
|
42
|
+
export declare function canCreateExtraConnections(): boolean;
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 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
|
-
export {};
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 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
|
+
export {};
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 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
|
-
export {};
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 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
|
+
export {};
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 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
|
-
export {};
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 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
|
+
export {};
|
@@ -1,17 +1,17 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2017 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
|
-
export {};
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2017 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
|
+
export {};
|