hubkit
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -500,3 +500,5 @@ if (typeof require !== 'undefined') { | ||
if (options.media) req.accept('application/vnd.github.' + options.media); | ||
req.query({per_page: options.perPage}); // eslint-disable-line camelcase | ||
if (options.method === 'GET' || options.method === 'HEAD') { | ||
req.query({per_page: options.perPage}); // eslint-disable-line camelcase | ||
} | ||
if (options.responseType) { | ||
@@ -510,3 +512,3 @@ // eslint-disable-next-line no-invalid-this | ||
// https://bugzilla.mozilla.org/show_bug.cgi?id=428916 | ||
if (typeof module === 'undefined') { | ||
if (typeof module === 'undefined' && (options.method === 'GET' || options.method === 'HEAD')) { | ||
req.query({'_nocache': Math.round(Math.random() * 1000000)}); | ||
@@ -513,0 +515,0 @@ } |
{ | ||
"name": "hubkit", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "GitHub API library for JavaScript, promise-based, for both NodeJS and the browser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
169346
692