diff --git a/lib/util/http.js b/lib/util/http.js index 867b817bf..c6fc684de 100644 --- a/lib/util/http.js +++ b/lib/util/http.js @@ -1,5 +1,6 @@ // Dependencies -let request = require('request-promise') +const util = require('util') +let request = util.promisify(require('postman-request')) // Includes const options = require('../options.js') diff --git a/lib/util/jar.js b/lib/util/jar.js index 1690c932b..462e0c590 100644 --- a/lib/util/jar.js +++ b/lib/util/jar.js @@ -1,5 +1,6 @@ // Dependencies -const request = require('request-promise') +const util = require('util') +const request = util.promisify(require('postman-request')) // Includes const settings = require('../../settings.json') diff --git a/package.json b/package.json index fed25d1a4..3bb061e3e 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,7 @@ "cheerio": "^1.0.0-rc.10", "entities": "^4.3.0", "figlet": "^1.4.0", - "request": "^2.81.0", - "request-promise": "^4.2.4", + "postman-request": "^2.88.1-postman.34", "signalr-client": "0.0.20" }, "license": "MIT",