digest-fetch
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -90,3 +90,6 @@ /// !----------------------------------------------------------------------------------------------------------- | ||
if (this.logger) this.logger.info(`requesting with auth carried`) | ||
const _url = url.replace('//', '') | ||
const isRequest = typeof(url) === 'object' && typeof(url.url) === 'string' | ||
const urlStr = isRequest ? url.url : url | ||
const _url = urlStr.replace('//', '') | ||
const uri = _url.indexOf('/') == -1 ? '/' : _url.slice(_url.indexOf('/')) | ||
@@ -93,0 +96,0 @@ const method = options.method ? options.method.toUpperCase() : 'GET' |
{ | ||
"name": "digest-fetch", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "digest auth request plugin for fetch/node-fetch also support http basic auth authentication", | ||
@@ -41,3 +41,3 @@ "main": "digest-fetch-src.js", | ||
"mocha": "^8.1.1", | ||
"node-fetch": "^2.3.0", | ||
"node-fetch": "^2.6.1", | ||
"passport": "^0.4.0", | ||
@@ -44,0 +44,0 @@ "passport-http": "^0.3.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
561573
25
9221