@firebase/database-compat 2.0.0 → 2.0.1-canary.ffbf5a60a

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 +32 -32
  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,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 {};
@@ -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 2019 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 2019 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';