Permalink
Browse files

fix(axios): Node 6.x support

Switch to whatwg-url for node 6.x support.

Thanks for @Atinux :)
  • Loading branch information...
pi0 committed Jun 9, 2017
1 parent 82b668b commit 54deac08f9b6e0a0241ea01fb8df76924041089c
Showing with 3 additions and 2 deletions.
  1. +1 −1 modules/axios/index.js
  2. +2 −1 modules/axios/package.json
@@ -1,6 +1,6 @@
const chalk = require('chalk')
const path = require('path')
const { URL } = require('url')
const { URL } = require('whatwg-url')

const port = process.env.PORT || process.env.npm_package_config_nuxt_port || 3000
const host = process.env.HOST || process.env.npm_package_config_nuxt_host || 'localhost'
@@ -9,6 +9,7 @@
"access": "public"
},
"dependencies": {
"axios": "^0.16.1"
"axios": "^0.16.1",
"whatwg-url": "^5.0.0"
}
}

0 comments on commit 54deac0

Please sign in to comment.