@firebase/installations-compat 0.2.10 → 0.2.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.
@@ -3,68 +3,68 @@ import { Component } from '@firebase/component';
3
3
  import { getId, getToken, deleteInstallations, onIdChange } from '@firebase/installations';
4
4
 
5
5
  const name = "@firebase/installations-compat";
6
- const version = "0.2.10";
6
+ const version = "0.2.11";
7
7
 
8
- /**
9
- * @license
10
- * Copyright 2020 Google LLC
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
- class InstallationsCompat {
25
- constructor(app, _delegate) {
26
- this.app = app;
27
- this._delegate = _delegate;
28
- }
29
- getId() {
30
- return getId(this._delegate);
31
- }
32
- getToken(forceRefresh) {
33
- return getToken(this._delegate, forceRefresh);
34
- }
35
- delete() {
36
- return deleteInstallations(this._delegate);
37
- }
38
- onIdChange(callback) {
39
- return onIdChange(this._delegate, callback);
40
- }
8
+ /**
9
+ * @license
10
+ * Copyright 2020 Google LLC
11
+ *
12
+ * Licensed under the Apache License, Version 2.0 (the "License");
13
+ * you may not use this file except in compliance with the License.
14
+ * You may obtain a copy of the License at
15
+ *
16
+ * http://www.apache.org/licenses/LICENSE-2.0
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software
19
+ * distributed under the License is distributed on an "AS IS" BASIS,
20
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ * See the License for the specific language governing permissions and
22
+ * limitations under the License.
23
+ */
24
+ class InstallationsCompat {
25
+ constructor(app, _delegate) {
26
+ this.app = app;
27
+ this._delegate = _delegate;
28
+ }
29
+ getId() {
30
+ return getId(this._delegate);
31
+ }
32
+ getToken(forceRefresh) {
33
+ return getToken(this._delegate, forceRefresh);
34
+ }
35
+ delete() {
36
+ return deleteInstallations(this._delegate);
37
+ }
38
+ onIdChange(callback) {
39
+ return onIdChange(this._delegate, callback);
40
+ }
41
41
  }
42
42
 
43
- /**
44
- * @license
45
- * Copyright 2020 Google LLC
46
- *
47
- * Licensed under the Apache License, Version 2.0 (the "License");
48
- * you may not use this file except in compliance with the License.
49
- * You may obtain a copy of the License at
50
- *
51
- * http://www.apache.org/licenses/LICENSE-2.0
52
- *
53
- * Unless required by applicable law or agreed to in writing, software
54
- * distributed under the License is distributed on an "AS IS" BASIS,
55
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56
- * See the License for the specific language governing permissions and
57
- * limitations under the License.
58
- */
59
- function registerInstallations(instance) {
60
- instance.INTERNAL.registerComponent(new Component('installations-compat', container => {
61
- const app = container.getProvider('app-compat').getImmediate();
62
- const installations = container
63
- .getProvider('installations')
64
- .getImmediate();
65
- return new InstallationsCompat(app, installations);
66
- }, "PUBLIC" /* ComponentType.PUBLIC */));
67
- instance.registerVersion(name, version);
68
- }
43
+ /**
44
+ * @license
45
+ * Copyright 2020 Google LLC
46
+ *
47
+ * Licensed under the Apache License, Version 2.0 (the "License");
48
+ * you may not use this file except in compliance with the License.
49
+ * You may obtain a copy of the License at
50
+ *
51
+ * http://www.apache.org/licenses/LICENSE-2.0
52
+ *
53
+ * Unless required by applicable law or agreed to in writing, software
54
+ * distributed under the License is distributed on an "AS IS" BASIS,
55
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56
+ * See the License for the specific language governing permissions and
57
+ * limitations under the License.
58
+ */
59
+ function registerInstallations(instance) {
60
+ instance.INTERNAL.registerComponent(new Component('installations-compat', container => {
61
+ const app = container.getProvider('app-compat').getImmediate();
62
+ const installations = container
63
+ .getProvider('installations')
64
+ .getImmediate();
65
+ return new InstallationsCompat(app, installations);
66
+ }, "PUBLIC" /* ComponentType.PUBLIC */));
67
+ instance.registerVersion(name, version);
68
+ }
69
69
  registerInstallations(firebase);
70
70
  //# sourceMappingURL=index.esm2017.js.map
