From fa7796401cc5b8e7aa6caff67988492fd8e63518 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 14 Oct 2021 10:08:50 +0200 Subject: [PATCH] fix: set base url --- lib/plugin.js | 3 --- package.json | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/plugin.js b/lib/plugin.js index c3b7953..5037666 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -4,9 +4,6 @@ import defu from 'defu' // Axios.prototype cannot be modified const axiosExtra = { - setBaseURL (baseURL) { - this.defaults.baseURL = baseURL - }, setHeader (name, value, scopes = 'common') { for (const scope of Array.isArray(scopes) ? scopes : [ scopes ]) { if (!value) { diff --git a/package.json b/package.json index 39e97dd..ba9bd58 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hokify/nuxt-haxios-module", - "version": "1.1.5", + "version": "1.1.6", "description": "Secure and easy Haxios integration with Nuxt.js", "license": "MIT", "contributors": [ @@ -27,7 +27,7 @@ "@nuxtjs/proxy": "^2.1.0", "consola": "^2.15.3", "defu": "^5.0.0", - "haxios": "^1.0.30", + "haxios": "^1.0.34", "null-loader": "^4.0.1" }, "devDependencies": {