From 434aa8343fdcbb4d5002f934979913c099489bee Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 16 Nov 2025 19:08:29 +0800 Subject: sdk, del --- .../src/platform_browser/messagechannel/index.d.ts | 87 ---------------------- .../platform_browser/messagechannel/promise.d.ts | 33 -------- .../platform_browser/messagechannel/receiver.d.ts | 63 ---------------- .../platform_browser/messagechannel/sender.d.ts | 46 ------------ 4 files changed, 229 deletions(-) delete mode 100644 frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/index.d.ts delete mode 100644 frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/promise.d.ts delete mode 100644 frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/receiver.d.ts delete mode 100644 frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/sender.d.ts (limited to 'frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel') diff --git a/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/index.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/index.d.ts deleted file mode 100644 index 78beb52..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/index.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -/** - * @license - * Copyright 2019 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 { PromiseSettledResult } from './promise'; -export declare const enum _TimeoutDuration { - ACK = 50, - COMPLETION = 3000, - LONG_ACK = 800 -} -/** - * Enumeration of possible response types from the Receiver. - */ -export declare const enum _Status { - ACK = "ack", - DONE = "done" -} -export declare const enum _MessageError { - CONNECTION_CLOSED = "connection_closed", - CONNECTION_UNAVAILABLE = "connection_unavailable", - INVALID_RESPONSE = "invalid_response", - TIMEOUT = "timeout", - UNKNOWN = "unknown_error", - UNSUPPORTED_EVENT = "unsupported_event" -} -/** - * Enumeration of possible events sent by the Sender. - */ -export declare const enum _EventType { - KEY_CHANGED = "keyChanged", - PING = "ping" -} -/** - * Response to a {@link EventType.KEY_CHANGED} event. - */ -export interface KeyChangedResponse { - keyProcessed: boolean; -} -/** - * Response to a {@link EventType.PING} event. - */ -export type _PingResponse = _EventType[]; -export type _ReceiverResponse = KeyChangedResponse | _PingResponse; -interface MessageEvent { - eventType: _EventType; - eventId: string; -} -/** - * Request for a {@link EventType.KEY_CHANGED} event. - */ -export interface KeyChangedRequest { - key: string; -} -/** - * Request for a {@link EventType.PING} event. - */ -export interface PingRequest { -} -/** Data sent by Sender */ -export type _SenderRequest = KeyChangedRequest | PingRequest; -/** Receiver handler to process events sent by the Sender */ -export interface ReceiverHandler { - (origin: string, data: S): T | Promise; -} -/** Full message sent by Sender */ -export interface SenderMessageEvent extends MessageEvent { - data: T; -} -export type _ReceiverMessageResponse = Array> | null; -/** Full message sent by Receiver */ -export interface ReceiverMessageEvent extends MessageEvent { - status: _Status; - response: _ReceiverMessageResponse; -} -export {}; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/promise.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/promise.d.ts deleted file mode 100644 index d57013b..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/promise.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @license - * Copyright 2019 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. - */ -/** TODO: remove this once tslib has a polyfill for Promise.allSettled */ -interface PromiseFulfilledResult { - fulfilled: true; - value: T; -} -interface PromiseRejectedResult { - fulfilled: false; - reason: any; -} -export type PromiseSettledResult = PromiseFulfilledResult | PromiseRejectedResult; -/** - * Shim for Promise.allSettled, note the slightly different format of `fulfilled` vs `status`. - * - * @param promises - Array of promises to wait on. - */ -export declare function _allSettled(promises: Array>): Promise>>; -export {}; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/receiver.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/receiver.d.ts deleted file mode 100644 index 394de7b..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/receiver.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -/** - * @license - * Copyright 2019 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 { ReceiverHandler, _EventType, _ReceiverResponse, _SenderRequest } from './index'; -/** - * Interface class for receiving messages. - * - */ -export declare class Receiver { - private readonly eventTarget; - private static readonly receivers; - private readonly boundEventHandler; - private readonly handlersMap; - constructor(eventTarget: EventTarget); - /** - * Obtain an instance of a Receiver for a given event target, if none exists it will be created. - * - * @param eventTarget - An event target (such as window or self) through which the underlying - * messages will be received. - */ - static _getInstance(eventTarget: EventTarget): Receiver; - private isListeningto; - /** - * Fans out a MessageEvent to the appropriate listeners. - * - * @remarks - * Sends an {@link Status.ACK} upon receipt and a {@link Status.DONE} once all handlers have - * finished processing. - * - * @param event - The MessageEvent. - * - */ - private handleEvent; - /** - * Subscribe an event handler for a particular event. - * - * @param eventType - Event name to subscribe to. - * @param eventHandler - The event handler which should receive the events. - * - */ - _subscribe(eventType: _EventType, eventHandler: ReceiverHandler): void; - /** - * Unsubscribe an event handler from a particular event. - * - * @param eventType - Event name to unsubscribe from. - * @param eventHandler - Optional event handler, if none provided, unsubscribe all handlers on this event. - * - */ - _unsubscribe(eventType: _EventType, eventHandler?: ReceiverHandler): void; -} diff --git a/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/sender.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/sender.d.ts deleted file mode 100644 index a1121b6..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node-esm/src/platform_browser/messagechannel/sender.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @license - * Copyright 2019 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 { _SenderRequest, _EventType, _ReceiverMessageResponse, _ReceiverResponse, _TimeoutDuration } from './index'; -/** - * Interface for sending messages and waiting for a completion response. - * - */ -export declare class Sender { - private readonly target; - private readonly handlers; - constructor(target: ServiceWorker); - /** - * Unsubscribe the handler and remove it from our tracking Set. - * - * @param handler - The handler to unsubscribe. - */ - private removeMessageHandler; - /** - * Send a message to the Receiver located at {@link target}. - * - * @remarks - * We'll first wait a bit for an ACK , if we get one we will wait significantly longer until the - * receiver has had a chance to fully process the event. - * - * @param eventType - Type of event to send. - * @param data - The payload of the event. - * @param timeout - Timeout for waiting on an ACK from the receiver. - * - * @returns An array of settled promises from all the handlers that were listening on the receiver. - */ - _send(eventType: _EventType, data: S, timeout?: _TimeoutDuration): Promise<_ReceiverMessageResponse>; -} -- cgit v1.2.3