@sebspark/openapi-client 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -96,7 +96,7 @@ var TypedClient = (baseURL, globalOptions, logger) => {
|
|
|
96
96
|
if (globalOptions?.authorizationTokenGenerator) {
|
|
97
97
|
logger?.debug("Authorization token generator is set");
|
|
98
98
|
import_axios.default.interceptors.request.use(async (request) => {
|
|
99
|
-
const url = `${baseURL}
|
|
99
|
+
const url = `${request.baseURL}${request.url}`;
|
|
100
100
|
if (globalOptions?.authorizationTokenGenerator && url) {
|
|
101
101
|
const authorizationTokenHeaders = await globalOptions.authorizationTokenGenerator(url);
|
|
102
102
|
logger?.debug("Authorization token headers");
|
package/dist/index.mjs
CHANGED
|
@@ -61,7 +61,7 @@ var TypedClient = (baseURL, globalOptions, logger) => {
|
|
|
61
61
|
if (globalOptions?.authorizationTokenGenerator) {
|
|
62
62
|
logger?.debug("Authorization token generator is set");
|
|
63
63
|
axios.interceptors.request.use(async (request) => {
|
|
64
|
-
const url = `${baseURL}
|
|
64
|
+
const url = `${request.baseURL}${request.url}`;
|
|
65
65
|
if (globalOptions?.authorizationTokenGenerator && url) {
|
|
66
66
|
const authorizationTokenHeaders = await globalOptions.authorizationTokenGenerator(url);
|
|
67
67
|
logger?.debug("Authorization token headers");
|