Comparing version 0.9.13 to 0.9.14
@@ -122,3 +122,3 @@ var querystring= require('querystring'), | ||
callbackCalled=true; | ||
if( response.statusCode != 200 && (response.statusCode != 301) && (response.statusCode != 302) ) { | ||
if( !(response.statusCode >= 200 && response.statusCode <= 299) && (response.statusCode != 301) && (response.statusCode != 302) ) { | ||
callback({ statusCode: response.statusCode, data: result }); | ||
@@ -133,3 +133,4 @@ } else { | ||
var request = http_library.request(options, function (response) { | ||
var request = http_library.request(options); | ||
request.on('response', function (response) { | ||
response.on("data", function (chunk) { | ||
@@ -136,0 +137,0 @@ result+= chunk |
{ "name" : "oauth" | ||
, "description" : "Library for interacting with OAuth 1.0, 1.0A, 2 and Echo. Provides simplified client access and allows for construction of more complex apis and OAuth providers." | ||
, "version" : "0.9.13" | ||
, "version" : "0.9.14" | ||
, "directories" : { "lib" : "./lib" } | ||
@@ -5,0 +5,0 @@ , "main" : "index.js" |
@@ -11,2 +11,4 @@ node-oauth | ||
[koding]: https://koding.com/Teamwork?import=https://github.com/ciaranj/node-oauth/archive/master.zip&c=git1 | ||
[![Pair on Thinkful](https://tf-assets-staging.s3.amazonaws.com/badges/thinkful_repo_badge.svg)][Thinkful] | ||
[Thinkful]: http://start.thinkful.com/node/?utm_source=github&utm_medium=badge&utm_campaign=node-oauth | ||
@@ -80,3 +82,4 @@ Installation | ||
============== | ||
* 0.9.14 | ||
- OAuth2: Extend 'successful' token responses to include anything in the 2xx range. | ||
* 0.9.13 | ||
@@ -83,0 +86,0 @@ - OAuth2: Fixes the "createCredentials() is deprecated, use tls.createSecureContext instead" message. (thank you AJ ONeal) |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
125494
20
2600
188
7