@firebase/installations-compat 0.2.17 → 0.2.18-canary.25b60fdaa

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,7 +3,7 @@ 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.17";
6
+ const version = "0.2.18-canary.25b60fdaa";
7
7
 
8
8
  /**
9
9
  * @license
@@ -67,4 +67,4 @@ function registerInstallations(instance) {
67
67
  instance.registerVersion(name, version);
68
68
  }
69
69
  registerInstallations(firebase);
70
- //# sourceMappingURL=index.esm2017.js.map
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"}
package/dist/index.cjs.js CHANGED
@@ -9,7 +9,7 @@ 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.17";
12
+ const version = "0.2.18-canary.25b60fdaa";
13
13
 
14
14
  /**
15
15
  * @license
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@firebase/installations-compat",
3
- "version": "0.2.17",
3
+ "version": "0.2.18-canary.25b60fdaa",
4
4
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
5
5
  "main": "dist/index.cjs.js",
6
- "module": "dist/esm/index.esm2017.js",
7
- "browser": "dist/esm/index.esm2017.js",
6
+ "module": "dist/esm/index.esm.js",
7
+ "browser": "dist/esm/index.esm.js",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/src/index.d.ts",
11
11
  "require": "./dist/index.cjs.js",
12
- "default": "./dist/esm/index.esm2017.js"
12
+ "default": "./dist/esm/index.esm.js"
13
13
  },
14
14
  "./package.json": "./package.json"
15
15
  },
@@ -44,7 +44,7 @@
44
44
  "url": "https://github.com/firebase/firebase-js-sdk/issues"
45
45
  },
46
46
  "devDependencies": {
47
- "@firebase/app-compat": "0.4.0",
47
+ "@firebase/app-compat": "0.4.2-canary.25b60fdaa",
48
48
  "rollup": "2.79.2",
49
49
  "@rollup/plugin-commonjs": "21.1.0",
50
50
  "@rollup/plugin-json": "6.1.0",
@@ -54,13 +54,13 @@
54
54
  "typescript": "5.5.4"
55
55
  },
56
56
  "peerDependencies": {
57
- "@firebase/app-compat": "0.x"
57
+ "@firebase/app-compat": "0.4.2-canary.25b60fdaa"
58
58
  },
59
59
  "dependencies": {
60
- "@firebase/installations": "0.6.17",
61
- "@firebase/installations-types": "0.5.3",
62
- "@firebase/util": "1.12.0",
63
- "@firebase/component": "0.6.17",
60
+ "@firebase/installations": "0.6.18-canary.25b60fdaa",
61
+ "@firebase/installations-types": "0.5.3-canary.25b60fdaa",
62
+ "@firebase/util": "1.12.1-canary.25b60fdaa",
63
+ "@firebase/component": "0.6.18-canary.25b60fdaa",
64
64
  "tslib": "^2.1.0"
65
65
  }
66
66
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.esm2017.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"}