Compare commits

..

2 Commits

Author SHA1 Message Date
Alex Corn
eacb85c711 3.33.2 2017-11-30 08:59:58 -05:00
Alex Corn
8eab34bf18 Fixed errors not being handled in getTradeURL 2017-11-30 08:59:49 -05:00
2 changed files with 6 additions and 1 deletions

View File

@@ -372,6 +372,11 @@ SteamCommunity.prototype.loggedIn = function(callback) {
SteamCommunity.prototype.getTradeURL = function(callback) {
this._myProfile("/tradeoffers/privacy", null, (err, response, body) => {
if (err) {
callback(err);
return;
}
var match = body.match(/https?:\/\/(www.)?steamcommunity.com\/tradeoffer\/new\/?\?partner=\d+(&|&)token=([a-zA-Z0-9-_]+)/);
if (match) {
var token = match[3];

View File

@@ -1,6 +1,6 @@
{
"name": "steamcommunity",
"version": "3.33.1",
"version": "3.33.2",
"description": "Provides an interface for logging into and interacting with the Steam Community website",
"keywords": [
"steam",