@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 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}/${request.url}`;
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}/${request.url}`;
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/openapi-client",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",