From 3b5e35ef685c101af0c256d0f29e55593b4cbc97 Mon Sep 17 00:00:00 2001 From: Robert Soriano Date: Tue, 24 May 2022 09:46:15 -0700 Subject: [PATCH] feat: add composable for custom client headers --- package.json | 2 + playground/pages/index.vue | 17 ++++++-- playground/server/trpc/index.ts | 4 +- pnpm-lock.yaml | 69 +++++++++++++++++++++++++++++++++ src/module.ts | 4 ++ src/runtime/client.ts | 24 ++++++++++++ src/runtime/plugin.ts | 22 +++++++---- 7 files changed, 130 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index b507c5d..453c8f6 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,8 @@ "@nuxt/kit": "^3.0.0-rc.3", "@trpc/client": "^9.23.3", "@trpc/server": "^9.23.2", + "@vueuse/core": "^8.5.0", + "@vueuse/nuxt": "^8.5.0", "defu": "^6.0.0", "h3": "^0.7.8", "pathe": "^0.3.0", diff --git a/playground/pages/index.vue b/playground/pages/index.vue index 198b5fa..adeef95 100644 --- a/playground/pages/index.vue +++ b/playground/pages/index.vue @@ -1,12 +1,20 @@