summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/messaging-compat
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-11-09 11:15:19 +0800
committeraltaf-creator <dev@altafcreator.com>2025-11-09 11:15:19 +0800
commit8eff962cab608341a6f2fedc640a0e32d96f26e2 (patch)
tree05534d1a720ddc3691d346c69b4972555820a061 /frontend-old/node_modules/@firebase/messaging-compat
pain
Diffstat (limited to 'frontend-old/node_modules/@firebase/messaging-compat')
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/README.md5
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/esm/index.esm.js134
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/esm/index.esm.js.map1
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/esm/package.json1
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/index.d.ts31
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/messaging-compat.d.ts41
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/registerMessagingCompat.d.ts23
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/esm/test/fakes.d.ts20
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/esm/test/messaging-compat.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/index.cjs.js140
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/index.cjs.js.map1
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/src/index.d.ts40
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/src/messaging-compat.d.ts41
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/src/registerMessagingCompat.d.ts23
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/test/fakes.d.ts20
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/dist/test/messaging-compat.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/messaging-compat/package.json61
17 files changed, 616 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/README.md b/frontend-old/node_modules/@firebase/messaging-compat/README.md
new file mode 100644
index 0000000..9e7d29d
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/README.md
@@ -0,0 +1,5 @@
+# @firebase/messaging-compat
+
+This is the compat package that recreates the v8 APIs.
+
+**This package is not intended for direct usage, and should only be used via the officially supported [firebase](https://www.npmjs.com/package/firebase) package.**
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/index.esm.js b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/index.esm.js
new file mode 100644
index 0000000..886ce14
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/index.esm.js
@@ -0,0 +1,134 @@
+import firebase from '@firebase/app-compat';
+import { Component } from '@firebase/component';
+import { getToken, deleteToken, onMessage } from '@firebase/messaging';
+import { isIndexedDBAvailable, areCookiesEnabled } from '@firebase/util';
+import { onBackgroundMessage } from '@firebase/messaging/sw';
+
+const name = "@firebase/messaging-compat";
+const version = "0.2.23";
+
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+function isSupported() {
+ if (self && 'ServiceWorkerGlobalScope' in self) {
+ // Running in ServiceWorker context
+ return isSwSupported();
+ }
+ else {
+ // Assume we are in the window context.
+ return isWindowSupported();
+ }
+}
+/**
+ * Checks to see if the required APIs exist.
+ * Unlike the modular version, it does not check if IndexedDB.open() is allowed
+ * in order to keep isSupported() synchronous and maintain v8 compatibility.
+ */
+function isWindowSupported() {
+ return (typeof window !== 'undefined' &&
+ isIndexedDBAvailable() &&
+ areCookiesEnabled() &&
+ 'serviceWorker' in navigator &&
+ 'PushManager' in window &&
+ 'Notification' in window &&
+ 'fetch' in window &&
+ ServiceWorkerRegistration.prototype.hasOwnProperty('showNotification') &&
+ PushSubscription.prototype.hasOwnProperty('getKey'));
+}
+/**
+ * Checks to see if the required APIs exist within SW Context.
+ */
+function isSwSupported() {
+ return (isIndexedDBAvailable() &&
+ 'PushManager' in self &&
+ 'Notification' in self &&
+ ServiceWorkerRegistration.prototype.hasOwnProperty('showNotification') &&
+ PushSubscription.prototype.hasOwnProperty('getKey'));
+}
+class MessagingCompatImpl {
+ constructor(app, _delegate) {
+ this.app = app;
+ this._delegate = _delegate;
+ this.app = app;
+ this._delegate = _delegate;
+ }
+ async getToken(options) {
+ return getToken(this._delegate, options);
+ }
+ async deleteToken() {
+ return deleteToken(this._delegate);
+ }
+ onMessage(nextOrObserver) {
+ return onMessage(this._delegate, nextOrObserver);
+ }
+ onBackgroundMessage(nextOrObserver) {
+ return onBackgroundMessage(this._delegate, nextOrObserver);
+ }
+}
+
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+const messagingCompatFactory = (container) => {
+ if (self && 'ServiceWorkerGlobalScope' in self) {
+ // in sw
+ return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging-sw').getImmediate());
+ }
+ else {
+ // in window
+ return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging').getImmediate());
+ }
+};
+const NAMESPACE_EXPORTS = {
+ isSupported
+};
+function registerMessagingCompat() {
+ firebase.INTERNAL.registerComponent(new Component('messaging-compat', messagingCompatFactory, "PUBLIC" /* ComponentType.PUBLIC */).setServiceProps(NAMESPACE_EXPORTS));
+}
+
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+registerMessagingCompat();
+firebase.registerVersion(name, version);
+//# sourceMappingURL=index.esm.js.map
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/index.esm.js.map b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/index.esm.js.map
new file mode 100644
index 0000000..aca79ef
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/index.esm.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.esm.js","sources":["../../src/messaging-compat.ts","../../src/registerMessagingCompat.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 {\n FirebaseApp as AppCompat,\n _FirebaseService\n} from '@firebase/app-compat';\nimport {\n Messaging,\n MessagePayload,\n deleteToken,\n getToken,\n onMessage\n} from '@firebase/messaging';\nimport {\n areCookiesEnabled,\n isIndexedDBAvailable,\n NextFn,\n Observer,\n Unsubscribe\n} from '@firebase/util';\n\nimport { onBackgroundMessage } from '@firebase/messaging/sw';\n\nexport interface MessagingCompat {\n getToken(options?: {\n vapidKey?: string;\n serviceWorkerRegistration?: ServiceWorkerRegistration;\n }): Promise<string>;\n\n deleteToken(): Promise<boolean>;\n\n onMessage(\n nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>\n ): Unsubscribe;\n\n onBackgroundMessage(\n nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>\n ): Unsubscribe;\n}\n\nexport function isSupported(): boolean {\n if (self && 'ServiceWorkerGlobalScope' in self) {\n // Running in ServiceWorker context\n return isSwSupported();\n } else {\n // Assume we are in the window context.\n return isWindowSupported();\n }\n}\n\n/**\n * Checks to see if the required APIs exist.\n * Unlike the modular version, it does not check if IndexedDB.open() is allowed\n * in order to keep isSupported() synchronous and maintain v8 compatibility.\n */\nfunction isWindowSupported(): boolean {\n return (\n typeof window !== 'undefined' &&\n isIndexedDBAvailable() &&\n areCookiesEnabled() &&\n 'serviceWorker' in navigator &&\n 'PushManager' in window &&\n 'Notification' in window &&\n 'fetch' in window &&\n ServiceWorkerRegistration.prototype.hasOwnProperty('showNotification') &&\n PushSubscription.prototype.hasOwnProperty('getKey')\n );\n}\n\n/**\n * Checks to see if the required APIs exist within SW Context.\n */\nfunction isSwSupported(): boolean {\n return (\n isIndexedDBAvailable() &&\n 'PushManager' in self &&\n 'Notification' in self &&\n ServiceWorkerRegistration.prototype.hasOwnProperty('showNotification') &&\n PushSubscription.prototype.hasOwnProperty('getKey')\n );\n}\n\nexport class MessagingCompatImpl implements MessagingCompat, _FirebaseService {\n constructor(readonly app: AppCompat, readonly _delegate: Messaging) {\n this.app = app;\n this._delegate = _delegate;\n }\n\n async getToken(options?: {\n vapidKey?: string;\n serviceWorkerRegistration?: ServiceWorkerRegistration;\n }): Promise<string> {\n return getToken(this._delegate, options);\n }\n\n async deleteToken(): Promise<boolean> {\n return deleteToken(this._delegate);\n }\n\n onMessage(\n nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>\n ): Unsubscribe {\n return onMessage(this._delegate, nextOrObserver);\n }\n\n onBackgroundMessage(\n nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>\n ): Unsubscribe {\n return onBackgroundMessage(this._delegate, nextOrObserver);\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 {\n Component,\n ComponentContainer,\n ComponentType,\n InstanceFactory\n} from '@firebase/component';\nimport { MessagingCompatImpl, isSupported } from './messaging-compat';\nimport firebase, { _FirebaseNamespace } from '@firebase/app-compat';\n\ndeclare module '@firebase/component' {\n interface NameServiceMapping {\n 'messaging-compat': MessagingCompatImpl;\n }\n}\n\nconst messagingCompatFactory: InstanceFactory<'messaging-compat'> = (\n container: ComponentContainer\n) => {\n if (self && 'ServiceWorkerGlobalScope' in self) {\n // in sw\n return new MessagingCompatImpl(\n container.getProvider('app-compat').getImmediate(),\n container.getProvider('messaging-sw').getImmediate()\n );\n } else {\n // in window\n return new MessagingCompatImpl(\n container.getProvider('app-compat').getImmediate(),\n container.getProvider('messaging').getImmediate()\n );\n }\n};\n\nconst NAMESPACE_EXPORTS = {\n isSupported\n};\n\nexport function registerMessagingCompat(): void {\n (firebase as _FirebaseNamespace).INTERNAL.registerComponent(\n new Component(\n 'messaging-compat',\n messagingCompatFactory,\n ComponentType.PUBLIC\n ).setServiceProps(NAMESPACE_EXPORTS)\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 { name, version } from '../package.json';\n\nimport firebase from '@firebase/app-compat';\nimport { registerMessagingCompat } from './registerMessagingCompat';\nimport { MessagingCompat } from './messaging-compat';\n\nregisterMessagingCompat();\nfirebase.registerVersion(name, version);\n\n/**\n * Define extension behavior of `registerMessaging`\n */\ndeclare module '@firebase/app-compat' {\n interface FirebaseNamespace {\n messaging: {\n (app?: FirebaseApp): MessagingCompat;\n isSupported(): boolean;\n };\n }\n interface FirebaseApp {\n messaging(): MessagingCompat;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;SAwCa,WAAW,GAAA;AACzB,IAAA,IAAI,IAAI,IAAI,0BAA0B,IAAI,IAAI,EAAE;;QAE9C,OAAO,aAAa,EAAE,CAAC;KACxB;SAAM;;QAEL,OAAO,iBAAiB,EAAE,CAAC;KAC5B;AACH,CAAC;AAED;;;;AAIG;AACH,SAAS,iBAAiB,GAAA;AACxB,IAAA,QACE,OAAO,MAAM,KAAK,WAAW;AAC7B,QAAA,oBAAoB,EAAE;AACtB,QAAA,iBAAiB,EAAE;AACnB,QAAA,eAAe,IAAI,SAAS;AAC5B,QAAA,aAAa,IAAI,MAAM;AACvB,QAAA,cAAc,IAAI,MAAM;AACxB,QAAA,OAAO,IAAI,MAAM;AACjB,QAAA,yBAAyB,CAAC,SAAS,CAAC,cAAc,CAAC,kBAAkB,CAAC;QACtE,gBAAgB,CAAC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,EACnD;AACJ,CAAC;AAED;;AAEG;AACH,SAAS,aAAa,GAAA;IAC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IAAI,mBAAmB,CAC5B,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,YAAY,EAAE,EAClD,SAAS,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,YAAY,EAAE,CAClD,CAAC;KACH;AACH,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACxB,WAAW;CACZ,CAAC;SAEc,uBAAuB,GAAA;AACpC,IAAA,QAA+B,CAAC,QAAQ,CAAC,iBAAiB,CACzD,IAAI,SAAS,CACX,kBAAkB,EAClB,sBAAsB,sCAEvB,CAAC,eAAe,CAAC,iBAAiB,CAAC,CACrC,CAAC;AACJ;;AC9DA;;;;;;;;;;;;;;;AAeG;AAQH,uBAAuB,EAAE,CAAC;AAC1B,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC"} \ No newline at end of file
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/package.json b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/package.json
new file mode 100644
index 0000000..7c34deb
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/package.json
@@ -0,0 +1 @@
+{"type":"module"} \ No newline at end of file
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/index.d.ts b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/index.d.ts
new file mode 100644
index 0000000..5e32ac5
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/index.d.ts
@@ -0,0 +1,31 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { MessagingCompat } from './messaging-compat';
+/**
+ * Define extension behavior of `registerMessaging`
+ */
+declare module '@firebase/app-compat' {
+ interface FirebaseNamespace {
+ messaging: {
+ (app?: FirebaseApp): MessagingCompat;
+ isSupported(): boolean;
+ };
+ }
+ interface FirebaseApp {
+ messaging(): MessagingCompat;
+ }
+}
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/messaging-compat.d.ts b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/messaging-compat.d.ts
new file mode 100644
index 0000000..d16ab46
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/messaging-compat.d.ts
@@ -0,0 +1,41 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirebaseApp as AppCompat, _FirebaseService } from '@firebase/app-compat';
+import { Messaging, MessagePayload } from '@firebase/messaging';
+import { NextFn, Observer, Unsubscribe } from '@firebase/util';
+export interface MessagingCompat {
+ getToken(options?: {
+ vapidKey?: string;
+ serviceWorkerRegistration?: ServiceWorkerRegistration;
+ }): Promise<string>;
+ deleteToken(): Promise<boolean>;
+ onMessage(nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
+ onBackgroundMessage(nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
+}
+export declare function isSupported(): boolean;
+export declare class MessagingCompatImpl implements MessagingCompat, _FirebaseService {
+ readonly app: AppCompat;
+ readonly _delegate: Messaging;
+ constructor(app: AppCompat, _delegate: Messaging);
+ getToken(options?: {
+ vapidKey?: string;
+ serviceWorkerRegistration?: ServiceWorkerRegistration;
+ }): Promise<string>;
+ deleteToken(): Promise<boolean>;
+ onMessage(nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
+ onBackgroundMessage(nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
+}
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/registerMessagingCompat.d.ts b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/registerMessagingCompat.d.ts
new file mode 100644
index 0000000..b26cfeb
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/src/registerMessagingCompat.d.ts
@@ -0,0 +1,23 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { MessagingCompatImpl } from './messaging-compat';
+declare module '@firebase/component' {
+ interface NameServiceMapping {
+ 'messaging-compat': MessagingCompatImpl;
+ }
+}
+export declare function registerMessagingCompat(): void;
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/test/fakes.d.ts b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/test/fakes.d.ts
new file mode 100644
index 0000000..2494b29
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/test/fakes.d.ts
@@ -0,0 +1,20 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirebaseApp } from '@firebase/app-compat';
+import { Messaging } from '@firebase/messaging';
+export declare function getFakeApp(): FirebaseApp;
+export declare function getFakeModularMessaging(): Messaging;
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/test/messaging-compat.test.d.ts b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/test/messaging-compat.test.d.ts
new file mode 100644
index 0000000..731d2d9
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/esm/test/messaging-compat.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export {};
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/index.cjs.js b/frontend-old/node_modules/@firebase/messaging-compat/dist/index.cjs.js
new file mode 100644
index 0000000..7e53dca
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/index.cjs.js
@@ -0,0 +1,140 @@
+'use strict';
+
+var firebase = require('@firebase/app-compat');
+var component = require('@firebase/component');
+var messaging = require('@firebase/messaging');
+var util = require('@firebase/util');
+var sw = require('@firebase/messaging/sw');
+
+function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
+
+var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
+
+const name = "@firebase/messaging-compat";
+const version = "0.2.23";
+
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+function isSupported() {
+ if (self && 'ServiceWorkerGlobalScope' in self) {
+ // Running in ServiceWorker context
+ return isSwSupported();
+ }
+ else {
+ // Assume we are in the window context.
+ return isWindowSupported();
+ }
+}
+/**
+ * Checks to see if the required APIs exist.
+ * Unlike the modular version, it does not check if IndexedDB.open() is allowed
+ * in order to keep isSupported() synchronous and maintain v8 compatibility.
+ */
+function isWindowSupported() {
+ return (typeof window !== 'undefined' &&
+ util.isIndexedDBAvailable() &&
+ util.areCookiesEnabled() &&
+ 'serviceWorker' in navigator &&
+ 'PushManager' in window &&
+ 'Notification' in window &&
+ 'fetch' in window &&
+ ServiceWorkerRegistration.prototype.hasOwnProperty('showNotification') &&
+ PushSubscription.prototype.hasOwnProperty('getKey'));
+}
+/**
+ * Checks to see if the required APIs exist within SW Context.
+ */
+function isSwSupported() {
+ return (util.isIndexedDBAvailable() &&
+ 'PushManager' in self &&
+ 'Notification' in self &&
+ ServiceWorkerRegistration.prototype.hasOwnProperty('showNotification') &&
+ PushSubscription.prototype.hasOwnProperty('getKey'));
+}
+class MessagingCompatImpl {
+ constructor(app, _delegate) {
+ this.app = app;
+ this._delegate = _delegate;
+ this.app = app;
+ this._delegate = _delegate;
+ }
+ async getToken(options) {
+ return messaging.getToken(this._delegate, options);
+ }
+ async deleteToken() {
+ return messaging.deleteToken(this._delegate);
+ }
+ onMessage(nextOrObserver) {
+ return messaging.onMessage(this._delegate, nextOrObserver);
+ }
+ onBackgroundMessage(nextOrObserver) {
+ return sw.onBackgroundMessage(this._delegate, nextOrObserver);
+ }
+}
+
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+const messagingCompatFactory = (container) => {
+ if (self && 'ServiceWorkerGlobalScope' in self) {
+ // in sw
+ return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging-sw').getImmediate());
+ }
+ else {
+ // in window
+ return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging').getImmediate());
+ }
+};
+const NAMESPACE_EXPORTS = {
+ isSupported
+};
+function registerMessagingCompat() {
+ firebase__default["default"].INTERNAL.registerComponent(new component.Component('messaging-compat', messagingCompatFactory, "PUBLIC" /* ComponentType.PUBLIC */).setServiceProps(NAMESPACE_EXPORTS));
+}
+
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+registerMessagingCompat();
+firebase__default["default"].registerVersion(name, version);
+//# sourceMappingURL=index.cjs.js.map
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/index.cjs.js.map b/frontend-old/node_modules/@firebase/messaging-compat/dist/index.cjs.js.map
new file mode 100644
index 0000000..24e4fca
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/index.cjs.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.cjs.js","sources":["../src/messaging-compat.ts","../src/registerMessagingCompat.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 {\n FirebaseApp as AppCompat,\n _FirebaseService\n} from '@firebase/app-compat';\nimport {\n Messaging,\n MessagePayload,\n deleteToken,\n getToken,\n onMessage\n} from '@firebase/messaging';\nimport {\n areCookiesEnabled,\n isIndexedDBAvailable,\n NextFn,\n Observer,\n Unsubscribe\n} from '@firebase/util';\n\nimport { onBackgroundMessage } from '@firebase/messaging/sw';\n\nexport interface MessagingCompat {\n getToken(options?: {\n vapidKey?: string;\n serviceWorkerRegistration?: ServiceWorkerRegistration;\n }): Promise<string>;\n\n deleteToken(): Promise<boolean>;\n\n onMessage(\n nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>\n ): Unsubscribe;\n\n onBackgroundMessage(\n nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>\n ): Unsubscribe;\n}\n\nexport function isSupported(): boolean {\n if (self && 'ServiceWorkerGlobalScope' in self) {\n // Running in ServiceWorker context\n return isSwSupported();\n } else {\n // Assume we are in the window context.\n return isWindowSupported();\n }\n}\n\n/**\n * Checks to see if the required APIs exist.\n * Unlike the modular version, it does not check if IndexedDB.open() is allowed\n * in order to keep isSupported() synchronous and maintain v8 compatibility.\n */\nfunction isWindowSupported(): boolean {\n return (\n typeof window !== 'undefined' &&\n isIndexedDBAvailable() &&\n areCookiesEnabled() &&\n 'serviceWorker' in navigator &&\n 'PushManager' in window &&\n 'Notification' in window &&\n 'fetch' in window &&\n ServiceWorkerRegistration.prototype.hasOwnProperty('showNotification') &&\n PushSubscription.prototype.hasOwnProperty('getKey')\n );\n}\n\n/**\n * Checks to see if the required APIs exist within SW Context.\n */\nfunction isSwSupported(): boolean {\n return (\n isIndexedDBAvailable() &&\n 'PushManager' in self &&\n 'Notification' in self &&\n ServiceWorkerRegistration.prototype.hasOwnProperty('showNotification') &&\n PushSubscription.prototype.hasOwnProperty('getKey')\n );\n}\n\nexport class MessagingCompatImpl implements MessagingCompat, _FirebaseService {\n constructor(readonly app: AppCompat, readonly _delegate: Messaging) {\n this.app = app;\n this._delegate = _delegate;\n }\n\n async getToken(options?: {\n vapidKey?: string;\n serviceWorkerRegistration?: ServiceWorkerRegistration;\n }): Promise<string> {\n return getToken(this._delegate, options);\n }\n\n async deleteToken(): Promise<boolean> {\n return deleteToken(this._delegate);\n }\n\n onMessage(\n nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>\n ): Unsubscribe {\n return onMessage(this._delegate, nextOrObserver);\n }\n\n onBackgroundMessage(\n nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>\n ): Unsubscribe {\n return onBackgroundMessage(this._delegate, nextOrObserver);\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 {\n Component,\n ComponentContainer,\n ComponentType,\n InstanceFactory\n} from '@firebase/component';\nimport { MessagingCompatImpl, isSupported } from './messaging-compat';\nimport firebase, { _FirebaseNamespace } from '@firebase/app-compat';\n\ndeclare module '@firebase/component' {\n interface NameServiceMapping {\n 'messaging-compat': MessagingCompatImpl;\n }\n}\n\nconst messagingCompatFactory: InstanceFactory<'messaging-compat'> = (\n container: ComponentContainer\n) => {\n if (self && 'ServiceWorkerGlobalScope' in self) {\n // in sw\n return new MessagingCompatImpl(\n container.getProvider('app-compat').getImmediate(),\n container.getProvider('messaging-sw').getImmediate()\n );\n } else {\n // in window\n return new MessagingCompatImpl(\n container.getProvider('app-compat').getImmediate(),\n container.getProvider('messaging').getImmediate()\n );\n }\n};\n\nconst NAMESPACE_EXPORTS = {\n isSupported\n};\n\nexport function registerMessagingCompat(): void {\n (firebase as _FirebaseNamespace).INTERNAL.registerComponent(\n new Component(\n 'messaging-compat',\n messagingCompatFactory,\n ComponentType.PUBLIC\n ).setServiceProps(NAMESPACE_EXPORTS)\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 { name, version } from '../package.json';\n\nimport firebase from '@firebase/app-compat';\nimport { registerMessagingCompat } from './registerMessagingCompat';\nimport { MessagingCompat } from './messaging-compat';\n\nregisterMessagingCompat();\nfirebase.registerVersion(name, version);\n\n/**\n * Define extension behavior of `registerMessaging`\n */\ndeclare module '@firebase/app-compat' {\n interface FirebaseNamespace {\n messaging: {\n (app?: FirebaseApp): MessagingCompat;\n isSupported(): boolean;\n };\n }\n interface FirebaseApp {\n messaging(): MessagingCompat;\n }\n}\n"],"names":["isIndexedDBAvailable","areCookiesEnabled","getToken","deleteToken","onMessage","onBackgroundMessage","firebase","Component"],"mappings":";;;;;;;;;;;;;;;AA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_modules/@firebase/messaging-compat/dist/src/index.d.ts
new file mode 100644
index 0000000..1b6364b
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/src/index.d.ts
@@ -0,0 +1,40 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { MessagingCompat } from './messaging-compat';
+/**
+ * Define extension behavior of `registerMessaging`
+ */
+declare module '@firebase/app-compat' {
+ interface FirebaseNamespace {
+ messaging: {
+ (app?: FirebaseApp): MessagingCompat;
+ isSupported(): boolean;
+ };
+ }
+ interface FirebaseApp {
+ messaging(): MessagingCompat;
+ }
+}
+
+import { FirebaseApp as FirebaseAppCompat } from "@firebase/app-compat";
+import { type Messaging, type GetTokenOptions, type NextFn, type MessagePayload, type Observer, type Unsubscribe } from "@firebase/messaging";
+declare module "@firebase/messaging" {
+ function deleteToken(messaging: MessagingCompat): Promise<boolean>;
+ function getMessaging(app?: FirebaseAppCompat): Messaging;
+ function getToken(messaging: MessagingCompat, options?: GetTokenOptions): Promise<string>;
+ function onMessage(messaging: MessagingCompat, nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
+}
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/src/messaging-compat.d.ts b/frontend-old/node_modules/@firebase/messaging-compat/dist/src/messaging-compat.d.ts
new file mode 100644
index 0000000..d16ab46
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/src/messaging-compat.d.ts
@@ -0,0 +1,41 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirebaseApp as AppCompat, _FirebaseService } from '@firebase/app-compat';
+import { Messaging, MessagePayload } from '@firebase/messaging';
+import { NextFn, Observer, Unsubscribe } from '@firebase/util';
+export interface MessagingCompat {
+ getToken(options?: {
+ vapidKey?: string;
+ serviceWorkerRegistration?: ServiceWorkerRegistration;
+ }): Promise<string>;
+ deleteToken(): Promise<boolean>;
+ onMessage(nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
+ onBackgroundMessage(nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
+}
+export declare function isSupported(): boolean;
+export declare class MessagingCompatImpl implements MessagingCompat, _FirebaseService {
+ readonly app: AppCompat;
+ readonly _delegate: Messaging;
+ constructor(app: AppCompat, _delegate: Messaging);
+ getToken(options?: {
+ vapidKey?: string;
+ serviceWorkerRegistration?: ServiceWorkerRegistration;
+ }): Promise<string>;
+ deleteToken(): Promise<boolean>;
+ onMessage(nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
+ onBackgroundMessage(nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
+}
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/src/registerMessagingCompat.d.ts b/frontend-old/node_modules/@firebase/messaging-compat/dist/src/registerMessagingCompat.d.ts
new file mode 100644
index 0000000..b26cfeb
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/src/registerMessagingCompat.d.ts
@@ -0,0 +1,23 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { MessagingCompatImpl } from './messaging-compat';
+declare module '@firebase/component' {
+ interface NameServiceMapping {
+ 'messaging-compat': MessagingCompatImpl;
+ }
+}
+export declare function registerMessagingCompat(): void;
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/test/fakes.d.ts b/frontend-old/node_modules/@firebase/messaging-compat/dist/test/fakes.d.ts
new file mode 100644
index 0000000..2494b29
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/test/fakes.d.ts
@@ -0,0 +1,20 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirebaseApp } from '@firebase/app-compat';
+import { Messaging } from '@firebase/messaging';
+export declare function getFakeApp(): FirebaseApp;
+export declare function getFakeModularMessaging(): Messaging;
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/dist/test/messaging-compat.test.d.ts b/frontend-old/node_modules/@firebase/messaging-compat/dist/test/messaging-compat.test.d.ts
new file mode 100644
index 0000000..731d2d9
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/dist/test/messaging-compat.test.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export {};
diff --git a/frontend-old/node_modules/@firebase/messaging-compat/package.json b/frontend-old/node_modules/@firebase/messaging-compat/package.json
new file mode 100644
index 0000000..6dfac06
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging-compat/package.json
@@ -0,0 +1,61 @@
+{
+ "name": "@firebase/messaging-compat",
+ "version": "0.2.23",
+ "license": "Apache-2.0",
+ "description": "",
+ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
+ "main": "dist/index.cjs.js",
+ "browser": "dist/esm/index.esm.js",
+ "module": "dist/esm/index.esm.js",
+ "exports": {
+ ".": {
+ "types": "./dist/src/index.d.ts",
+ "require": "./dist/index.cjs.js",
+ "default": "./dist/esm/index.esm.js"
+ },
+ "./package.json": "./package.json"
+ },
+ "typings": "dist/src/index.d.ts",
+ "files": [
+ "dist"
+ ],
+ "scripts": {
+ "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
+ "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
+ "build": "rollup -c",
+ "build:deps": "lerna run --scope @firebase/'messaging-compat' --include-dependencies build",
+ "build:release": "yarn build && yarn add-compat-overloads",
+ "dev": "rollup -c -w",
+ "test": "run-p --npm-path npm test:karma",
+ "test:ci": "node ../../scripts/run_tests_in_ci.js",
+ "test:karma": "karma start",
+ "test:debug": "karma start --browsers=Chrome --auto-watch",
+ "trusted-type-check": "tsec -p tsconfig.json --noEmit",
+ "type-check": "tsc --noEmit",
+ "add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../messaging/dist/index-public.d.ts -o dist/src/index.d.ts -a -r Messaging:MessagingCompat -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/messaging"
+ },
+ "peerDependencies": {
+ "@firebase/app-compat": "0.x"
+ },
+ "dependencies": {
+ "@firebase/messaging": "0.12.23",
+ "@firebase/component": "0.7.0",
+ "@firebase/util": "1.13.0",
+ "tslib": "^2.1.0"
+ },
+ "devDependencies": {
+ "@firebase/app-compat": "0.5.0",
+ "@rollup/plugin-json": "6.1.0",
+ "rollup-plugin-typescript2": "0.36.0",
+ "ts-essentials": "9.4.2",
+ "typescript": "5.5.4"
+ },
+ "repository": {
+ "directory": "packages/messaging",
+ "type": "git",
+ "url": "git+https://github.com/firebase/firebase-js-sdk.git"
+ },
+ "bugs": {
+ "url": "https://github.com/firebase/firebase-js-sdk/issues"
+ }
+}