@navservice/core 1.66.0 → 1.68.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,11 @@ 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
+ console.log(src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL, 'config_env_core.PUBLIC_BASE_URL_BACKEND_PRINCIPAL');
167
+ const baseURL = new URL(src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL).toString().replace(/\/?$/, "/");
168
+ console.log(baseURL, 'baseURL');
166
169
  return axios.create({
167
- baseURL: src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL
170
+ baseURL
168
171
  });
169
172
  }
170
173
  static async post({ url, data, setToken = true }) {
@@ -244,8 +244,11 @@ 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
+ console.log(src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL, 'config_env_core.PUBLIC_BASE_URL_BACKEND_PRINCIPAL');
248
+ const baseURL = new URL(src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL).toString().replace(/\/?$/, "/");
249
+ console.log(baseURL, 'baseURL');
247
250
  return external_axios_default().create({
248
- baseURL: src_config_env.PUBLIC_BASE_URL_BACKEND_PRINCIPAL
251
+ baseURL
249
252
  });
250
253
  }
251
254
  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.68.0",
4
4
  "description": "Service core de todos os micro serviços",
5
5
  "type": "module",
6
6
  "exports": {