@firebase/installations 0.5.9-20220505222723 → 0.5.9-canary.094da9eed

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.
package/CHANGELOG.md CHANGED
@@ -1,15 +1,14 @@
1
1
  # @firebase/installations
2
2
 
3
- ## 0.5.9-20220505222723
3
+ ## 0.5.9
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - [`9c5c9c36d`](https://github.com/firebase/firebase-js-sdk/commit/9c5c9c36da80b98b73cfd60ef2e2965087e9f801) [#6154](https://github.com/firebase/firebase-js-sdk/pull/6154) - Replace stopgap firebase/util IndexedDB methods with `idb` library.
8
8
 
9
9
  - Updated dependencies [[`9c5c9c36d`](https://github.com/firebase/firebase-js-sdk/commit/9c5c9c36da80b98b73cfd60ef2e2965087e9f801)]:
10
- - @firebase/util@1.6.0-20220505222723
11
- - @firebase/app@0.7.23-20220505222723
12
- - @firebase/component@0.5.14-20220505222723
10
+ - @firebase/util@1.6.0
11
+ - @firebase/component@0.5.14
13
12
 
14
13
  ## 0.5.8
15
14
 
@@ -5,7 +5,7 @@ import { ErrorFactory, FirebaseError } from '@firebase/util';
5
5
  import { openDB } from 'idb';
6
6
 
7
7
  var name = "@firebase/installations";
8
- var version = "0.5.9-20220505222723";
8
+ var version = "0.5.9-canary.094da9eed";
9
9
 
10
10
  /**
11
11
  * @license
@@ -4,7 +4,7 @@ import { ErrorFactory, FirebaseError } from '@firebase/util';
4
4
  import { openDB } from 'idb';
5
5
 
6
6
  const name = "@firebase/installations";
7
- const version = "0.5.9-20220505222723";
7
+ const version = "0.5.9-canary.094da9eed";
8
8
 
9
9
  /**
10
10
  * @license
package/dist/index.cjs.js CHANGED
@@ -9,7 +9,7 @@ var util = require('@firebase/util');
9
9
  var idb = require('idb');
10
10
 
11
11
  var name = "@firebase/installations";
12
- var version = "0.5.9-20220505222723";
12
+ var version = "0.5.9-canary.094da9eed";
13
13
 
14
14
  /**
15
15
  * @license
@@ -1,84 +1,84 @@
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
- /* Excluded from this release type: _FirebaseInstallationsInternal */
18
-
19
- /**
20
- * Creates a Firebase Installation if there isn't one for the app and
21
- * returns the Installation ID.
22
- * @param installations - The `Installations` instance.
23
- *
24
- * @public
25
- */
26
- export declare function getId(installations: Installations): Promise<string>;
27
-
28
- /**
29
- * Returns an instance of {@link Installations} associated with the given
30
- * {@link @firebase/app#FirebaseApp} instance.
31
- * @param app - The {@link @firebase/app#FirebaseApp} instance.
32
- *
33
- * @public
34
- */
35
- export declare function getInstallations(app?: FirebaseApp): Installations;
36
-
37
- /**
38
- * Returns a Firebase Installations auth token, identifying the current
39
- * Firebase Installation.
40
- * @param installations - The `Installations` instance.
41
- * @param forceRefresh - Force refresh regardless of token expiration.
42
- *
43
- * @public
44
- */
45
- export declare function getToken(installations: Installations, forceRefresh?: boolean): Promise<string>;
46
-
47
- /**
48
- * An user defined callback function that gets called when Installations ID changes.
49
- *
50
- * @public
51
- */
52
- export declare type IdChangeCallbackFn = (installationId: string) => void;
53
-
54
- /**
55
- * Unsubscribe a callback function previously added via {@link IdChangeCallbackFn}.
56
- *
57
- * @public
58
- */
59
- export declare type IdChangeUnsubscribeFn = () => void;
60
-
61
- /**
62
- * Public interface of the Firebase Installations SDK.
63
- *
64
- * @public
65
- */
66
- export declare interface Installations {
67
- /**
68
- * The {@link @firebase/app#FirebaseApp} this `Installations` instance is associated with.
69
- */
70
- app: FirebaseApp;
71
- }
72
-
73
- /**
74
- * Sets a new callback that will get called when Installation ID changes.
75
- * Returns an unsubscribe function that will remove the callback when called.
76
- * @param installations - The `Installations` instance.
77
- * @param callback - The callback function that is invoked when FID changes.
78
- * @returns A function that can be called to unsubscribe.
79
- *
80
- * @public
81
- */
82
- export declare function onIdChange(installations: Installations, callback: IdChangeCallbackFn): IdChangeUnsubscribeFn;
83
-
84
- 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
+ /* Excluded from this release type: _FirebaseInstallationsInternal */
18
+
19
+ /**
20
+ * Creates a Firebase Installation if there isn't one for the app and
21
+ * returns the Installation ID.
22
+ * @param installations - The `Installations` instance.
23
+ *
24
+ * @public
25
+ */
26
+ export declare function getId(installations: Installations): Promise<string>;
27
+
28
+ /**
29
+ * Returns an instance of {@link Installations} associated with the given
30
+ * {@link @firebase/app#FirebaseApp} instance.
31
+ * @param app - The {@link @firebase/app#FirebaseApp} instance.
32
+ *
33
+ * @public
34
+ */
35
+ export declare function getInstallations(app?: FirebaseApp): Installations;
36
+
37
+ /**
38
+ * Returns a Firebase Installations auth token, identifying the current
39
+ * Firebase Installation.
40
+ * @param installations - The `Installations` instance.
41
+ * @param forceRefresh - Force refresh regardless of token expiration.
42
+ *
43
+ * @public
44
+ */
45
+ export declare function getToken(installations: Installations, forceRefresh?: boolean): Promise<string>;
46
+
47
+ /**
48
+ * An user defined callback function that gets called when Installations ID changes.
49
+ *
50
+ * @public
51
+ */
52
+ export declare type IdChangeCallbackFn = (installationId: string) => void;
53
+
54
+ /**
55
+ * Unsubscribe a callback function previously added via {@link IdChangeCallbackFn}.
56
+ *
57
+ * @public
58
+ */
59
+ export declare type IdChangeUnsubscribeFn = () => void;
60
+
61
+ /**
62
+ * Public interface of the Firebase Installations SDK.
63
+ *
64
+ * @public
65
+ */
66
+ export declare interface Installations {
67
+ /**
68
+ * The {@link @firebase/app#FirebaseApp} this `Installations` instance is associated with.
69
+ */
70
+ app: FirebaseApp;
71
+ }
72
+
73
+ /**
74
+ * Sets a new callback that will get called when Installation ID changes.
75
+ * Returns an unsubscribe function that will remove the callback when called.
76
+ * @param installations - The `Installations` instance.
77
+ * @param callback - The callback function that is invoked when FID changes.
78
+ * @returns A function that can be called to unsubscribe.
79
+ *
80
+ * @public
81
+ */
82
+ export declare function onIdChange(installations: Installations, callback: IdChangeCallbackFn): IdChangeUnsubscribeFn;
83
+
84
+ export { }
@@ -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-20220505222723",
3
+ "version": "0.5.9-canary.094da9eed",
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",
@@ -49,21 +49,21 @@
49
49
  "url": "https://github.com/firebase/firebase-js-sdk/issues"
50
50
  },
51
51
  "devDependencies": {
52
- "@firebase/app": "0.7.23-20220505222723",
52
+ "@firebase/app": "0.7.23-canary.094da9eed",
53
53
  "rollup": "2.57.0",
54
54
  "@rollup/plugin-commonjs": "21.0.0",
55
55
  "@rollup/plugin-json": "4.1.0",
56
56
  "@rollup/plugin-node-resolve": "13.0.5",
57
- "rollup-plugin-typescript2": "0.30.0",
57
+ "rollup-plugin-typescript2": "0.31.2",
58
58
  "rollup-plugin-uglify": "6.0.4",
59
59
  "typescript": "4.2.2"
60
60
  },
61
61
  "peerDependencies": {
62
- "@firebase/app": "0.7.23-20220505222723"
62
+ "@firebase/app": "0.7.23-canary.094da9eed"
63
63
  },
64
64
  "dependencies": {
65
- "@firebase/util": "1.6.0-20220505222723",
66
- "@firebase/component": "0.5.14-20220505222723",
65
+ "@firebase/util": "1.6.0-canary.094da9eed",
66
+ "@firebase/component": "0.5.14-canary.094da9eed",
67
67
  "idb": "7.0.1",
68
68
  "tslib": "^2.1.0"
69
69
  }