axios-oauth-client
Advanced tools
Comparing version 1.2.3 to 1.3.0
{ | ||
"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" | ||
} | ||
} |
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 @@ } |
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
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
44401
21
569
7
1