@mcma/client
Advanced tools
Comparing version 0.16.21 to 0.16.22
@@ -61,4 +61,5 @@ "use strict"; | ||
url = url || ""; | ||
config = config || {}; | ||
config = Object.assign({}, config); | ||
config.method = method; | ||
config.baseURL = this.config?.axiosConfig?.baseURL; | ||
config.url = url; | ||
@@ -90,3 +91,3 @@ config.data = body; | ||
else if (config.url.indexOf("http://") !== 0 && config.url.indexOf("https://") !== 0) { | ||
config.url = config.baseURL + config.url; | ||
config.url = config.baseURL.replace(/\/?\/$/, "") + "/" + config.url.replace(/^\/+/, ""); | ||
} | ||
@@ -93,0 +94,0 @@ else if (!config.url.startsWith(config.baseURL)) { |
{ | ||
"name": "@mcma/client", | ||
"version": "0.16.21", | ||
"version": "0.16.22", | ||
"description": "Node module with classes and functions used to access services in an MCMA environment", | ||
@@ -35,8 +35,8 @@ "engines": { | ||
"peerDependencies": { | ||
"@mcma/core": "0.16.21", | ||
"@mcma/secrets": "0.16.21" | ||
"@mcma/core": "0.16.22", | ||
"@mcma/secrets": "0.16.22" | ||
}, | ||
"devDependencies": { | ||
"@mcma/core": "0.16.21", | ||
"@mcma/secrets": "0.16.21", | ||
"@mcma/core": "0.16.22", | ||
"@mcma/secrets": "0.16.22", | ||
"@types/node": "^18.19.34", | ||
@@ -43,0 +43,0 @@ "jasmine": "^5.1.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
44833
1009