@firebase/installations 0.5.9 → 0.5.10-canary.ebc17e27f

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.
@@ -1,99 +1,99 @@
1
- /**
2
- * Firebase Installations
3
- *
4
- * @packageDocumentation
5
- */
6
-
7
- import { FirebaseApp } from '@firebase/app';
8
-
9
- /**
10
- * Deletes the Firebase Installation and all associated data.
11
- * @param installations - The `Installations` instance.
12
- *
13
- * @public
14
- */
15
- export declare function deleteInstallations(installations: Installations): Promise<void>;
16
-
17
- /**
18
- * An interface for Firebase internal SDKs use only.
19
- *
20
- * @internal
21
- */
22
- export declare interface _FirebaseInstallationsInternal {
23
- /**
24
- * Creates a Firebase Installation if there isn't one for the app and
25
- * returns the Installation ID.
26
- */
27
- getId(): Promise<string>;
28
- /**
29
- * Returns an Authentication Token for the current Firebase Installation.
30
- */
31
- getToken(forceRefresh?: boolean): Promise<string>;
32
- }
33
-
34
- /**
35
- * Creates a Firebase Installation if there isn't one for the app and
36
- * returns the Installation ID.
37
- * @param installations - The `Installations` instance.
38
- *
39
- * @public
40
- */
41
- export declare function getId(installations: Installations): Promise<string>;
42
-
43
- /**
44
- * Returns an instance of {@link Installations} associated with the given
45
- * {@link @firebase/app#FirebaseApp} instance.
46
- * @param app - The {@link @firebase/app#FirebaseApp} instance.
47
- *
48
- * @public
49
- */
50
- export declare function getInstallations(app?: FirebaseApp): Installations;
51
-
52
- /**
53
- * Returns a Firebase Installations auth token, identifying the current
54
- * Firebase Installation.
55
- * @param installations - The `Installations` instance.
56
- * @param forceRefresh - Force refresh regardless of token expiration.
57
- *
58
- * @public
59
- */
60
- export declare function getToken(installations: Installations, forceRefresh?: boolean): Promise<string>;
61
-
62
- /**
63
- * An user defined callback function that gets called when Installations ID changes.
64
- *
65
- * @public
66
- */
67
- export declare type IdChangeCallbackFn = (installationId: string) => void;
68
-
69
- /**
70
- * Unsubscribe a callback function previously added via {@link IdChangeCallbackFn}.
71
- *
72
- * @public
73
- */
74
- export declare type IdChangeUnsubscribeFn = () => void;
75
-
76
- /**
77
- * Public interface of the Firebase Installations SDK.
78
- *
79
- * @public
80
- */
81
- export declare interface Installations {
82
- /**
83
- * The {@link @firebase/app#FirebaseApp} this `Installations` instance is associated with.
84
- */
85
- app: FirebaseApp;
86
- }
87
-
88
- /**
89
- * Sets a new callback that will get called when Installation ID changes.
90
- * Returns an unsubscribe function that will remove the callback when called.
91
- * @param installations - The `Installations` instance.
92
- * @param callback - The callback function that is invoked when FID changes.
93
- * @returns A function that can be called to unsubscribe.
94
- *
95
- * @public
96
- */
97
- export declare function onIdChange(installations: Installations, callback: IdChangeCallbackFn): IdChangeUnsubscribeFn;
98
-
99
- export { }
1
+ /**
2
+ * Firebase Installations
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+
7
+ import { FirebaseApp } from '@firebase/app';
8
+
9
+ /**
10
+ * Deletes the Firebase Installation and all associated data.
11
+ * @param installations - The `Installations` instance.
12
+ *
13
+ * @public
14
+ */
15
+ export declare function deleteInstallations(installations: Installations): Promise<void>;
16
+
17
+ /**
18
+ * An interface for Firebase internal SDKs use only.
19
+ *
20
+ * @internal
21
+ */
22
+ export declare interface _FirebaseInstallationsInternal {
23
+ /**
24
+ * Creates a Firebase Installation if there isn't one for the app and
25
+ * returns the Installation ID.
26
+ */
27
+ getId(): Promise<string>;
28
+ /**
29
+ * Returns an Authentication Token for the current Firebase Installation.
30
+ */
31
+ getToken(forceRefresh?: boolean): Promise<string>;
32
+ }
33
+
34
+ /**
35
+ * Creates a Firebase Installation if there isn't one for the app and
36
+ * returns the Installation ID.
37
+ * @param installations - The `Installations` instance.
38
+ *
39
+ * @public
40
+ */
41
+ export declare function getId(installations: Installations): Promise<string>;
42
+
43
+ /**
44
+ * Returns an instance of {@link Installations} associated with the given
45
+ * {@link @firebase/app#FirebaseApp} instance.
46
+ * @param app - The {@link @firebase/app#FirebaseApp} instance.
47
+ *
48
+ * @public
49
+ */
50
+ export declare function getInstallations(app?: FirebaseApp): Installations;
51
+
52
+ /**
53
+ * Returns a Firebase Installations auth token, identifying the current
54
+ * Firebase Installation.
55
+ * @param installations - The `Installations` instance.
56
+ * @param forceRefresh - Force refresh regardless of token expiration.
57
+ *
58
+ * @public
59
+ */
60
+ export declare function getToken(installations: Installations, forceRefresh?: boolean): Promise<string>;
61
+
62
+ /**
63
+ * An user defined callback function that gets called when Installations ID changes.
64
+ *
65
+ * @public
66
+ */
67
+ export declare type IdChangeCallbackFn = (installationId: string) => void;
68
+
69
+ /**
70
+ * Unsubscribe a callback function previously added via {@link IdChangeCallbackFn}.
71
+ *
72
+ * @public
73
+ */
74
+ export declare type IdChangeUnsubscribeFn = () => void;
75
+
76
+ /**
77
+ * Public interface of the Firebase Installations SDK.
78
+ *
79
+ * @public
80
+ */
81
+ export declare interface Installations {
82
+ /**
83
+ * The {@link @firebase/app#FirebaseApp} this `Installations` instance is associated with.
84
+ */
85
+ app: FirebaseApp;
86
+ }
87
+
88
+ /**
89
+ * Sets a new callback that will get called when Installation ID changes.
90
+ * Returns an unsubscribe function that will remove the callback when called.
91
+ * @param installations - The `Installations` instance.
92
+ * @param callback - The callback function that is invoked when FID changes.
93
+ * @returns A function that can be called to unsubscribe.
94
+ *
95
+ * @public
96
+ */
97
+ export declare function onIdChange(installations: Installations, callback: IdChangeCallbackFn): IdChangeUnsubscribeFn;
98
+
99
+ export { }
@@ -1,11 +1,11 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "0.1.2"
9
- }
10
- ]
11
- }
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "0.1.2"
9
+ }
10
+ ]
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/installations",
3
- "version": "0.5.9",
3
+ "version": "0.5.10-canary.ebc17e27f",
4
4
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/esm/index.esm2017.js",
@@ -8,6 +8,7 @@
8
8
  "esm5": "dist/esm/index.esm.js",
