From 453845fb146e60e741f44a2a4e1da7510d810645 Mon Sep 17 00:00:00 2001 From: Robin Wong Date: Sun, 18 Sep 2022 08:44:43 +0000 Subject: [PATCH] fix: eslint errors --- src/runtime/plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index eef1154..427b444 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -20,11 +20,11 @@ export default defineNuxtPlugin((nuxtApp) => { ...headers, } }, - fetch: (input, options) => + fetch: (input, options) => globalThis.$fetch.raw(input.toString(), options).then(response => ({ ...response, json: () => Promise.resolve(response._data), - })) + })), }) nuxtApp.provide('client', client)