@firebase/database-compat 2.0.0-canary.4db3d3e7b → 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.
Files changed (53) hide show
  1. package/dist/database-compat/src/api/Database.d.ts +74 -74
  2. package/dist/database-compat/src/api/Reference.d.ts +207 -207
  3. package/dist/database-compat/src/api/TransactionResult.d.ts +26 -26
  4. package/dist/database-compat/src/api/internal.d.ts +41 -41
  5. package/dist/database-compat/src/api/onDisconnect.d.ts +27 -27
  6. package/dist/database-compat/src/index.d.ts +783 -65
  7. package/dist/database-compat/src/index.node.d.ts +30 -30
  8. package/dist/database-compat/src/index.standalone.d.ts +52 -52
  9. package/dist/database-compat/src/util/util.d.ts +17 -17
  10. package/dist/database-compat/src/util/validation.d.ts +18 -18
  11. package/dist/database-compat/test/browser/crawler_support.test.d.ts +17 -17
  12. package/dist/database-compat/test/database.test.d.ts +17 -17
  13. package/dist/database-compat/test/datasnapshot.test.d.ts +17 -17
  14. package/dist/database-compat/test/helpers/events.d.ts +34 -34
  15. package/dist/database-compat/test/helpers/util.d.ts +42 -42
  16. package/dist/database-compat/test/info.test.d.ts +17 -17
  17. package/dist/database-compat/test/order.test.d.ts +17 -17
  18. package/dist/database-compat/test/order_by.test.d.ts +17 -17
  19. package/dist/database-compat/test/promise.test.d.ts +17 -17
  20. package/dist/database-compat/test/query.test.d.ts +17 -17
  21. package/dist/database-compat/test/servervalues.test.d.ts +17 -17
  22. package/dist/database-compat/test/transaction.test.d.ts +17 -17
  23. package/dist/index.esm2017.js +830 -830
  24. package/dist/index.esm2017.js.map +1 -1
  25. package/dist/index.js +830 -830
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.standalone.js +14762 -14762
  28. package/dist/index.standalone.js.map +1 -1
  29. package/dist/node-esm/database-compat/src/api/Database.d.ts +74 -74
  30. package/dist/node-esm/database-compat/src/api/Reference.d.ts +207 -207
  31. package/dist/node-esm/database-compat/src/api/TransactionResult.d.ts +26 -26
  32. package/dist/node-esm/database-compat/src/api/internal.d.ts +41 -41
  33. package/dist/node-esm/database-compat/src/api/onDisconnect.d.ts +27 -27
  34. package/dist/node-esm/database-compat/src/index.d.ts +32 -32
  35. package/dist/node-esm/database-compat/src/index.node.d.ts +30 -30
  36. package/dist/node-esm/database-compat/src/index.standalone.d.ts +52 -52
  37. package/dist/node-esm/database-compat/src/util/util.d.ts +17 -17
  38. package/dist/node-esm/database-compat/src/util/validation.d.ts +18 -18
  39. package/dist/node-esm/database-compat/test/browser/crawler_support.test.d.ts +17 -17
  40. package/dist/node-esm/database-compat/test/database.test.d.ts +17 -17
  41. package/dist/node-esm/database-compat/test/datasnapshot.test.d.ts +17 -17
  42. package/dist/node-esm/database-compat/test/helpers/events.d.ts +34 -34
  43. package/dist/node-esm/database-compat/test/helpers/util.d.ts +42 -42
  44. package/dist/node-esm/database-compat/test/info.test.d.ts +17 -17
  45. package/dist/node-esm/database-compat/test/order.test.d.ts +17 -17
  46. package/dist/node-esm/database-compat/test/order_by.test.d.ts +17 -17
  47. package/dist/node-esm/database-compat/test/promise.test.d.ts +17 -17
  48. package/dist/node-esm/database-compat/test/query.test.d.ts +17 -17
  49. package/dist/node-esm/database-compat/test/servervalues.test.d.ts +17 -17
  50. package/dist/node-esm/database-compat/test/transaction.test.d.ts +17 -17
  51. package/dist/node-esm/index.js +830 -830
  52. package/dist/node-esm/index.js.map +1 -1
  53. package/package.json +8 -8
