@depup/firebase__installations-compat 0.2.20-depup.0
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/README.md +31 -0
- package/changes.json +10 -0
- package/dist/esm/index.esm.js +70 -0
- package/dist/esm/index.esm.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/src/index.d.ts +33 -0
- package/dist/esm/src/installationsCompat.d.ts +28 -0
- package/dist/esm/src/installationsCompat.test.d.ts +17 -0
- package/dist/esm/src/testing/setup.d.ts +17 -0
- package/dist/esm/src/testing/util.d.ts +20 -0
- package/dist/index.cjs.js +76 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/src/index.d.ts +33 -0
- package/dist/src/installationsCompat.d.ts +28 -0
- package/dist/src/installationsCompat.test.d.ts +17 -0
- package/dist/src/testing/setup.d.ts +17 -0
- package/dist/src/testing/util.d.ts +20 -0
- package/package.json +88 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @depup/firebase__installations-compat
|
|
2
|
+
|
|
3
|
+
> Dependency-bumped version of [@firebase/installations-compat](https://www.npmjs.com/package/@firebase/installations-compat)
|
|
4
|
+
|
|
5
|
+
Generated by [DepUp](https://github.com/depup/npm) -- all production
|
|
6
|
+
dependencies bumped to latest versions.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @depup/firebase__installations-compat
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
| Field | Value |
|
|
15
|
+
|-------|-------|
|
|
16
|
+
| Original | [@firebase/installations-compat](https://www.npmjs.com/package/@firebase/installations-compat) @ 0.2.20 |
|
|
17
|
+
| Processed | 2026-03-17 |
|
|
18
|
+
| Smoke test | failed |
|
|
19
|
+
| Deps updated | 1 |
|
|
20
|
+
|
|
21
|
+
## Dependency Changes
|
|
22
|
+
|
|
23
|
+
| Dependency | From | To |
|
|
24
|
+
|------------|------|-----|
|
|
25
|
+
| tslib | ^2.1.0 | ^2.8.1 |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
Source: https://github.com/depup/npm | Original: https://www.npmjs.com/package/@firebase/installations-compat
|
|
30
|
+
|
|
31
|
+
License inherited from the original package.
|
package/changes.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import firebase from '@firebase/app-compat';
|
|
2
|
+
import { Component } from '@firebase/component';
|
|
3
|
+
import { getId, getToken, deleteInstallations, onIdChange } from '@firebase/installations';
|
|
4
|
+
|
|
5
|
+
const name = "@firebase/installations-compat";
|
|
6
|
+
const version = "0.2.20";
|
|
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
|
+
}
|
|
41
|
+
}
|
|
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
|
+
}
|
|
69
|
+
registerInstallations(firebase);
|
|
70
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/installationsCompat.ts","../../src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';\nimport { FirebaseApp, _FirebaseService } from '@firebase/app-compat';\nimport {\n Installations,\n deleteInstallations,\n getId,\n getToken,\n IdChangeCallbackFn,\n IdChangeUnsubscribeFn,\n onIdChange\n} from '@firebase/installations';\n\nexport class InstallationsCompat\n implements FirebaseInstallationsCompat, _FirebaseService\n{\n constructor(public app: FirebaseApp, readonly _delegate: Installations) {}\n\n getId(): Promise<string> {\n return getId(this._delegate);\n }\n getToken(forceRefresh?: boolean): Promise<string> {\n return getToken(this._delegate, forceRefresh);\n }\n delete(): Promise<void> {\n return deleteInstallations(this._delegate);\n }\n onIdChange(callback: IdChangeCallbackFn): IdChangeUnsubscribeFn {\n return onIdChange(this._delegate, callback);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport firebase, { _FirebaseNamespace } from '@firebase/app-compat';\nimport { name, version } from '../package.json';\nimport { Component, ComponentType } from '@firebase/component';\nimport { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';\nimport { InstallationsCompat } from './installationsCompat';\n\ndeclare module '@firebase/component' {\n interface NameServiceMapping {\n 'installations-compat': FirebaseInstallationsCompat;\n }\n}\n\nfunction registerInstallations(instance: _FirebaseNamespace): void {\n instance.INTERNAL.registerComponent(\n new Component(\n 'installations-compat',\n container => {\n const app = container.getProvider('app-compat').getImmediate()!;\n const installations = container\n .getProvider('installations')\n .getImmediate()!;\n return new InstallationsCompat(app, installations);\n },\n ComponentType.PUBLIC\n )\n );\n\n instance.registerVersion(name, version);\n}\n\nregisterInstallations(firebase as _FirebaseNamespace);\n\n/**\n * Define extension behavior of `registerInstallations`\n */\ndeclare module '@firebase/app-compat' {\n interface FirebaseNamespace {\n installations(app?: FirebaseApp): FirebaseInstallationsCompat;\n }\n interface FirebaseApp {\n installations(): FirebaseInstallationsCompat;\n }\n}\n"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;MAcU,mBAAmB,CAAA;IAG9B,WAAmB,CAAA,GAAgB,EAAW,SAAwB,EAAA;QAAnD,IAAG,CAAA,GAAA,GAAH,GAAG,CAAa;QAAW,IAAS,CAAA,SAAA,GAAT,SAAS,CAAe;KAAI;IAE1E,KAAK,GAAA;AACH,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC9B;AACD,IAAA,QAAQ,CAAC,YAAsB,EAAA;QAC7B,OAAO,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;KAC/C;IACD,MAAM,GAAA;AACJ,QAAA,OAAO,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC5C;AACD,IAAA,UAAU,CAAC,QAA4B,EAAA;QACrC,OAAO,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;KAC7C;AACF;;AC9CD;;;;;;;;;;;;;;;AAeG;AAcH,SAAS,qBAAqB,CAAC,QAA4B,EAAA;AACzD,IAAA,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,CACjC,IAAI,SAAS,CACX,sBAAsB,EACtB,SAAS,IAAG;QACV,MAAM,GAAG,GAAG,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,YAAY,EAAG,CAAC;QAChE,MAAM,aAAa,GAAG,SAAS;aAC5B,WAAW,CAAC,eAAe,CAAC;AAC5B,aAAA,YAAY,EAAG,CAAC;AACnB,QAAA,OAAO,IAAI,mBAAmB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;KACpD,EAAA,QAAA,4BAEF,CACF,CAAC;AAEF,IAAA,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC;AAED,qBAAqB,CAAC,QAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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';
|
|
@@ -0,0 +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 {};
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var firebase = require('@firebase/app-compat');
|
|
4
|
+
var component = require('@firebase/component');
|
|
5
|
+
var installations = require('@firebase/installations');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
|
|
10
|
+
|
|
11
|
+
const name = "@firebase/installations-compat";
|
|
12
|
+
const version = "0.2.20";
|
|
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
|
+
}
|
|
47
|
+
}
|
|
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
|
+
}
|
|
75
|
+
registerInstallations(firebase__default["default"]);
|
|
76
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/installationsCompat.ts","../src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';\nimport { FirebaseApp, _FirebaseService } from '@firebase/app-compat';\nimport {\n Installations,\n deleteInstallations,\n getId,\n getToken,\n IdChangeCallbackFn,\n IdChangeUnsubscribeFn,\n onIdChange\n} from '@firebase/installations';\n\nexport class InstallationsCompat\n implements FirebaseInstallationsCompat, _FirebaseService\n{\n constructor(public app: FirebaseApp, readonly _delegate: Installations) {}\n\n getId(): Promise<string> {\n return getId(this._delegate);\n }\n getToken(forceRefresh?: boolean): Promise<string> {\n return getToken(this._delegate, forceRefresh);\n }\n delete(): Promise<void> {\n return deleteInstallations(this._delegate);\n }\n onIdChange(callback: IdChangeCallbackFn): IdChangeUnsubscribeFn {\n return onIdChange(this._delegate, callback);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport firebase, { _FirebaseNamespace } from '@firebase/app-compat';\nimport { name, version } from '../package.json';\nimport { Component, ComponentType } from '@firebase/component';\nimport { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';\nimport { InstallationsCompat } from './installationsCompat';\n\ndeclare module '@firebase/component' {\n interface NameServiceMapping {\n 'installations-compat': FirebaseInstallationsCompat;\n }\n}\n\nfunction registerInstallations(instance: _FirebaseNamespace): void {\n instance.INTERNAL.registerComponent(\n new Component(\n 'installations-compat',\n container => {\n const app = container.getProvider('app-compat').getImmediate()!;\n const installations = container\n .getProvider('installations')\n .getImmediate()!;\n return new InstallationsCompat(app, installations);\n },\n ComponentType.PUBLIC\n )\n );\n\n instance.registerVersion(name, version);\n}\n\nregisterInstallations(firebase as _FirebaseNamespace);\n\n/**\n * Define extension behavior of `registerInstallations`\n */\ndeclare module '@firebase/app-compat' {\n interface FirebaseNamespace {\n installations(app?: FirebaseApp): FirebaseInstallationsCompat;\n }\n interface FirebaseApp {\n installations(): FirebaseInstallationsCompat;\n }\n}\n"],"names":["getId","getToken","deleteInstallations","onIdChange","Component","firebase"],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;MAcU,mBAAmB,CAAA;IAG9B,WAAmB,CAAA,GAAgB,EAAW,SAAwB,EAAA;QAAnD,IAAG,CAAA,GAAA,GAAH,GAAG,CAAa;QAAW,IAAS,CAAA,SAAA,GAAT,SAAS,CAAe;KAAI;IAE1E,KAAK,GAAA;AACH,QAAA,OAAOA,mBAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC9B;AACD,IAAA,QAAQ,CAAC,YAAsB,EAAA;QAC7B,OAAOC,sBAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;KAC/C;IACD,MAAM,GAAA;AACJ,QAAA,OAAOC,iCAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC5C;AACD,IAAA,UAAU,CAAC,QAA4B,EAAA;QACrC,OAAOC,wBAAU,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;KAC7C;AACF;;AC9CD;;;;;;;;;;;;;;;AAeG;AAcH,SAAS,qBAAqB,CAAC,QAA4B,EAAA;AACzD,IAAA,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,CACjC,IAAIC,mBAAS,CACX,sBAAsB,EACtB,SAAS,IAAG;QACV,MAAM,GAAG,GAAG,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,YAAY,EAAG,CAAC;QAChE,MAAM,aAAa,GAAG,SAAS;aAC5B,WAAW,CAAC,eAAe,CAAC;AAC5B,aAAA,YAAY,EAAG,CAAC;AACnB,QAAA,OAAO,IAAI,mBAAmB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;KACpD,EAAA,QAAA,4BAEF,CACF,CAAC;AAEF,IAAA,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC;AAED,qBAAqB,CAACC,4BAA8B,CAAC;;"}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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';
|
|
@@ -0,0 +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 {};
|
|
@@ -0,0 +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;
|
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@depup/firebase__installations-compat",
|
|
3
|
+
"version": "0.2.20-depup.0",
|
|
4
|
+
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/esm/index.esm.js",
|
|
7
|
+
"browser": "dist/esm/index.esm.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/src/index.d.ts",
|
|
11
|
+
"require": "./dist/index.cjs.js",
|
|
12
|
+
"default": "./dist/esm/index.esm.js"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"typings": "dist/src/index.d.ts",
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"changes.json",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
|
25
|
+
"lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
|
26
|
+
"build": "rollup -c",
|
|
27
|
+
"build:deps": "lerna run --scope @firebase/installations-compat --include-dependencies build",
|
|
28
|
+
"build:release": "rollup -c rollup.config.release.js",
|
|
29
|
+
"dev": "rollup -c -w",
|
|
30
|
+
"test": "yarn type-check && yarn test:karma && yarn lint",
|
|
31
|
+
"test:ci": "node ../../scripts/run_tests_in_ci.js",
|
|
32
|
+
"test:karma": "karma start",
|
|
33
|
+
"test:debug": "karma start --browsers=Chrome --auto-watch",
|
|
34
|
+
"trusted-type-check": "tsec -p tsconfig.json --noEmit",
|
|
35
|
+
"type-check": "tsc -p . --noEmit",
|
|
36
|
+
"serve": "yarn serve:build && yarn serve:host",
|
|
37
|
+
"serve:build": "rollup -c test-app/rollup.config.js",
|
|
38
|
+
"serve:host": "http-server -c-1 test-app"
|
|
39
|
+
},
|
|
40
|
+
"repository": {
|
|
41
|
+
"directory": "packages/installations-compat",
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
|
|
44
|
+
},
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/firebase/firebase-js-sdk/issues"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@firebase/app-compat": "0.5.9",
|
|
50
|
+
"rollup": "2.79.2",
|
|
51
|
+
"@rollup/plugin-commonjs": "21.1.0",
|
|
52
|
+
"@rollup/plugin-json": "6.1.0",
|
|
53
|
+
"@rollup/plugin-node-resolve": "16.0.0",
|
|
54
|
+
"rollup-plugin-typescript2": "0.36.0",
|
|
55
|
+
"rollup-plugin-uglify": "6.0.4",
|
|
56
|
+
"typescript": "5.5.4"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"@firebase/app-compat": "0.x"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@firebase/installations": "0.6.20",
|
|
63
|
+
"@firebase/installations-types": "0.5.3",
|
|
64
|
+
"@firebase/util": "1.14.0",
|
|
65
|
+
"@firebase/component": "0.7.1",
|
|
66
|
+
"tslib": "^2.8.1"
|
|
67
|
+
},
|
|
68
|
+
"description": "[DepUp] Dependency-bumped version of @firebase/installations-compat",
|
|
69
|
+
"keywords": [
|
|
70
|
+
"depup",
|
|
71
|
+
"dependency-bumped",
|
|
72
|
+
"updated-deps",
|
|
73
|
+
"@firebase/installations-compat"
|
|
74
|
+
],
|
|
75
|
+
"depup": {
|
|
76
|
+
"changes": {
|
|
77
|
+
"tslib": {
|
|
78
|
+
"from": "^2.1.0",
|
|
79
|
+
"to": "^2.8.1"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"depsUpdated": 1,
|
|
83
|
+
"originalPackage": "@firebase/installations-compat",
|
|
84
|
+
"originalVersion": "0.2.20",
|
|
85
|
+
"processedAt": "2026-03-17T16:32:24.179Z",
|
|
86
|
+
"smokeTest": "failed"
|
|
87
|
+
}
|
|
88
|
+
}
|