@firebase/analytics 0.10.9 → 0.10.10

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 (49) hide show
  1. package/dist/esm/index.esm2017.js +1241 -1241
  2. package/dist/esm/index.esm2017.js.map +1 -1
  3. package/dist/esm/src/api.d.ts +453 -453
  4. package/dist/esm/src/api.test.d.ts +17 -17
  5. package/dist/esm/src/constants.d.ts +32 -32
  6. package/dist/esm/src/errors.d.ts +57 -57
  7. package/dist/esm/src/factory.d.ts +74 -74
  8. package/dist/esm/src/functions.d.ts +85 -85
  9. package/dist/esm/src/functions.test.d.ts +17 -17
  10. package/dist/esm/src/get-config.d.ts +72 -72
  11. package/dist/esm/src/get-config.test.d.ts +17 -17
  12. package/dist/esm/src/helpers.d.ts +70 -71
  13. package/dist/esm/src/helpers.test.d.ts +17 -17
  14. package/dist/esm/src/index.d.ts +14 -14
  15. package/dist/esm/src/index.test.d.ts +17 -17
  16. package/dist/esm/src/initialize-analytics.d.ts +36 -36
  17. package/dist/esm/src/initialize-analytics.test.d.ts +17 -17
  18. package/dist/esm/src/logger.d.ts +18 -18
  19. package/dist/esm/src/public-types.d.ts +282 -282
  20. package/dist/esm/src/types.d.ts +55 -55
  21. package/dist/esm/testing/get-fake-firebase-services.d.ts +29 -29
  22. package/dist/esm/testing/gtag-script-util.d.ts +1 -1
  23. package/dist/esm/testing/integration-tests/integration.d.ts +18 -18
  24. package/dist/esm/testing/setup.d.ts +17 -17
  25. package/dist/index.cjs.js +1241 -1241
  26. package/dist/index.cjs.js.map +1 -1
  27. package/dist/src/api.d.ts +453 -453
  28. package/dist/src/api.test.d.ts +17 -17
  29. package/dist/src/constants.d.ts +32 -32
  30. package/dist/src/errors.d.ts +57 -57
  31. package/dist/src/factory.d.ts +74 -74
  32. package/dist/src/functions.d.ts +85 -85
  33. package/dist/src/functions.test.d.ts +17 -17
  34. package/dist/src/get-config.d.ts +72 -72
  35. package/dist/src/get-config.test.d.ts +17 -17
  36. package/dist/src/helpers.d.ts +70 -71
  37. package/dist/src/helpers.test.d.ts +17 -17
  38. package/dist/src/index.d.ts +14 -14
  39. package/dist/src/index.test.d.ts +17 -17
  40. package/dist/src/initialize-analytics.d.ts +36 -36
  41. package/dist/src/initialize-analytics.test.d.ts +17 -17
  42. package/dist/src/logger.d.ts +18 -18
  43. package/dist/src/public-types.d.ts +282 -282
  44. package/dist/src/types.d.ts +55 -55
  45. package/dist/testing/get-fake-firebase-services.d.ts +29 -29
  46. package/dist/testing/gtag-script-util.d.ts +1 -1
  47. package/dist/testing/integration-tests/integration.d.ts +18 -18
  48. package/dist/testing/setup.d.ts +17 -17
  49. package/package.json +7 -7
