From 3afcf108d94fc7315d375bab23cf72f1007e733b Mon Sep 17 00:00:00 2001 From: Baroshem Date: Wed, 25 Oct 2023 11:09:45 +0200 Subject: [PATCH] chore: 0.5.0 --- package.json | 4 ++-- playground/nuxt.config.ts | 2 +- src/runtime/composables/useMedusaClient.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4f0be18..978959d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-medusa", - "version": "0.4.0", + "version": "0.5.0", "description": "Medusa module for Nuxt", "license": "MIT", "type": "module", @@ -57,4 +57,4 @@ "installDependencies": false, "startCommand": "yarn stackblitz" } -} \ No newline at end of file +} diff --git a/playground/nuxt.config.ts b/playground/nuxt.config.ts index 9a70a4e..7742b9e 100644 --- a/playground/nuxt.config.ts +++ b/playground/nuxt.config.ts @@ -13,7 +13,7 @@ export default defineNuxtConfig({ }, modules: ['../src/module'], medusa: { - // baseUrl: 'http://localhost:9000', + baseUrl: 'https://production-like-starter.herokuapp.com', // apiKey: 'test', // publishableApiKey: 'test', // maxRetries: 3 diff --git a/src/runtime/composables/useMedusaClient.ts b/src/runtime/composables/useMedusaClient.ts index 655ff32..37c7cd8 100644 --- a/src/runtime/composables/useMedusaClient.ts +++ b/src/runtime/composables/useMedusaClient.ts @@ -7,12 +7,12 @@ export const useMedusaClient = (): Medusa => { const { medusa: config } = useRuntimeConfig().public // If medusa was registered in global plugin, just return reference to it. - if (config.global) return nuxtApp.$medusa + if (config.global) return nuxtApp.$medusa as Medusa // Create client if it is not there. if (!nuxtApp._medusaClient) { nuxtApp._medusaClient = new Medusa(config) } - return nuxtApp._medusaClient + return nuxtApp._medusaClient as Medusa }