PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@react-native/dev-middleware/dist/inspector-proxy

Просмотр файла: DeviceEventReporter.js.flow

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow strict-local
 * @format
 */

import type { EventReporter } from "../types/EventReporter";
import type { CDPResponse } from "./cdp-types/messages";
import type { DeepReadOnly } from "./types";

type DeviceMetadata = $ReadOnly<{
  appId: string,
  deviceId: string,
  deviceName: string,
}>;

type RequestMetadata = $ReadOnly<{
  pageId: string | null,
  frontendUserAgent: string | null,
  prefersFuseboxFrontend: boolean | null,
}>;

type ResponseMetadata = $ReadOnly<{
  pageId: string | null,
  frontendUserAgent: string | null,
  prefersFuseboxFrontend: boolean | null,
}>;

declare class DeviceEventReporter {
  constructor(eventReporter: EventReporter, metadata: DeviceMetadata): void;
  logRequest(
    req: $ReadOnly<{ id: number, method: string, ... }>,
    origin: "debugger" | "proxy",
    metadata: RequestMetadata
  ): void;
  logResponse(
    res: DeepReadOnly<CDPResponse<>>,
    origin: "device" | "proxy",
    metadata: ResponseMetadata
  ): void;
  logProfilingTargetRegistered(): void;
  logConnection(
    connectedEntity: "debugger",
    metadata: $ReadOnly<{
      pageId: string,
      frontendUserAgent: string | null,
    }>
  ): void;
  logDisconnection(disconnectedEntity: "device" | "debugger"): void;
  logProxyMessageHandlingError(
    messageOrigin: "device" | "debugger",
    error: Error,
    message: string
  ): void;
  logFuseboxConsoleNotice(): void;
}

declare export default typeof DeviceEventReporter;

Выполнить команду


Для локальной разработки. Не используйте в интернете!