Socket
Socket
Sign inDemoInstall

client-oauth2

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

client-oauth2 - npm Package Compare versions

Comparing version 0.3.2 to 1.0.0

8

client-oauth2.js

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc