client-oauth2
Advanced tools
Comparing version 0.3.2 to 1.0.0
@@ -356,9 +356,7 @@ /* global define */ | ||
ClientOAuth2.prototype._requestOptions = function (options) { | ||
return assign({ | ||
agent: this.options.agent, | ||
rejectUnauthorized: this.options.rejectUnauthorized | ||
}, options, { | ||
return assign(options, { | ||
body: assign({}, this.options.body, options.body), | ||
query: assign({}, this.options.query, options.query), | ||
headers: assign({}, this.options.headers, options.headers) | ||
headers: assign({}, this.options.headers, options.headers), | ||
options: assign({}, this.options.options, options.options) | ||
}) | ||
@@ -365,0 +363,0 @@ } |
{ | ||
"name": "client-oauth2", | ||
"version": "0.3.2", | ||
"version": "1.0.0", | ||
"description": "Straight-forward library for executing OAuth 2.0 flows and making API requests.", | ||
@@ -12,3 +12,3 @@ "main": "client-oauth2.js", | ||
"lint": "standard", | ||
"test-browser": "karma start", | ||
"test-browser": "karma start --single-run", | ||
"test-node": "mocha -R spec --bail --require test/support/globals.js", | ||
@@ -27,3 +27,3 @@ "test": "npm run lint && npm run test-node && npm run test-browser" | ||
"author": "MuleSoft, Inc.", | ||
"license": "Apache 2.0", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
@@ -34,19 +34,20 @@ "url": "https://github.com/mulesoft/js-client-oauth2/issues" | ||
"devDependencies": { | ||
"chai": "^2.0.0", | ||
"chai": "^3.2.0", | ||
"es6-promise": "^2.0.0", | ||
"is-travis": "^1.0.0", | ||
"karma": "^0.12.23", | ||
"karma-chrome-launcher": "^0.1.4", | ||
"karma-cli": "0.0.4", | ||
"karma-coverage": "^0.3.1", | ||
"karma": "^0.13.3", | ||
"karma-chrome-launcher": "^0.2.0", | ||
"karma-cli": "^0.1.0", | ||
"karma-coverage": "^0.4.2", | ||
"karma-firefox-launcher": "^0.1.3", | ||
"karma-mocha": "^0.1.9", | ||
"karma-phantomjs-launcher": "^0.1.4", | ||
"karma-sinon-chai": "^0.3.0", | ||
"karma-mocha": "^0.2.0", | ||
"karma-phantomjs-launcher": "^0.2.0", | ||
"karma-sinon-chai": "^1.0.0", | ||
"mocha": "^2.0.1", | ||
"phantomjs": "^1.9.17", | ||
"pre-commit": "^1.0.4", | ||
"standard": "^3.7.2" | ||
"standard": "^4.5.4" | ||
}, | ||
"dependencies": { | ||
"popsicle": "^0.5.10" | ||
"popsicle": "^1.0.0" | ||
}, | ||
@@ -53,0 +54,0 @@ "standard": { |
@@ -45,8 +45,4 @@ # Client OAuth 2.0 | ||
* **headers** An object to merge with the headers of every request | ||
* **options** Transport options from [popsicle](https://github.com/blakeembrey/popsicle#handling-requests) | ||
**Request options (node only)** | ||
* **rejectUnauthorized** Reject invalid SSL certificates (default: `true`) | ||
* **agent** Custom HTTP pooling agent (default: `infinity-agent`) | ||
To re-create an access token instance and make requests on behalf on the user, you can create an access token instance by using the `createToken` method on a client instance. | ||
@@ -53,0 +49,0 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
30850
15
700
179
+ Addedarrify@1.0.1(transitive)
+ Addedinfinity-agent@2.0.3(transitive)
+ Addedmethods@1.1.2(transitive)
+ Addednative-or-bluebird@1.2.0(transitive)
+ Addedpopsicle@1.4.0(transitive)
+ Addedpsl@1.9.0(transitive)
+ Addedtough-cookie@2.5.0(transitive)
- Removedinfinity-agent@1.0.2(transitive)
- Removedisarray@0.0.1(transitive)
- Removedpopsicle@0.5.13(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedstatuses@1.5.0(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedthrough2@0.6.5(transitive)
- Removedtough-cookie@0.12.1(transitive)
Updatedpopsicle@^1.0.0