mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-21 12:05:08 +00:00
Use built-in url module instead of url-join
This commit is contained in:
parent
2fd2b702ae
commit
9e0940063e
@ -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 [
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user