Skip to content

Commit

Permalink
fix: set base url
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed Oct 14, 2021
1 parent d3c2b75 commit fa77964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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": {
Expand Down

0 comments on commit fa77964

Please sign in to comment.