From ed46394562f75c59fe963c39a05a20a1a442766b Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] rename console replay plugin --- src/plugins/console/replay/index.ts | 6 +++--- typings/plugins/console/replay/index.d.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/console/replay/index.ts b/src/plugins/console/replay/index.ts index d54c5e11..8b68e72f 100644 --- a/src/plugins/console/replay/index.ts +++ b/src/plugins/console/replay/index.ts @@ -108,9 +108,9 @@ class LogReplayPlugin { } } -export const getLogReplayPlugin: (options?: LogReplayConfig) => ReplayPlugin = ( - options, -) => { +export const getReplayConsolePlugin: ( + options?: LogReplayConfig, +) => ReplayPlugin = (options) => { const replayLogger = options?.replayLogger || new LogReplayPlugin(options).getConsoleLogger(); diff --git a/typings/plugins/console/replay/index.d.ts b/typings/plugins/console/replay/index.d.ts index 8d0fc9c0..4f2bb815 100644 --- a/typings/plugins/console/replay/index.d.ts +++ b/typings/plugins/console/replay/index.d.ts @@ -5,5 +5,5 @@ declare type LogReplayConfig = { level?: LogLevel[] | undefined; replayLogger: ReplayLogger | undefined; }; -export declare const getLogReplayPlugin: (options?: LogReplayConfig) => ReplayPlugin; +export declare const getReplayConsolePlugin: (options?: LogReplayConfig) => ReplayPlugin; export {};