edit-google-spreadsheet
Advanced tools
Comparing version 0.2.14 to 0.2.15
@@ -106,2 +106,8 @@ "use strict"; | ||
if (response.statusCode == 302) { | ||
_this.log('Redirected, following new URL...'.grey); | ||
opts.url = response.headers.location; | ||
return _this.request(opts, callback); | ||
} | ||
//body is error | ||
@@ -108,0 +114,0 @@ if (response.statusCode !== 200) |
@@ -15,6 +15,6 @@ var request = require("request"); | ||
return { | ||
updated: new Date(result.entry.updated.$t), | ||
title: result.entry.title.$t, | ||
rowCount: parseInt(result.entry.gs$rowCount.$t, 10), | ||
colCount: parseInt(result.entry.gs$colCount.$t, 10) | ||
updated: new Date(result.entry.updated), | ||
title: result.entry.title, | ||
rowCount: result.entry['gs:rowCount'], | ||
colCount: result.entry['gs:colCount'] | ||
}; | ||
@@ -26,3 +26,3 @@ }; | ||
this.spreadsheet.request({ | ||
url: this.url()+'?alt=json' | ||
url: this.url() | ||
}, function(err, result) { | ||
@@ -58,3 +58,3 @@ if(err) return callback(err); | ||
method: 'PUT', | ||
url: this.url()+'?alt=json', | ||
url: this.url(), | ||
body: entry | ||
@@ -61,0 +61,0 @@ }, function(err, result) { |
{ | ||
"name": "edit-google-spreadsheet", | ||
"version": "0.2.14", | ||
"version": "0.2.15", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "async": "^0.9.0", |
27304
583