Skip to content

Commit

Permalink
update to latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
uzquiano committed Jan 25, 2018
1 parent f0a42cd commit a75d0d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions lib/gitana.js
@@ -1,5 +1,5 @@
/*
Gitana JavaScript Driver - Version 1.0.251
Gitana JavaScript Driver - Version 1.0.253

Copyright 2017 Gitana Software, Inc.

Expand Down Expand Up @@ -2335,7 +2335,7 @@ if (typeof JSON !== 'object') {
Gitana.requestCount = 0;

// version of the driver
Gitana.VERSION = "1.0.251";
Gitana.VERSION = "1.0.253";

// allow for optional global assignment
// TODO: until we clean up the "window" variable reliance, we have to always set onto window again
Expand Down Expand Up @@ -4813,6 +4813,17 @@ Gitana.OAuth2Http.TOKEN_METHOD = "POST";
err.info = httpError.info;
}

// any text? if so, capture it
if (httpError.response && httpError.response.text)
{
err.responseText = httpError.response.text;

// and also make an attempt to convert to JSON data
try {
err.responseData = JSON.parse(err.responseText);
} catch (e) { }
}

this.error(err);

return false;
Expand Down
2 changes: 1 addition & 1 deletion lib/gitana.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"author": "Gitana Software, Inc. <info@cloudcms.com> (http://www.cloudcms.com)",
"name": "gitana",
"description": "Cloud CMS Gitana Driver for Node JS",
"version": "1.0.251",
"version": "1.0.253",
"repository": {
"type": "git",
"url": "git://github.com/gitana/gitana-node-js.git"
Expand Down

0 comments on commit a75d0d3

Please sign in to comment.