Merge remote-tracking branch 'origin/v1' into v2

This commit is contained in:
Lucas Nogueira
2023-05-24 10:42:03 -03:00
15 changed files with 111 additions and 89 deletions
+3 -2
View File
@@ -13,7 +13,8 @@ declare global {
export type LogOptions = {
file?: string;
line?: number;
} & Record<string, string | undefined>;
keyValues?: Record<string, string | undefined>;
};
enum LogLevel {
/**
@@ -59,7 +60,7 @@ async function log(
return name.length > 0 && location !== "[native code]";
});
const { file, line, ...keyValues } = options ?? {};
const { file, line, keyValues } = options ?? {};
let location = filtered?.[0]?.filter((v) => v.length > 0).join("@");
if (location === "Error") {