Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chai-oauth2orize-grant

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-oauth2orize-grant - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

32

lib/test.js

@@ -169,3 +169,35 @@ /**

Test.prototype.error = function(err) {
var self = this
, txn = { protocol: 'oauth2' }
, before = this._txn;
function ready() {
var res = new Response(function() {
if (!self._end) { throw new Error('res#end should not be called'); }
self._end.call(this, res);
});
if (self._res) { self._res(res); }
function next(err) {
if (!self._next) { throw new Error('next should not be called'); }
self._next.call(this, err);
}
var fn = self._mod.error;
fn(err, txn, res, next);
}
if (before && before.length == 2) {
before(txn, ready);
} else if (before) {
before(txn);
ready();
} else {
ready();
}
};
/**

@@ -172,0 +204,0 @@ * Expose `Test`.

2

package.json
{
"name": "chai-oauth2orize-grant",
"version": "0.2.0",
"version": "0.2.1",
"description": "Helpers for testing OAuth2orize grants with the Chai assertion library.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc