diff --git a/packages/core/src/core/Un.ts b/packages/core/src/core/Un.ts index 08f9d9c..78ca979 100644 --- a/packages/core/src/core/Un.ts +++ b/packages/core/src/core/Un.ts @@ -141,12 +141,10 @@ export class Un { return await this._request(configOrUrl, config); } catch (error) { if (error instanceof Error) { - // biome-ignore lint/suspicious/noImplicitAnyLet: - let dummy; + let dummy: any = {}; Error.captureStackTrace - ? // biome-ignore lint/suspicious/noAssignInExpressions: - Error.captureStackTrace((dummy = {})) - : // biome-ignore lint/suspicious/noAssignInExpressions: + ? Error.captureStackTrace(dummy) + : // biome-ignore lint/suspicious/noAssignInExpressions: follow axios implementation (dummy = new Error()); // slice off the Error: ... line const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";