@navservice/core 1.66.0 → 1.67.0

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/build/es/index.js CHANGED
@@ -163,8 +163,9 @@ const utils_session_storage = _session_storage;
163
163
  const _api_api = class _api {
164
164
  static servidor_pricipal = class {
165
165
  static get #axios() {
166
+ const baseURL = new URL(src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL).toString().replace(/\/?$/, "/");
166
167
  return axios.create({
167
- baseURL: src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL
168
+ baseURL
168
169
  });
169
170
  }
170
171
  static async post({ url, data, setToken = true }) {
@@ -244,8 +244,9 @@ const _session_storage = class _session_storage {
244
244
  const _api_api = class _api {
245
245
  static servidor_pricipal = class servidor_pricipal {
246
246
  static get #axios() {
247
+ const baseURL = new URL(src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL).toString().replace(/\/?$/, "/");
247
248
  return external_axios_default().create({
248
- baseURL: src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL
249
+ baseURL
249
250
  });
250
251
  }
251
252
  static async post({ url, data, setToken = true }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navservice/core",
3
- "version": "1.66.0",
3
+ "version": "1.67.0",
4
4
  "description": "Service core de todos os micro serviços",
5
5
  "type": "module",
6
6
  "exports": {