From 293001c2f3d680a30b80e7a02917bab64882e6e2 Mon Sep 17 00:00:00 2001 From: Nikolai Vavilov Date: Mon, 27 Oct 2014 17:20:57 +0100 Subject: [PATCH] Update for cookie API changes in request --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ac5a92e..c642ceb 100644 --- a/index.js +++ b/index.js @@ -246,7 +246,7 @@ SteamTrade.prototype._send = function(action, data, callback) { }; SteamTrade.prototype.setCookie = function(cookie) { - this._j.setCookieSync(request.cookie(cookie), 'http://steamcommunity.com'); + this._j.setCookie(request.cookie(cookie), 'http://steamcommunity.com'); }; SteamTrade.prototype.open = function(steamID, callback) { diff --git a/package.json b/package.json index 00ba1e9..b1a99f6 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,6 @@ "name": "steam-trade", "version": "0.2.3", "dependencies": { - "request": ">=2.43.0" + "request": ">=2.45.0" } }