From 490884cb885d5cda4ebeef5e08060478bc76acb6 Mon Sep 17 00:00:00 2001 From: diegodelrieue Date: Tue, 23 Apr 2024 14:31:07 +0200 Subject: [PATCH] fix: revert --- src/adapter/chrome.ts | 18 ++++++++---------- src/adapter/window.ts | 18 ++++++++---------- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/src/adapter/chrome.ts b/src/adapter/chrome.ts index 600f636..ebfe409 100644 --- a/src/adapter/chrome.ts +++ b/src/adapter/chrome.ts @@ -67,16 +67,14 @@ export const createChromeHandler = ( sendResponse({ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - error: transformer.output.serialize( - getErrorShape({ - config: router._def._config, - error, - type: method, - path: params.path, - input: params.input, - ctx, - }), - ), + error: getErrorShape({ + config: router._def._config, + error, + type: method, + path: params.path, + input: params.input, + ctx, + }), }); }; diff --git a/src/adapter/window.ts b/src/adapter/window.ts index b8a82db..7d7c2c3 100644 --- a/src/adapter/window.ts +++ b/src/adapter/window.ts @@ -73,16 +73,14 @@ export const createWindowHandler = ( sendResponse({ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - error: transformer.output.serialize( - getErrorShape({ - config: router._def._config, - error, - type: method, - path: params.path, - input: params.input, - ctx, - }), - ), + error: getErrorShape({ + config: router._def._config, + error, + type: method, + path: params.path, + input: params.input, + ctx, + }), }); };