No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.cjs.js 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. 'use strict';
  2. var firebase = require('@firebase/app-compat');
  3. var component = require('@firebase/component');
  4. var installations = require('@firebase/installations');
  5. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  6. var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
  7. var name = "@firebase/installations-compat";
  8. var version = "0.2.1";
  9. /**
  10. * @license
  11. * Copyright 2020 Google LLC
  12. *
  13. * Licensed under the Apache License, Version 2.0 (the "License");
  14. * you may not use this file except in compliance with the License.
  15. * You may obtain a copy of the License at
  16. *
  17. * http://www.apache.org/licenses/LICENSE-2.0
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an "AS IS" BASIS,
  21. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. */
  25. var InstallationsCompat = /** @class */ (function () {
  26. function InstallationsCompat(app, _delegate) {
  27. this.app = app;
  28. this._delegate = _delegate;
  29. }
  30. InstallationsCompat.prototype.getId = function () {
  31. return installations.getId(this._delegate);
  32. };
  33. InstallationsCompat.prototype.getToken = function (forceRefresh) {
  34. return installations.getToken(this._delegate, forceRefresh);
  35. };
  36. InstallationsCompat.prototype.delete = function () {
  37. return installations.deleteInstallations(this._delegate);
  38. };
  39. InstallationsCompat.prototype.onIdChange = function (callback) {
  40. return installations.onIdChange(this._delegate, callback);
  41. };
  42. return InstallationsCompat;
  43. }());
  44. /**
  45. * @license
  46. * Copyright 2020 Google LLC
  47. *
  48. * Licensed under the Apache License, Version 2.0 (the "License");
  49. * you may not use this file except in compliance with the License.
  50. * You may obtain a copy of the License at
  51. *
  52. * http://www.apache.org/licenses/LICENSE-2.0
  53. *
  54. * Unless required by applicable law or agreed to in writing, software
  55. * distributed under the License is distributed on an "AS IS" BASIS,
  56. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  57. * See the License for the specific language governing permissions and
  58. * limitations under the License.
  59. */
  60. function registerInstallations(instance) {
  61. instance.INTERNAL.registerComponent(new component.Component('installations-compat', function (container) {
  62. var app = container.getProvider('app-compat').getImmediate();
  63. var installations = container
  64. .getProvider('installations')
  65. .getImmediate();
  66. return new InstallationsCompat(app, installations);
  67. }, "PUBLIC" /* ComponentType.PUBLIC */));
  68. instance.registerVersion(name, version);
  69. }
  70. registerInstallations(firebase__default["default"]);
  71. //# sourceMappingURL=index.cjs.js.map