@@ -1,55 +1,55 @@
1
- /**
2
- * @license
3
- * Copyright 2020 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 { ControlParams, EventParams, CustomParams, ConsentSettings } from './public-types';
18
- /**
19
- * Encapsulates metadata concerning throttled fetch requests.
20
- */
21
- export interface ThrottleMetadata {
22
- backoffCount: number;
23
- throttleEndTimeMillis: number;
24
- }
25
- /**
26
- * Dynamic configuration fetched from server.
27
- * See https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps/getConfig
28
- */
29
- export interface DynamicConfig {
30
- projectId: string;
31
- appId: string;
32
- databaseURL: string;
33
- storageBucket: string;
34
- locationId: string;
35
- apiKey: string;
36
- authDomain: string;
37
- messagingSenderId: string;
38
- measurementId: string;
39
- }
40
- export interface MinimalDynamicConfig {
41
- appId: string;
42
- measurementId: string;
43
- }
44
- /**
45
- * Standard `gtag` function provided by gtag.js.
46
- */
47
- export interface Gtag {
48
- (command: 'config', targetId: string, config?: ControlParams | EventParams | CustomParams): void;
49
- (command: 'set', config: CustomParams): void;
50
- (command: 'event', eventName: string, eventParams?: ControlParams | EventParams | CustomParams): void;
51
- (command: 'consent', subCommand: 'default' | 'update', consentSettings: ConsentSettings): void;
52
- (command: 'get', measurementId: string, fieldName: string, callback: (...args: unknown[]) => void): void;
53
- (command: string, ...args: unknown[]): void;
54
- }
55
- export declare type DataLayer = IArguments[];
1
+ /**
2
+ * @license
3
+ * Copyright 2020 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 { ControlParams, EventParams, CustomParams, ConsentSettings } from './public-types';
18
+ /**
19
+ * Encapsulates metadata concerning throttled fetch requests.
20
+ */
21
+ export interface ThrottleMetadata {
22
+ backoffCount: number;
23
+ throttleEndTimeMillis: number;
24
+ }
25
+ /**
26
+ * Dynamic configuration fetched from server.
27
+ * See https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps/getConfig
28
+ */
29
+ export interface DynamicConfig {
30
+ projectId: string;
31
+ appId: string;
32
+ databaseURL: string;
33
+ storageBucket: string;
34
+ locationId: string;
35
+ apiKey: string;
36
+ authDomain: string;
37
+ messagingSenderId: string;
38
+ measurementId: string;
39
+ }
40
+ export interface MinimalDynamicConfig {
41
+ appId: string;
42
+ measurementId: string;
43
+ }
44
+ /**
45
+ * Standard `gtag` function provided by gtag.js.
46
+ */
47
+ export interface Gtag {
48
+ (command: 'config', targetId: string, config?: ControlParams | EventParams | CustomParams): void;
49
+ (command: 'set', config: CustomParams): void;
50
+ (command: 'event', eventName: string, eventParams?: ControlParams | EventParams | CustomParams): void;
51
+ (command: 'consent', subCommand: 'default' | 'update', consentSettings: ConsentSettings): void;
52
+ (command: 'get', measurementId: string, fieldName: string, callback: (...args: unknown[]) => void): void;
53
+ (command: string, ...args: unknown[]): void;
54
+ }
55
+ export type DataLayer = IArguments[];
@@ -1,29 +1,29 @@
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 { _FirebaseInstallationsInternal } from '@firebase/installations';
19
- export declare function getFakeApp(fakeAppParams?: {
20
- appId?: string;
21
- apiKey?: string;
22
- measurementId?: string;
23
- }): FirebaseApp;
24
- export declare function getFakeInstallations(fid?: string, onFidResolve?: Function): _FirebaseInstallationsInternal;
25
- export declare function getFullApp(fakeAppParams?: {
26
- appId?: string;
27
- apiKey?: string;
28
- measurementId?: string;
29
- }): FirebaseApp;
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 { _FirebaseInstallationsInternal } from '@firebase/installations';
19
+ export declare function getFakeApp(fakeAppParams?: {
20
+ appId?: string;
21
+ apiKey?: string;
22
+ measurementId?: string;
23
+ }): FirebaseApp;
24
+ export declare function getFakeInstallations(fid?: string, onFidResolve?: Function): _FirebaseInstallationsInternal;
25
+ export declare function getFullApp(fakeAppParams?: {
26
+ appId?: string;
27
+ apiKey?: string;
28
+ measurementId?: string;
29
+ }): FirebaseApp;
@@ -1 +1 @@
1
- export declare function removeGtagScripts(): void;
1
+ export declare function removeGtagScripts(): void;
@@ -1,18 +1,18 @@
1
- /**
2
- * @license
3
- * Copyright 2020 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 '@firebase/installations';
18
- import '../setup';
1
+ /**
2
+ * @license
3
+ * Copyright 2020 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 '@firebase/installations';
18
+ import '../setup';
@@ -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 {};