@firebase/installations 0.6.10 → 0.6.11

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 (99) hide show
  1. package/dist/esm/index.esm2017.js +1102 -1102
  2. package/dist/esm/index.esm2017.js.map +1 -1
  3. package/dist/esm/src/api/delete-installations.d.ts +24 -24
  4. package/dist/esm/src/api/delete-installations.test.d.ts +17 -17
  5. package/dist/esm/src/api/get-id.d.ts +25 -25
  6. package/dist/esm/src/api/get-id.test.d.ts +17 -17
  7. package/dist/esm/src/api/get-installations.d.ts +26 -26
  8. package/dist/esm/src/api/get-token.d.ts +26 -26
  9. package/dist/esm/src/api/get-token.test.d.ts +17 -17
  10. package/dist/esm/src/api/index.d.ts +21 -21
  11. package/dist/esm/src/api/on-id-change.d.ts +39 -39
  12. package/dist/esm/src/api/on-id-change.test.d.ts +17 -17
  13. package/dist/esm/src/functions/common.d.ts +38 -38
  14. package/dist/esm/src/functions/common.test.d.ts +17 -17
  15. package/dist/esm/src/functions/config.d.ts +17 -17
  16. package/dist/esm/src/functions/create-installation-request.d.ts +19 -19
  17. package/dist/esm/src/functions/create-installation-request.test.d.ts +17 -17
  18. package/dist/esm/src/functions/delete-installation-request.d.ts +19 -19
  19. package/dist/esm/src/functions/delete-installation-request.test.d.ts +17 -17
  20. package/dist/esm/src/functions/generate-auth-token-request.d.ts +19 -19
  21. package/dist/esm/src/functions/generate-auth-token-request.test.d.ts +17 -17
  22. package/dist/esm/src/helpers/buffer-to-base64-url-safe.d.ts +17 -17
  23. package/dist/esm/src/helpers/buffer-to-base64-url-safe.test.d.ts +17 -17
  24. package/dist/esm/src/helpers/extract-app-config.d.ts +19 -19
  25. package/dist/esm/src/helpers/extract-app-config.test.d.ts +17 -17
  26. package/dist/esm/src/helpers/fid-changed.d.ts +25 -25
  27. package/dist/esm/src/helpers/fid-changed.test.d.ts +17 -17
  28. package/dist/esm/src/helpers/generate-fid.d.ts +23 -23
  29. package/dist/esm/src/helpers/generate-fid.test.d.ts +17 -17
  30. package/dist/esm/src/helpers/get-installation-entry.d.ts +28 -28
  31. package/dist/esm/src/helpers/get-installation-entry.test.d.ts +17 -17
  32. package/dist/esm/src/helpers/idb-manager.d.ts +32 -32
  33. package/dist/esm/src/helpers/idb-manager.test.d.ts +17 -17
  34. package/dist/esm/src/helpers/refresh-auth-token.d.ts +25 -25
  35. package/dist/esm/src/helpers/refresh-auth-token.test.d.ts +17 -17
  36. package/dist/esm/src/index.d.ts +8 -8
  37. package/dist/esm/src/interfaces/api-response.d.ts +31 -31
  38. package/dist/esm/src/interfaces/installation-entry.d.ts +85 -85
  39. package/dist/esm/src/interfaces/installation-impl.d.ts +29 -29
  40. package/dist/esm/src/interfaces/public-types.d.ts +50 -50
  41. package/dist/esm/src/testing/compare-headers.d.ts +21 -21
  42. package/dist/esm/src/testing/compare-headers.test.d.ts +17 -17
  43. package/dist/esm/src/testing/fake-generators.d.ts +21 -21
  44. package/dist/esm/src/testing/setup.d.ts +17 -17
  45. package/dist/esm/src/util/constants.d.ts +23 -23
  46. package/dist/esm/src/util/errors.d.ts +46 -46
  47. package/dist/esm/src/util/get-key.d.ts +19 -19
  48. package/dist/esm/src/util/sleep.d.ts +18 -18
  49. package/dist/esm/src/util/sleep.test.d.ts +17 -17
  50. package/dist/index.cjs.js +1102 -1102
  51. package/dist/index.cjs.js.map +1 -1
  52. package/dist/src/api/delete-installations.d.ts +24 -24
  53. package/dist/src/api/delete-installations.test.d.ts +17 -17
  54. package/dist/src/api/get-id.d.ts +25 -25
  55. package/dist/src/api/get-id.test.d.ts +17 -17
  56. package/dist/src/api/get-installations.d.ts +26 -26
  57. package/dist/src/api/get-token.d.ts +26 -26
  58. package/dist/src/api/get-token.test.d.ts +17 -17
  59. package/dist/src/api/index.d.ts +21 -21
  60. package/dist/src/api/on-id-change.d.ts +39 -39
  61. package/dist/src/api/on-id-change.test.d.ts +17 -17
  62. package/dist/src/functions/common.d.ts +38 -38
  63. package/dist/src/functions/common.test.d.ts +17 -17
  64. package/dist/src/functions/config.d.ts +17 -17
  65. package/dist/src/functions/create-installation-request.d.ts +19 -19
  66. package/dist/src/functions/create-installation-request.test.d.ts +17 -17
  67. package/dist/src/functions/delete-installation-request.d.ts +19 -19
  68. package/dist/src/functions/delete-installation-request.test.d.ts +17 -17
  69. package/dist/src/functions/generate-auth-token-request.d.ts +19 -19
  70. package/dist/src/functions/generate-auth-token-request.test.d.ts +17 -17
  71. package/dist/src/helpers/buffer-to-base64-url-safe.d.ts +17 -17
  72. package/dist/src/helpers/buffer-to-base64-url-safe.test.d.ts +17 -17
  73. package/dist/src/helpers/extract-app-config.d.ts +19 -19
  74. package/dist/src/helpers/extract-app-config.test.d.ts +17 -17
  75. package/dist/src/helpers/fid-changed.d.ts +25 -25
  76. package/dist/src/helpers/fid-changed.test.d.ts +17 -17
  77. package/dist/src/helpers/generate-fid.d.ts +23 -23
  78. package/dist/src/helpers/generate-fid.test.d.ts +17 -17
  79. package/dist/src/helpers/get-installation-entry.d.ts +28 -28
  80. package/dist/src/helpers/get-installation-entry.test.d.ts +17 -17
  81. package/dist/src/helpers/idb-manager.d.ts +32 -32
  82. package/dist/src/helpers/idb-manager.test.d.ts +17 -17
  83. package/dist/src/helpers/refresh-auth-token.d.ts +25 -25
  84. package/dist/src/helpers/refresh-auth-token.test.d.ts +17 -17
  85. package/dist/src/index.d.ts +8 -8
  86. package/dist/src/interfaces/api-response.d.ts +31 -31
  87. package/dist/src/interfaces/installation-entry.d.ts +85 -85
  88. package/dist/src/interfaces/installation-impl.d.ts +29 -29
  89. package/dist/src/interfaces/public-types.d.ts +50 -50
  90. package/dist/src/testing/compare-headers.d.ts +21 -21
  91. package/dist/src/testing/compare-headers.test.d.ts +17 -17
  92. package/dist/src/testing/fake-generators.d.ts +21 -21
  93. package/dist/src/testing/setup.d.ts +17 -17
  94. package/dist/src/util/constants.d.ts +23 -23
  95. package/dist/src/util/errors.d.ts +46 -46
  96. package/dist/src/util/get-key.d.ts +19 -19
  97. package/dist/src/util/sleep.d.ts +18 -18
  98. package/dist/src/util/sleep.test.d.ts +17 -17
  99. package/package.json +5 -5