@@ -1,33 +1,33 @@
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 { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';
18
- declare module '@firebase/component' {
19
- interface NameServiceMapping {
20
- 'installations-compat': FirebaseInstallationsCompat;
21
- }
22
- }
23
- /**
24
- * Define extension behavior of `registerInstallations`
25
- */
26
- declare module '@firebase/app-compat' {
27
- interface FirebaseNamespace {
28
- installations(app?: FirebaseApp): FirebaseInstallationsCompat;
29
- }
30
- interface FirebaseApp {
31
- installations(): FirebaseInstallationsCompat;
32
- }
33
- }
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 { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';
18
+ declare module '@firebase/component' {
19
+ interface NameServiceMapping {
20
+ 'installations-compat': FirebaseInstallationsCompat;
21
+ }
22
+ }
23
+ /**
24
+ * Define extension behavior of `registerInstallations`
25
+ */
26
+ declare module '@firebase/app-compat' {
27
+ interface FirebaseNamespace {
28
+ installations(app?: FirebaseApp): FirebaseInstallationsCompat;
29
+ }
30
+ interface FirebaseApp {
31
+ installations(): FirebaseInstallationsCompat;
32
+ }
33
+ }
@@ -1,28 +1,28 @@
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 { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';
18
- import { FirebaseApp, _FirebaseService } from '@firebase/app-compat';
19
- import { Installations, IdChangeCallbackFn, IdChangeUnsubscribeFn } from '@firebase/installations';
20
- export declare class InstallationsCompat implements FirebaseInstallationsCompat, _FirebaseService {
21
- app: FirebaseApp;
22
- readonly _delegate: Installations;
23
- constructor(app: FirebaseApp, _delegate: Installations);
24
- getId(): Promise<string>;
25
- getToken(forceRefresh?: boolean): Promise<string>;
26
- delete(): Promise<void>;
27
- onIdChange(callback: IdChangeCallbackFn): IdChangeUnsubscribeFn;
28
- }
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 { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';
18
+ import { FirebaseApp, _FirebaseService } from '@firebase/app-compat';
19
+ import { Installations, IdChangeCallbackFn, IdChangeUnsubscribeFn } from '@firebase/installations';
20
+ export declare class InstallationsCompat implements FirebaseInstallationsCompat, _FirebaseService {
21
+ app: FirebaseApp;
22
+ readonly _delegate: Installations;
23
+ constructor(app: FirebaseApp, _delegate: Installations);
24
+ getId(): Promise<string>;
25
+ getToken(forceRefresh?: boolean): Promise<string>;
26
+ delete(): Promise<void>;
27
+ onIdChange(callback: IdChangeCallbackFn): IdChangeUnsubscribeFn;
28
+ }
@@ -1,17 +1,17 @@
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 './testing/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 './testing/setup';
@@ -1,17 +1,17 @@
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
- export {};
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
+ export {};
@@ -1,20 +1,20 @@
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 { FirebaseApp } from '@firebase/app-compat';
18
- import { Installations } from '@firebase/installations';
19
- export declare function getFakeApp(): FirebaseApp;
20
- export declare function getFakeInstallations(): Installations;
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 { FirebaseApp } from '@firebase/app-compat';
18
+ import { Installations } from '@firebase/installations';
19
+ export declare function getFakeApp(): FirebaseApp;
20
+ export declare function getFakeInstallations(): Installations;
package/dist/index.cjs.js CHANGED
@@ -9,68 +9,68 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
  var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
10
10
 
11
11
  const name = "@firebase/installations-compat";
12
- const version = "0.2.10";
12
+ const version = "0.2.11";
13
13
 
14
- /**
15
- * @license
16
- * Copyright 2020 Google LLC
17
- *
18
- * Licensed under the Apache License, Version 2.0 (the "License");
19
- * you may not use this file except in compliance with the License.
20
- * You may obtain a copy of the License at
21
- *
22
- * http://www.apache.org/licenses/LICENSE-2.0
23
- *
24
- * Unless required by applicable law or agreed to in writing, software
25
- * distributed under the License is distributed on an "AS IS" BASIS,
26
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
- * See the License for the specific language governing permissions and
28
- * limitations under the License.
29
- */
30
- class InstallationsCompat {
31
- constructor(app, _delegate) {
32
- this.app = app;
33
- this._delegate = _delegate;
34
- }
35
- getId() {
36
- return installations.getId(this._delegate);
37
- }
38
- getToken(forceRefresh) {
39
- return installations.getToken(this._delegate, forceRefresh);
40
- }
41
- delete() {
42
- return installations.deleteInstallations(this._delegate);
43
- }
44
- onIdChange(callback) {
45
- return installations.onIdChange(this._delegate, callback);
46
- }
14
+ /**
15
+ * @license
16
+ * Copyright 2020 Google LLC
17
+ *
18
+ * Licensed under the Apache License, Version 2.0 (the "License");
19
+ * you may not use this file except in compliance with the License.
20
+ * You may obtain a copy of the License at
21
+ *
22
+ * http://www.apache.org/licenses/LICENSE-2.0
23
+ *
24
+ * Unless required by applicable law or agreed to in writing, software
25
+ * distributed under the License is distributed on an "AS IS" BASIS,
26
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
+ * See the License for the specific language governing permissions and
28
+ * limitations under the License.
29
+ */
30
+ class InstallationsCompat {
31
+ constructor(app, _delegate) {
32
+ this.app = app;
33
+ this._delegate = _delegate;
34
+ }
35
+ getId() {
36
+ return installations.getId(this._delegate);
37
+ }
38
+ getToken(forceRefresh) {
39
+ return installations.getToken(this._delegate, forceRefresh);
40
+ }
41
+ delete() {
42
+ return installations.deleteInstallations(this._delegate);
43
+ }
44
+ onIdChange(callback) {
45
+ return installations.onIdChange(this._delegate, callback);
46
+ }
47
47
  }
48
48
 
49
- /**
50
- * @license
51
- * Copyright 2020 Google LLC
52
- *
53
- * Licensed under the Apache License, Version 2.0 (the "License");
54
- * you may not use this file except in compliance with the License.
55
- * You may obtain a copy of the License at
56
- *
57
- * http://www.apache.org/licenses/LICENSE-2.0
58
- *
59
- * Unless required by applicable law or agreed to in writing, software
60
- * distributed under the License is distributed on an "AS IS" BASIS,
61
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
62
- * See the License for the specific language governing permissions and
63
- * limitations under the License.
64
- */
65
- function registerInstallations(instance) {
66
- instance.INTERNAL.registerComponent(new component.Component('installations-compat', container => {
67
- const app = container.getProvider('app-compat').getImmediate();
68
- const installations = container
69
- .getProvider('installations')
70
- .getImmediate();
71
- return new InstallationsCompat(app, installations);
72
- }, "PUBLIC" /* ComponentType.PUBLIC */));
73
- instance.registerVersion(name, version);
74
- }
49
+ /**
50
+ * @license
51
+ * Copyright 2020 Google LLC
52
+ *
53
+ * Licensed under the Apache License, Version 2.0 (the "License");
54
+ * you may not use this file except in compliance with the License.
55
+ * You may obtain a copy of the License at
56
+ *
57
+ * http://www.apache.org/licenses/LICENSE-2.0
58
+ *
59
+ * Unless required by applicable law or agreed to in writing, software
60
+ * distributed under the License is distributed on an "AS IS" BASIS,
61
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
62
+ * See the License for the specific language governing permissions and
63
+ * limitations under the License.
64
+ */
65
+ function registerInstallations(instance) {
66
+ instance.INTERNAL.registerComponent(new component.Component('installations-compat', container => {
67
+ const app = container.getProvider('app-compat').getImmediate();
68
+ const installations = container
69
+ .getProvider('installations')
70
+ .getImmediate();
71
+ return new InstallationsCompat(app, installations);
72
+ }, "PUBLIC" /* ComponentType.PUBLIC */));
73
+ instance.registerVersion(name, version);
74
+ }
75
75
  registerInstallations(firebase__default["default"]);
76
76
  //# sourceMappingURL=index.cjs.js.map
@@ -1,33 +1,33 @@
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 { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';
18
- declare module '@firebase/component' {
19
- interface NameServiceMapping {
20
- 'installations-compat': FirebaseInstallationsCompat;
21
- }
22
- }
23
- /**
24
- * Define extension behavior of `registerInstallations`
25
- */
26
- declare module '@firebase/app-compat' {
27
- interface FirebaseNamespace {
28
- installations(app?: FirebaseApp): FirebaseInstallationsCompat;
29
- }
30
- interface FirebaseApp {
31
- installations(): FirebaseInstallationsCompat;
32
- }
33
- }
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 { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';
18
+ declare module '@firebase/component' {
19
+ interface NameServiceMapping {
20
+ 'installations-compat': FirebaseInstallationsCompat;
21
+ }
22
+ }
23
+ /**
24
+ * Define extension behavior of `registerInstallations`
25
+ */
26
+ declare module '@firebase/app-compat' {
27
+ interface FirebaseNamespace {
28
+ installations(app?: FirebaseApp): FirebaseInstallationsCompat;
29
+ }
30
+ interface FirebaseApp {
31
+ installations(): FirebaseInstallationsCompat;
32
+ }
33
+ }
@@ -1,28 +1,28 @@
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 { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';
18
- import { FirebaseApp, _FirebaseService } from '@firebase/app-compat';
19
- import { Installations, IdChangeCallbackFn, IdChangeUnsubscribeFn } from '@firebase/installations';
20
- export declare class InstallationsCompat implements FirebaseInstallationsCompat, _FirebaseService {
21
- app: FirebaseApp;
22
- readonly _delegate: Installations;
23
- constructor(app: FirebaseApp, _delegate: Installations);
24
- getId(): Promise<string>;
25
- getToken(forceRefresh?: boolean): Promise<string>;
26
- delete(): Promise<void>;
27
- onIdChange(callback: IdChangeCallbackFn): IdChangeUnsubscribeFn;
28
- }
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 { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';
18
+ import { FirebaseApp, _FirebaseService } from '@firebase/app-compat';
19
+ import { Installations, IdChangeCallbackFn, IdChangeUnsubscribeFn } from '@firebase/installations';
20
+ export declare class InstallationsCompat implements FirebaseInstallationsCompat, _FirebaseService {
21
+ app: FirebaseApp;
22
+ readonly _delegate: Installations;
23
+ constructor(app: FirebaseApp, _delegate: Installations);
24
+ getId(): Promise<string>;
25
+ getToken(forceRefresh?: boolean): Promise<string>;
26
+ delete(): Promise<void>;
27
+ onIdChange(callback: IdChangeCallbackFn): IdChangeUnsubscribeFn;
28
+ }
@@ -1,17 +1,17 @@
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 './testing/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 './testing/setup';
@@ -1,17 +1,17 @@
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
- export {};
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
+ export {};
@@ -1,20 +1,20 @@
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 { FirebaseApp } from '@firebase/app-compat';
18
- import { Installations } from '@firebase/installations';
19
- export declare function getFakeApp(): FirebaseApp;
20
- export declare function getFakeInstallations(): Installations;
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 { FirebaseApp } from '@firebase/app-compat';
18
+ import { Installations } from '@firebase/installations';
19
+ export declare function getFakeApp(): FirebaseApp;
20
+ export declare function getFakeInstallations(): Installations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/installations-compat",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
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",
@@ -44,23 +44,23 @@
44
44
  "url": "https://github.com/firebase/firebase-js-sdk/issues"
45
45
  },
46
46
  "devDependencies": {
47
- "@firebase/app-compat": "0.2.44",
47
+ "@firebase/app-compat": "0.2.46",
48
48
  "rollup": "2.79.1",
49
49
  "@rollup/plugin-commonjs": "21.1.0",
50
50
  "@rollup/plugin-json": "4.1.0",
51
51
  "@rollup/plugin-node-resolve": "13.3.0",
52
52
  "rollup-plugin-typescript2": "0.31.2",
53
53
  "rollup-plugin-uglify": "6.0.4",
54
- "typescript": "4.7.4"
54
+ "typescript": "5.5.4"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@firebase/app-compat": "0.x"
58
58
  },
59
59
  "dependencies": {
60
- "@firebase/installations": "0.6.10",
61
- "@firebase/installations-types": "0.5.2",
62
- "@firebase/util": "1.10.1",
63
- "@firebase/component": "0.6.10",
60
+ "@firebase/installations": "0.6.11",
61
+ "@firebase/installations-types": "0.5.3",
62
+ "@firebase/util": "1.10.2",
63
+ "@firebase/component": "0.6.11",
64
64
  "tslib": "^2.1.0"
65
65
  }
66
66
  }