Use built-in url module instead of url-join

This commit is contained in:
Juan Cruz Viotti 2014-11-18 09:19:20 -04:00
parent 2fd2b702ae
commit 9e0940063e
2 changed files with 2 additions and 3 deletions

View File

@ -1,12 +1,12 @@
request = require('request')
urljoin = require('url-join')
urlResolve = require('url').resolve
async = require('async')
config = require('../config')
token = require('../token/token')
exports.request = (method = 'GET', url, json, callback) ->
method = method.toUpperCase()
url = urljoin(config.remoteUrl, url)
url = urlResolve(config.remoteUrl, url)
async.waterfall [

View File

@ -26,7 +26,6 @@
},
"dependencies": {
"request": "~2.47.0",
"url-join": "0.0.1",
"lodash": "~2.4.1",
"async": "~0.9.0",
"rimraf": "~2.2.8",