@@ -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 declare function bufferToBase64UrlSafe(array: Uint8Array): string;
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 declare function bufferToBase64UrlSafe(array: Uint8Array): string;
@@ -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
- import '../testing/setup';
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
+ import '../testing/setup';
@@ -1,19 +1,19 @@
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
- import { FirebaseApp } from '@firebase/app';
18
- import { AppConfig } from '../interfaces/installation-impl';
19
- export declare function extractAppConfig(app: FirebaseApp): AppConfig;
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
+ import { FirebaseApp } from '@firebase/app';
18
+ import { AppConfig } from '../interfaces/installation-impl';
19
+ export declare function extractAppConfig(app: FirebaseApp): AppConfig;
@@ -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
- import '../testing/setup';
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
+ import '../testing/setup';
@@ -1,25 +1,25 @@
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
- import { AppConfig } from '../interfaces/installation-impl';
18
- import { IdChangeCallbackFn } from '../api';
19
- /**
20
- * Calls the onIdChange callbacks with the new FID value, and broadcasts the
21
- * change to other tabs.
22
- */
23
- export declare function fidChanged(appConfig: AppConfig, fid: string): void;
24
- export declare function addCallback(appConfig: AppConfig, callback: IdChangeCallbackFn): void;
25
- export declare function removeCallback(appConfig: AppConfig, callback: IdChangeCallbackFn): void;
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
+ import { AppConfig } from '../interfaces/installation-impl';
18
+ import { IdChangeCallbackFn } from '../api';
19
+ /**
20
+ * Calls the onIdChange callbacks with the new FID value, and broadcasts the
21
+ * change to other tabs.
22
+ */
23
+ export declare function fidChanged(appConfig: AppConfig, fid: string): void;
24
+ export declare function addCallback(appConfig: AppConfig, callback: IdChangeCallbackFn): void;
25
+ export declare function removeCallback(appConfig: AppConfig, callback: IdChangeCallbackFn): void;
@@ -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
- import '../testing/setup';
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
+ import '../testing/setup';
@@ -1,23 +1,23 @@
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 declare const VALID_FID_PATTERN: RegExp;
18
- export declare const INVALID_FID = "";
19
- /**
20
- * Generates a new FID using random values from Web Crypto API.
21
- * Returns an empty string if FID generation fails for any reason.
22
- */
23
- export declare function generateFid(): string;
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 declare const VALID_FID_PATTERN: RegExp;
18
+ export declare const INVALID_FID = "";
19
+ /**
20
+ * Generates a new FID using random values from Web Crypto API.
21
+ * Returns an empty string if FID generation fails for any reason.
22
+ */
23
+ export declare function generateFid(): string;
@@ -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
- import '../testing/setup';
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
+ import '../testing/setup';
@@ -1,28 +1,28 @@
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
- import { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
18
- import { InstallationEntry, RegisteredInstallationEntry } from '../interfaces/installation-entry';
19
- export interface InstallationEntryWithRegistrationPromise {
20
- installationEntry: InstallationEntry;
21
- /** Exist iff the installationEntry is not registered. */
22
- registrationPromise?: Promise<RegisteredInstallationEntry>;
23
- }
24
- /**
25
- * Updates and returns the InstallationEntry from the database.
26
- * Also triggers a registration request if it is necessary and possible.
27
- */
28
- export declare function getInstallationEntry(installations: FirebaseInstallationsImpl): Promise<InstallationEntryWithRegistrationPromise>;
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
+ import { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
18
+ import { InstallationEntry, RegisteredInstallationEntry } from '../interfaces/installation-entry';
19
+ export interface InstallationEntryWithRegistrationPromise {
20
+ installationEntry: InstallationEntry;
21
+ /** Exist iff the installationEntry is not registered. */
22
+ registrationPromise?: Promise<RegisteredInstallationEntry>;
23
+ }
24
+ /**
25
+ * Updates and returns the InstallationEntry from the database.
26
+ * Also triggers a registration request if it is necessary and possible.
27
+ */
28
+ export declare function getInstallationEntry(installations: FirebaseInstallationsImpl): Promise<InstallationEntryWithRegistrationPromise>;
@@ -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
- import '../testing/setup';
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
+ import '../testing/setup';
@@ -1,32 +1,32 @@
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
- import { AppConfig } from '../interfaces/installation-impl';
18
- import { InstallationEntry } from '../interfaces/installation-entry';
19
- /** Gets record(s) from the objectStore that match the given key. */
20
- export declare function get(appConfig: AppConfig): Promise<InstallationEntry | undefined>;
21
- /** Assigns or overwrites the record for the given key with the given value. */
22
- export declare function set<ValueType extends InstallationEntry>(appConfig: AppConfig, value: ValueType): Promise<ValueType>;
23
- /** Removes record(s) from the objectStore that match the given key. */
24
- export declare function remove(appConfig: AppConfig): Promise<void>;
25
- /**
26
- * Atomically updates a record with the result of updateFn, which gets
27
- * called with the current value. If newValue is undefined, the record is
28
- * deleted instead.
29
- * @return Updated value
30
- */
31
- export declare function update<ValueType extends InstallationEntry | undefined>(appConfig: AppConfig, updateFn: (previousValue: InstallationEntry | undefined) => ValueType): Promise<ValueType>;
32
- export declare function clear(): Promise<void>;
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
+ import { AppConfig } from '../interfaces/installation-impl';
18
+ import { InstallationEntry } from '../interfaces/installation-entry';
19
+ /** Gets record(s) from the objectStore that match the given key. */
20
+ export declare function get(appConfig: AppConfig): Promise<InstallationEntry | undefined>;
21
+ /** Assigns or overwrites the record for the given key with the given value. */
22
+ export declare function set<ValueType extends InstallationEntry>(appConfig: AppConfig, value: ValueType): Promise<ValueType>;
23
+ /** Removes record(s) from the objectStore that match the given key. */
24
+ export declare function remove(appConfig: AppConfig): Promise<void>;
25
+ /**
26
+ * Atomically updates a record with the result of updateFn, which gets
27
+ * called with the current value. If newValue is undefined, the record is
28
+ * deleted instead.
29
+ * @return Updated value
30
+ */
31
+ export declare function update<ValueType extends InstallationEntry | undefined>(appConfig: AppConfig, updateFn: (previousValue: InstallationEntry | undefined) => ValueType): Promise<ValueType>;
32
+ export declare function clear(): Promise<void>;
@@ -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
- import '../testing/setup';
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
+ import '../testing/setup';
@@ -1,25 +1,25 @@
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
- import { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
18
- import { CompletedAuthToken } from '../interfaces/installation-entry';
19
- /**
20
- * Returns a valid authentication token for the installation. Generates a new
21
- * token if one doesn't exist, is expired or about to expire.
22
- *
23
- * Should only be called if the Firebase Installation is registered.
24
- */
25
- export declare function refreshAuthToken(installations: FirebaseInstallationsImpl, forceRefresh?: boolean): Promise<CompletedAuthToken>;
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
+ import { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
18
+ import { CompletedAuthToken } from '../interfaces/installation-entry';
19
+ /**
20
+ * Returns a valid authentication token for the installation. Generates a new
21
+ * token if one doesn't exist, is expired or about to expire.
22
+ *
23
+ * Should only be called if the Firebase Installation is registered.
24
+ */
25
+ export declare function refreshAuthToken(installations: FirebaseInstallationsImpl, forceRefresh?: boolean): Promise<CompletedAuthToken>;
@@ -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
- import '../testing/setup';
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
+ import '../testing/setup';
@@ -1,8 +1,8 @@
1
- /**
2
- * The Firebase Installations Web SDK.
3
- * This SDK does not work in a Node.js environment.
4
- *
5
- * @packageDocumentation
6
- */
7
- export * from './api';
8
- export * from './interfaces/public-types';
1
+ /**
2
+ * The Firebase Installations Web SDK.
3
+ * This SDK does not work in a Node.js environment.
4
+ *
5
+ * @packageDocumentation
6
+ */
7
+ export * from './api';
8
+ export * from './interfaces/public-types';