Socket
Socket
Sign inDemoInstall

axios-oauth-client

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-oauth-client - npm Package Compare versions

Comparing version 1.2.3 to 1.3.0

.nyc_output/381cb3a4-1aff-4e7a-8e54-8e59e11606f4.json

48

package.json
{
"name": "axios-oauth-client",
"version": "1.2.3",
"version": "1.3.0",
"description": "OAuth 2.0 client utils for axios",
"main": "src/",
"scripts": {
"test": "mocha tests/ --timeout 10000"
},
"main": "dist/",
"author": "Jonathon Hill <jhill9693@gmail.com>",

@@ -31,2 +28,36 @@ "license": "MIT",

},
"scripts": {
"publish": "git push origin --tags && npm run changelog && git push origin",
"release:pre": "npm run dist && npm version prerelease && npm publish --tag pre",
"release:patch": "npm run dist && npm version patch && npm publish",
"release:minor": "npm run dist && npm version minor && npm publish",
"release:major": "npm run dist && npm version major && npm publish",
"changelog": "github_changelog_generator && git add CHANGELOG.md && git commit -am \"Updating changelog\"",
"dist": "npm run build && git add dist/* && git commit -am \"Updating build\"",
"build": "babel src -d dist",
"pretest": "semistandard src/*.js src/**/*.js tests/*.js tests/**/*.js --fix",
"test": "nyc mocha tests/ --timeout 10000"
},
"babel": {
"presets": [
"@babel/preset-env"
]
},
"semistandard": {
"env": [
"mocha"
]
},
"nyc": {
"cache": true,
"cacheDir": ".nyc_cache",
"include": [
"lib/**/*.js"
],
"reporter": [
"lcov",
"text-summary"
]
},
"browserslist": "> 0.25%, not dead",
"dependencies": {

@@ -36,5 +67,10 @@ "qs": "^6.8.0"

"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"axios-token-interceptor": "^0.2.0",
"mocha": "^7.1.0"
"mocha": "^7.1.1",
"nyc": "^15.0.0",
"semistandard": "^14.2.0"
}
}

2

src/client.js
const qs = require('qs');
module.exports = function(axios, { url, ...credentials }) {
module.exports = function (axios, { url, ...credentials }) {
const config = {

@@ -5,0 +5,0 @@ url,

@@ -1,6 +0,6 @@

function getMaxAge(res) {
function getMaxAge (res) {
return res.expires_in;
}
function headerFormatter(res) {
function headerFormatter (res) {
return 'Bearer ' + res.access_token;

@@ -7,0 +7,0 @@ }

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