From 3eae6665c7c1e8a266344bc271ea90e84972893d Mon Sep 17 00:00:00 2001 From: ptazithos Date: Tue, 9 May 2023 00:51:24 +0800 Subject: [PATCH] Rename extras to keyValues --- plugins/log/guest-js/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/log/guest-js/index.ts b/plugins/log/guest-js/index.ts index 72f64680..6bc36c04 100644 --- a/plugins/log/guest-js/index.ts +++ b/plugins/log/guest-js/index.ts @@ -4,7 +4,7 @@ import { listen, UnlistenFn } from "@tauri-apps/api/event"; export type LogOptions = { file?: string; line?: number; - extras?: Record; + keyValues?: Record; }; enum LogLevel { @@ -51,7 +51,7 @@ async function log( return name.length > 0 && location !== "[native code]"; }); - const { file, line, extras = {} } = options ?? {}; + const { file, line, keyValues = {} } = options ?? {}; let location = filtered?.[0]?.filter((v) => v.length > 0).join("@"); if (location === "Error") { @@ -64,7 +64,7 @@ async function log( location, file, line, - keyValues: extras, + keyValues, }); }