@@ -1,41 +1,41 @@
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 { FirebaseAppCheckInternal } from '@firebase/app-check-interop-types';
18
- import { FirebaseApp } from '@firebase/app-types';
19
- import { FirebaseAuthInternal } from '@firebase/auth-interop-types';
20
- import * as types from '@firebase/database-types';
21
- /**
22
- * Used by console to create a database based on the app,
23
- * passed database URL and a custom auth implementation.
24
- *
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 customAuthImpl - custom auth implementation
29
- */
30
- export declare function initStandalone<T>({ app, url, version, customAuthImpl, customAppCheckImpl, namespace, nodeAdmin }: {
31
- app: FirebaseApp;
32
- url: string;
33
- version: string;
34
- customAuthImpl: FirebaseAuthInternal;
35
- customAppCheckImpl?: FirebaseAppCheckInternal;
36
- namespace: T;
37
- nodeAdmin?: boolean;
38
- }): {
39
- instance: types.Database;
40
- namespace: T;
41
- };
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 { FirebaseAppCheckInternal } from '@firebase/app-check-interop-types';
18
+ import { FirebaseApp } from '@firebase/app-types';
19
+ import { FirebaseAuthInternal } from '@firebase/auth-interop-types';
20
+ import * as types from '@firebase/database-types';
21
+ /**
22
+ * Used by console to create a database based on the app,
23
+ * passed database URL and a custom auth implementation.
24
+ *
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 customAuthImpl - custom auth implementation
29
+ */
30
+ export declare function initStandalone<T>({ app, url, version, customAuthImpl, customAppCheckImpl, namespace, nodeAdmin }: {
31
+ app: FirebaseApp;
32
+ url: string;
33
+ version: string;
34
+ customAuthImpl: FirebaseAuthInternal;
35
+ customAppCheckImpl?: FirebaseAppCheckInternal;
36
+ namespace: T;
37
+ nodeAdmin?: boolean;
38
+ }): {
39
+ instance: types.Database;
40
+ namespace: T;
41
+ };
@@ -1,27 +1,27 @@
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 { OnDisconnect as ModularOnDisconnect } from '@firebase/database';
18
- import { Compat } from '@firebase/util';
19
- export declare class OnDisconnect implements Compat<ModularOnDisconnect> {
20
- readonly _delegate: ModularOnDisconnect;
21
- constructor(_delegate: ModularOnDisconnect);
22
- cancel(onComplete?: (a: Error | null) => void): Promise<void>;
23
- remove(onComplete?: (a: Error | null) => void): Promise<void>;
24
- set(value: unknown, onComplete?: (a: Error | null) => void): Promise<void>;
25
- setWithPriority(value: unknown, priority: number | string | null, onComplete?: (a: Error | null) => void): Promise<void>;
26
- update(objectToMerge: Record<string, unknown>, onComplete?: (a: Error | null) => void): Promise<void>;
27
- }
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 { OnDisconnect as ModularOnDisconnect } from '@firebase/database';
18
+ import { Compat } from '@firebase/util';
19
+ export declare class OnDisconnect implements Compat<ModularOnDisconnect> {
20
+ readonly _delegate: ModularOnDisconnect;
21
+ constructor(_delegate: ModularOnDisconnect);
22
+ cancel(onComplete?: (a: Error | null) => void): Promise<void>;
23
+ remove(onComplete?: (a: Error | null) => void): Promise<void>;
24
+ set(value: unknown, onComplete?: (a: Error | null) => void): Promise<void>;
25
+ setWithPriority(value: unknown, priority: number | string | null, onComplete?: (a: Error | null) => void): Promise<void>;
26
+ update(objectToMerge: Record<string, unknown>, onComplete?: (a: Error | null) => void): Promise<void>;
27
+ }