Socket
Socket
Sign inDemoInstall

oauth

Package Overview
Dependencies
0
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.13 to 0.9.14

tests/oauth2tests.js

5

lib/oauth2.js

@@ -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

2

package.json
{ "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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc