ngx-sp-auth 4.3.7 → 4.3.8

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.
@@ -10,6 +10,7 @@ import { IpServiceService, RetError } from 'ngx-sp-infra';
10
10
  import { LibCustomEnvironmentService } from './custom/lib-custom-environment.service';
11
11
  import { LibCustomLoginService } from './custom/lib-custom-login.service';
12
12
  import { ProjectUtilservice } from './project/project-utils.service';
13
+ import { IndexedDBService } from './services/indexed-db.service';
13
14
  import { AuthStorageService } from './storage/auth-storage.service';
14
15
  import * as i0 from "@angular/core";
15
16
  export declare class AuthService {
@@ -20,6 +21,7 @@ export declare class AuthService {
20
21
  private _customLoginService;
21
22
  private _projectUtilservice;
22
23
  private _customEnvironmentService;
24
+ private _indexedDBService;
23
25
  private _pendingWarning;
24
26
  private readonly _BASE_URL;
25
27
  private readonly _AUTH_BASE_URL;
@@ -29,7 +31,7 @@ export declare class AuthService {
29
31
  private city;
30
32
  private state;
31
33
  private country;
32
- constructor(_httpClient: HttpClient, _router: Router, _authStorageService: AuthStorageService, _ipServiceService: IpServiceService, _customLoginService: LibCustomLoginService, _projectUtilservice: ProjectUtilservice, _customEnvironmentService: LibCustomEnvironmentService);
34
+ constructor(_httpClient: HttpClient, _router: Router, _authStorageService: AuthStorageService, _ipServiceService: IpServiceService, _customLoginService: LibCustomLoginService, _projectUtilservice: ProjectUtilservice, _customEnvironmentService: LibCustomEnvironmentService, _indexedDBService: IndexedDBService);
33
35
  private getParms;
34
36
  private getHostName;
35
37
  /** Obtém o método de autenticação
@@ -57,13 +57,13 @@ export declare class IndexedDBService {
57
57
  *
58
58
  * @param dbName Nome da base de dados que será usada
59
59
  */
60
- initializeDatabase(dbName?: string): Promise<void>;
60
+ initializeDatabase(): Promise<void>;
61
61
  /**
62
62
  * Exclui uma database do IndexedDB com base no nome.
63
63
  *
64
64
  * @param name Nome da database
65
65
  */
66
- deleteDatabase(name: string): Promise<void>;
66
+ deleteDatabase(): Promise<void>;
67
67
  /**
68
68
  * Valida se já existe um valor cadastrado na base com a chave-única que foi informada, se houver retorna ele, caso contrário cria um registro placeholder para poder atualizar depois.
69
69
  *
@@ -1,12 +1,14 @@
1
1
  import { HttpBackend } from '@angular/common/http';
2
2
  import { BehaviorSubject } from 'rxjs';
3
3
  import { Payload } from './../models/payload';
4
- import { LibCustomStorageService } from '../custom/lib-custom-storage.service';
5
4
  import { LibCustomEnvironmentService } from '../custom/lib-custom-environment.service';
5
+ import { LibCustomStorageService } from '../custom/lib-custom-storage.service';
6
+ import { IndexedDBService } from '../services/indexed-db.service';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class AuthStorageService {
8
9
  private _httpBackend;
9
10
  private _customStorageService;
11
+ private _indexedDBService;
10
12
  private _customEnvironmentService;
11
13
  private readonly _BASE_URL;
12
14
  private readonly __local_key;
@@ -14,7 +16,7 @@ export declare class AuthStorageService {
14
16
  /** Se ainda estamos com uma função rodando para verificar o login do usuário */
15
17
  private __isCheckingAuth;
16
18
  private _httpClient;
17
- constructor(_httpBackend: HttpBackend, _customStorageService: LibCustomStorageService, _customEnvironmentService: LibCustomEnvironmentService);
19
+ constructor(_httpBackend: HttpBackend, _customStorageService: LibCustomStorageService, _indexedDBService: IndexedDBService, _customEnvironmentService: LibCustomEnvironmentService);
18
20
  isLoggedInSub: BehaviorSubject<boolean>;
19
21
  private __ip;
20
22
  get ip(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-sp-auth",
3
- "version": "4.3.7",
3
+ "version": "4.3.8",
4
4
  "description": "Biblioteca de utilitários de autenticação.",
5
5
  "author": "P&D",
6
6
  "keywords": [