Comparing version 0.3.0 to 0.3.1
@@ -76,3 +76,3 @@ var base64 = require('base64-js'), | ||
type: "post", | ||
url: "/oath/token", | ||
url: "/oauth/token", | ||
raw_path: true, | ||
@@ -324,6 +324,6 @@ contentType: "application/x-www-form-urlencoded", | ||
var meta = {}, | ||
links = res.getHeader && res.getHeader("Link"), | ||
limit = res.getHeader && res.getHeader("X-Ratelimit-Limit"), | ||
remaining = res.getHeader && res.getHeader("X-Ratelimit-Remaining"), | ||
reset = res.getHeader && res.getHeader("X-Ratelimit-Reset"); | ||
links = res.headers && res.headers.link, | ||
limit = res.headers && res.headers["x-ratelimit-limit"], | ||
remaining = res.headers && res.headers["x-ratelimit-remaining"], | ||
reset = res.headers && res.headers["x-ratelimit-reset"]; | ||
@@ -330,0 +330,0 @@ if (links) { |
@@ -5,3 +5,3 @@ { | ||
"description": "Netlify API client", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"bugs": { | ||
@@ -8,0 +8,0 @@ "url": "https://github.com/netlify/netlify-js/issues" |
@@ -35,5 +35,3 @@ if (typeof(require) !== 'undefined') { | ||
response.statusCode = test.status; | ||
response.getHeader = function(header) { | ||
return test.headers && test.headers[header]; | ||
}; | ||
response.headers = test.headers; | ||
@@ -184,3 +182,3 @@ setTimeout(function() { | ||
headers: { | ||
"Link": '<https://api.netlify.com/api/v1/sites?page=3&per_page=4>; rel="next", <https://api.netlify.com/api/v1/sites?page=5&per_page=4>; rel="last"' | ||
link: '<https://api.netlify.com/api/v1/sites?page=3&per_page=4>; rel="next", <https://api.netlify.com/api/v1/sites?page=5&per_page=4>; rel="last"' | ||
}, | ||
@@ -187,0 +185,0 @@ response: [{id: 1}, {id: 2}, {id: 3}, {id: 4}] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
772446
4965