9
9
  "exports": {
10
10
  ".": {
11
+ "types": "./dist/installations-public.d.ts",
11
12
  "require": "./dist/index.cjs.js",
12
13
  "esm5": "./dist/esm/index.esm.js",
13
14
  "default": "./dist/esm/index.esm2017.js"
@@ -49,21 +50,21 @@
49
50
  "url": "https://github.com/firebase/firebase-js-sdk/issues"
50
51
  },
51
52
  "devDependencies": {
52
- "@firebase/app": "0.7.23",
53
- "rollup": "2.57.0",
54
- "@rollup/plugin-commonjs": "21.0.0",
53
+ "@firebase/app": "0.7.26-canary.ebc17e27f",
54
+ "rollup": "2.72.1",
55
+ "@rollup/plugin-commonjs": "21.1.0",
55
56
  "@rollup/plugin-json": "4.1.0",
56
- "@rollup/plugin-node-resolve": "13.0.5",
57
- "rollup-plugin-typescript2": "0.30.0",
57
+ "@rollup/plugin-node-resolve": "13.3.0",
58
+ "rollup-plugin-typescript2": "0.31.2",
58
59
  "rollup-plugin-uglify": "6.0.4",
59
60
  "typescript": "4.2.2"
60
61
  },
61
62
  "peerDependencies": {
62
- "@firebase/app": "0.x"
63
+ "@firebase/app": "0.7.26-canary.ebc17e27f"
63
64
  },
64
65
  "dependencies": {
65
- "@firebase/util": "1.6.0",
66
- "@firebase/component": "0.5.14",
66
+ "@firebase/util": "1.6.1-canary.ebc17e27f",
67
+ "@firebase/component": "0.5.15-canary.ebc17e27f",
67
68
  "idb": "7.0.1",
68
69
  "tslib": "^2.1.0"
69
70
  }