ngx-sp-infra 6.23.2 → 6.23.3

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.
@@ -4869,7 +4869,7 @@ class AuditoriaButtonComponent {
4869
4869
  initializeAuditoriaRoute() {
4870
4870
  // const match = this._router.url.match(/^[^/]+\/[^/]+\/([^/]+)\/[^/]+/);
4871
4871
  // const currentProduct = match ? match[1] : null;
4872
- const currentHostName = window.location.hostname;
4872
+ const currentHostName = window.location.host;
4873
4873
  const localHostnames = [
4874
4874
  "localhost",
4875
4875
  "127.0.0.1"
@@ -6524,11 +6524,11 @@ class HostOutsystemsServerService {
6524
6524
  this._BASE_URL = "";
6525
6525
  // `https://${window.location.host}/SisproErpCloud/Service_Private/Infra/SpInfra2ErpWS/api/Menu`;
6526
6526
  //private readonly _BASE_URL: string = `https://siscandesinfra.sispro.com.br/SisproErpCloud/Service_Private/Infra/SpInfra2ErpWS/api/Menu`;
6527
- this.GENERICS_BASE_URL = window.location.hostname.includes('localhost') ? `http://localhost:44384/api/Generics` : `https://${window.location.hostname}/SisproErpCloud/Service_Private/Infra/SpInfra2ErpWS/api/Generics`;
6528
- this.MENU_BASE_URL = window.location.hostname.includes('localhost') ? `http://localhost:44384/api/Menu` : `https://${window.location.hostname}/SisproErpCloud/Service_Private/Infra/SpInfra2ErpWS/api/Menu`;
6527
+ this.GENERICS_BASE_URL = window.location.host.includes('localhost') ? `http://localhost:44384/api/Generics` : `https://${window.location.host}/SisproErpCloud/Service_Private/Infra/SpInfra2ErpWS/api/Generics`;
6528
+ this.MENU_BASE_URL = window.location.host.includes('localhost') ? `http://localhost:44384/api/Menu` : `https://${window.location.host}/SisproErpCloud/Service_Private/Infra/SpInfra2ErpWS/api/Menu`;
6529
6529
  const raw = localStorage.getItem('user_auth_v6');
6530
6530
  this.token = raw ? JSON.parse(raw) : null;
6531
- if (this.localHostnames.includes(window.location.hostname)) {
6531
+ if (this.localHostnames.includes(window.location.host)) {
6532
6532
  this._BASE_URL = `https://siscandesinfra.sispro.com.br/SisproErpCloud/Service_Private/Infra/SpInfra2ErpWS/api/Menu`;
6533
6533
  }
6534
6534
  else {
@@ -9907,7 +9907,7 @@ class LibHeaderComponent {
9907
9907
  initializeAuditoriaRoute() {
9908
9908
  // const match = this._router.url.match(/^[^/]+\/[^/]+\/([^/]+)\/[^/]+/);
9909
9909
  // const currentProduct = match ? match[1] : null;
9910
- const currentHostName = window.location.hostname;
9910
+ const currentHostName = window.location.host;
9911
9911
  const localHostnames = [
9912
9912
  "localhost",
9913
9913
  "127.0.0.1"
@@ -11217,8 +11217,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
11217
11217
  class PessoaService {
11218
11218
  constructor(_httpClient) {
11219
11219
  this._httpClient = _httpClient;
11220
- this.PAPEL_BASE_URL = window.location.hostname.includes('localhost') ? `http://localhost:44384/api/Papeis` : `https://${window.location.hostname}/SisproErpCloud/Service_Private/Corporativo/SpCrp2CrpPessoaWS/api/Papeis`;
11221
- this.PESSOA_BASE_URL = window.location.hostname.includes('localhost') ? `http://localhost:44384/api/Pessoas` : `https://${window.location.hostname}/SisproErpCloud/Service_Private/Corporativo/SpCrp2CrpPessoaWS/api/Pessoas`;
11220
+ this.PAPEL_BASE_URL = window.location.host.includes('localhost') ? `http://localhost:44384/api/Papeis` : `https://${window.location.host}/SisproErpCloud/Service_Private/Corporativo/SpCrp2CrpPessoaWS/api/Papeis`;
11221
+ this.PESSOA_BASE_URL = window.location.host.includes('localhost') ? `http://localhost:44384/api/Pessoas` : `https://${window.location.host}/SisproErpCloud/Service_Private/Corporativo/SpCrp2CrpPessoaWS/api/Pessoas`;
11222
11222
  }
11223
11223
  GetPapeisSelected(idCrpPessoa) {
11224
11224
  const headers = new HttpHeaders()
@@ -11955,7 +11955,7 @@ class SearchInputComponent {
11955
11955
  // - local + RotaOS => https://<productionHost>/<rotaOS>
11956
11956
  // - server + RotaV6 => https://<serverHost>/<rotaV6>
11957
11957
  // - server + RotaOS => https://<serverHost>/<rotaOS>
11958
- const isLocal = window.location.hostname.includes('localhost') || window.location.hostname === '127.0.0.1';
11958
+ const isLocal = window.location.host.includes('localhost') || window.location.host === '127.0.0.1';
11959
11959
  // Production host to use when we need to redirect to server from local
11960
11960
  const productionHost = isLocal ? 'v6siscandes.sispro.com.br' : window.location.host;
11961
11961
  const protocol = window.location.protocol;