oauth-1.0a
Advanced tools
Comparing version 2.2.3 to 2.2.4
{ | ||
"name": "oauth-1.0a", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "OAuth 1.0a Request Authorization for Node and Browser.", | ||
"scripts": { | ||
"test": "make test" | ||
"test": "mocha" | ||
}, | ||
"main": "oauth-1.0a.js", | ||
"types": "oauth-1.0a.d.ts", | ||
"repository": "https://github.com/ddo/oauth-1.0a.git", | ||
@@ -22,8 +23,9 @@ "keywords": [ | ||
"devDependencies": { | ||
"mocha": "~1.17.0", | ||
"chai": "~1.8.1", | ||
"request": "~2.33.0", | ||
"istanbul": "^0.2.7", | ||
"coveralls": "^2.10.0" | ||
"chai": "^4.1.2", | ||
"coveralls": "^3.0.0", | ||
"dotenv": "^4.0.0", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^4.0.1", | ||
"request": "~2.33.0" | ||
} | ||
} |
@@ -320,18 +320,6 @@ # OAuth 1.0a Request Authorization [![semaphore][semaphore-img]][semaphore-url] | ||
## Contributors | ||
## [Contributors](https://github.com/ddo/oauth-1.0a/graphs/contributors) | ||
* [ddo](http://github.com/ddo) | ||
* [paulrutter](http://github.com/paulrutter) | ||
* [zeusdude](http://github.com/zeusdude) | ||
* [asharpe-squiz](http://github.com/asharpe-squiz) | ||
* [bryant1410](http://github.com/bryant1410) | ||
* [kaycebasques](http://github.com/kaycebasques) | ||
* [gitter-badger](http://github.com/gitter-badger) | ||
* [MartinMoizard](http://github.com/MartinMoizard) | ||
* [bitdeli-chef](http://github.com/bitdeli-chef) | ||
* [francescosalvi](http://github.com/francescosalvi) | ||
* [abutterf](http://github.com/abutterf) | ||
## License | ||
MIT |
@@ -7,13 +7,25 @@ var expect = require('chai').expect; | ||
describe("Bitbucket Personal Consumer", function() { | ||
this.timeout(10000); | ||
var oauth | ||
var oauth = new OAuth({ | ||
consumer: { | ||
key: process.env.BITBUCKET_CONSUMER_PUBLIC, | ||
secret: process.env.BITBUCKET_CONSUMER_SECRET | ||
}, | ||
signature_method: 'HMAC-SHA1', | ||
hash_function: function(base_string, key) { | ||
return crypto.createHmac('sha1', key).update(base_string).digest('base64'); | ||
beforeEach(function () { | ||
if ( | ||
!process.env.BITBUCKET_CONSUMER_PUBLIC || | ||
!process.env.BITBUCKET_CONSUMER_SECRET | ||
) { | ||
this.skip('Bitbucket secret not set.'); | ||
return; | ||
} | ||
this.timeout(10000); | ||
oauth = new OAuth({ | ||
consumer: { | ||
key: process.env.BITBUCKET_CONSUMER_PUBLIC, | ||
secret: process.env.BITBUCKET_CONSUMER_SECRET | ||
}, | ||
signature_method: 'HMAC-SHA1', | ||
hash_function: function(base_string, key) { | ||
return crypto.createHmac('sha1', key).update(base_string).digest('base64'); | ||
} | ||
}); | ||
}); | ||
@@ -20,0 +32,0 @@ |
@@ -7,13 +7,25 @@ var expect = require('chai').expect; | ||
describe("Flickr Personal Consumer", function() { | ||
this.timeout(10000); | ||
var oauth; | ||
var oauth = new OAuth({ | ||
consumer: { | ||
key: process.env.FLICKR_CONSUMER_key, | ||
secret: process.env.FLICKR_CONSUMER_SECRET | ||
}, | ||
signature_method: 'HMAC-SHA1', | ||
hash_function: function(base_string, key) { | ||
return crypto.createHmac('sha1', key).update(base_string).digest('base64'); | ||
beforeEach(function () { | ||
if ( | ||
!process.env.FLICKR_CONSUMER_key || | ||
!process.env.FLICKR_CONSUMER_SECRET | ||
) { | ||
this.skip('Flickr secret not set.'); | ||
return; | ||
} | ||
this.timeout(10000); | ||
oauth = new OAuth({ | ||
consumer: { | ||
key: process.env.FLICKR_CONSUMER_key, | ||
secret: process.env.FLICKR_CONSUMER_SECRET | ||
}, | ||
signature_method: 'HMAC-SHA1', | ||
hash_function: function(base_string, key) { | ||
return crypto.createHmac('sha1', key).update(base_string).digest('base64'); | ||
} | ||
}); | ||
}); | ||
@@ -20,0 +32,0 @@ |
@@ -10,13 +10,25 @@ var expect = require('chai').expect; | ||
describe("Linkedin Personal Consumer", function() { | ||
this.timeout(10000); | ||
var oauth; | ||
var oauth = new OAuth({ | ||
consumer: { | ||
key: process.env.LINKEDIN_CONSUMER_PUBLIC, | ||
secret: process.env.LINKEDIN_CONSUMER_SECRET | ||
}, | ||
signature_method: 'HMAC-SHA1', | ||
hash_function: function(base_string, key) { | ||
return crypto.createHmac('sha1', key).update(base_string).digest('base64'); | ||
beforeEach(function () { | ||
if ( | ||
!process.env.LINKEDIN_CONSUMER_PUBLIC || | ||
!process.env.LINKEDIN_CONSUMER_SECRET | ||
) { | ||
this.skip('LinkedIn secret not set.'); | ||
return; | ||
} | ||
this.timeout(10000); | ||
oauth = new OAuth({ | ||
consumer: { | ||
key: process.env.LINKEDIN_CONSUMER_PUBLIC, | ||
secret: process.env.LINKEDIN_CONSUMER_SECRET | ||
}, | ||
signature_method: 'HMAC-SHA1', | ||
hash_function: function(base_string, key) { | ||
return crypto.createHmac('sha1', key).update(base_string).digest('base64'); | ||
} | ||
}); | ||
}); | ||
@@ -23,0 +35,0 @@ |
@@ -7,13 +7,25 @@ var expect = require('chai').expect; | ||
describe.skip("Openbank Personal Consumer", function() { | ||
this.timeout(10000); | ||
var oauth; | ||
var oauth = new OAuth({ | ||
consumer: { | ||
key: process.env.OPENBANK_CONSUMER_PUBLIC, | ||
secret: process.env.OPENBANK_CONSUMER_SECRET | ||
}, | ||
signature_method: 'HMAC-SHA256', | ||
hash_function: function(base_string, key) { | ||
return crypto.createHmac('sha256', key).update(base_string).digest('base64'); | ||
beforeEach(function () { | ||
if ( | ||
!process.env.OPENBANK_CONSUMER_PUBLIC || | ||
!process.env.OPENBANK_CONSUMER_SECRET | ||
) { | ||
this.skip('Openbank secret not set.'); | ||
return; | ||
} | ||
this.timeout(10000); | ||
oauth = new OAuth({ | ||
consumer: { | ||
key: process.env.OPENBANK_CONSUMER_PUBLIC, | ||
secret: process.env.OPENBANK_CONSUMER_SECRET | ||
}, | ||
signature_method: 'HMAC-SHA256', | ||
hash_function: function(base_string, key) { | ||
return crypto.createHmac('sha256', key).update(base_string).digest('base64'); | ||
} | ||
}); | ||
}); | ||
@@ -20,0 +32,0 @@ |
@@ -7,21 +7,35 @@ var expect = require('chai').expect; | ||
describe("Twitter Personal Consumer", function() { | ||
var oauth = new OAuth({ | ||
consumer: { | ||
key: process.env.TWITTER_CONSUMER_PUBLIC, | ||
secret: process.env.TWITTER_CONSUMER_SECRET | ||
}, | ||
signature_method: 'HMAC-SHA1', | ||
hash_function: function(base_string, key) { | ||
return crypto.createHmac('sha1', key).update(base_string).digest('base64'); | ||
var oauth, token; | ||
beforeEach(function () { | ||
if ( | ||
!process.env.TWITTER_CONSUMER_PUBLIC || | ||
!process.env.TWITTER_CONSUMER_SECRET || | ||
!process.env.TWITTER_TOKEN_PUBLIC || | ||
!process.env.TWITTER_TOKEN_SECRET | ||
) { | ||
this.skip('Twitter secret or token not set.'); | ||
return; | ||
} | ||
this.timeout(10000); | ||
oauth = new OAuth({ | ||
consumer: { | ||
key: process.env.TWITTER_CONSUMER_PUBLIC, | ||
secret: process.env.TWITTER_CONSUMER_SECRET | ||
}, | ||
signature_method: 'HMAC-SHA1', | ||
hash_function: function(base_string, key) { | ||
return crypto.createHmac('sha1', key).update(base_string).digest('base64'); | ||
} | ||
}); | ||
token = { | ||
key: process.env.TWITTER_TOKEN_PUBLIC, | ||
secret: process.env.TWITTER_TOKEN_SECRET | ||
}; | ||
}); | ||
var token = { | ||
key: process.env.TWITTER_TOKEN_PUBLIC, | ||
secret: process.env.TWITTER_TOKEN_SECRET | ||
}; | ||
describe("#Get user timeline", function() { | ||
this.timeout(10000); | ||
var request = { | ||
@@ -47,4 +61,2 @@ url: 'https://api.twitter.com/1.1/statuses/user_timeline.json', | ||
describe("#Get user timeline limit 5", function() { | ||
this.timeout(10000); | ||
var request = { | ||
@@ -74,4 +86,2 @@ url: 'https://api.twitter.com/1.1/statuses/user_timeline.json', | ||
describe("#Get user timeline limit 5 by url", function() { | ||
this.timeout(10000); | ||
var request = { | ||
@@ -98,4 +108,2 @@ url: 'https://api.twitter.com/1.1/statuses/user_timeline.json?count=5', | ||
describe("#Get user timeline by header", function() { | ||
this.timeout(10000); | ||
var request = { | ||
@@ -122,4 +130,2 @@ url: 'https://api.twitter.com/1.1/statuses/user_timeline.json', | ||
describe.skip("#Tweet", function() { | ||
this.timeout(10000); | ||
var text = 'Testing oauth-1.0a'; | ||
@@ -154,4 +160,2 @@ | ||
describe.skip("#Tweet by header", function() { | ||
this.timeout(10000); | ||
var text = 'Testing oauth-1.0a'; | ||
@@ -158,0 +162,0 @@ |
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
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
69360
24
1547
0
6
324
29