mobileapplicationPassvault/node_modules/@firebase/installations-compat/dist/esm/index.esm2017.js.map

1 line
4.6 KiB
Plaintext
Raw Permalink Normal View History

2024-04-12 05:23:32 +00:00
{"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,