@alfresco/adf-core 8.4.0-17732104912 → 8.4.0-17764854696
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/api/lib/adf-http-client.service.d.ts +9 -9
- package/fesm2022/adf-core.mjs +0 -2
- package/fesm2022/adf-core.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-api.mjs +34 -22
- package/fesm2022/alfresco-adf-core-api.mjs.map +1 -1
- package/lib/auth/interfaces/authentication-service.interface.d.ts +7 -5
- package/lib/auth/services/authentication.service.d.ts +8 -6
- package/lib/auth/services/base-authentication.service.d.ts +6 -6
- package/package.json +7 -7
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Emitters as JsApiEmitters, HttpClient as JsApiHttpClient } from '@alfresco/js-api';
|
|
1
|
+
import { Emitters as JsApiEmitters, HttpClient as JsApiHttpClient, EventEmitterInstance, EventEmitterEvents } from '@alfresco/js-api';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { RequestOptions, SecurityOptions } from './interfaces';
|
|
4
|
-
import ee, { Emitter } from 'event-emitter';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export interface Emitters {
|
|
7
|
-
readonly eventEmitter:
|
|
8
|
-
readonly apiClientEmitter:
|
|
6
|
+
readonly eventEmitter: EventEmitterInstance;
|
|
7
|
+
readonly apiClientEmitter: EventEmitterInstance;
|
|
9
8
|
}
|
|
10
|
-
export declare class AdfHttpClient implements
|
|
9
|
+
export declare class AdfHttpClient implements JsApiHttpClient {
|
|
11
10
|
private httpClient;
|
|
12
|
-
|
|
13
|
-
off: ee.EmitterMethod;
|
|
14
|
-
once: ee.EmitterMethod;
|
|
11
|
+
private eventEmitter;
|
|
15
12
|
_disableCsrf: boolean;
|
|
16
|
-
emit: (type: string, ...args: any[]) => void;
|
|
17
13
|
get disableCsrf(): boolean;
|
|
18
14
|
set disableCsrf(disableCsrf: boolean);
|
|
19
15
|
private defaultSecurityOptions;
|
|
20
16
|
constructor(httpClient: HttpClient);
|
|
17
|
+
on(event: EventEmitterEvents, fn: (...args: any[]) => void, context?: any): this;
|
|
18
|
+
off(event: EventEmitterEvents, fn?: (...args: any[]) => void, context?: any): this;
|
|
19
|
+
once(event: EventEmitterEvents, fn: (...args: any[]) => void, context?: any): this;
|
|
20
|
+
emit(event: EventEmitterEvents, ...args: any[]): boolean;
|
|
21
21
|
setDefaultSecurityOption(options: any): void;
|
|
22
22
|
merge(...objects: any[]): any;
|
|
23
23
|
request<T = any>(url: string, options?: RequestOptions, sc?: SecurityOptions, emitters?: JsApiEmitters): Promise<T>;
|
package/fesm2022/adf-core.mjs
CHANGED
|
@@ -62,7 +62,6 @@ import * as i2$6 from '@angular/material/checkbox';
|
|
|
62
62
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
63
63
|
import * as i1$a from 'angular-oauth2-oidc';
|
|
64
64
|
import { OAuthStorage, AuthConfig, OAuthService, OAuthErrorEvent, OAuthLogger, OAuthSuccessEvent, AUTH_CONFIG, provideOAuthClient } from 'angular-oauth2-oidc';
|
|
65
|
-
import ee from 'event-emitter';
|
|
66
65
|
import { Minimatch } from 'minimatch';
|
|
67
66
|
import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';
|
|
68
67
|
import { AuthenticationInterceptor, Authentication } from '@alfresco/adf-core/auth';
|
|
@@ -7231,7 +7230,6 @@ class BaseAuthenticationService {
|
|
|
7231
7230
|
this.onError = new ReplaySubject(1);
|
|
7232
7231
|
this.onLogin = new ReplaySubject(1);
|
|
7233
7232
|
this.onLogout = new ReplaySubject(1);
|
|
7234
|
-
ee(this);
|
|
7235
7233
|
}
|
|
7236
7234
|
/**
|
|
7237
7235
|
* Adds the auth token to an HTTP header using the 'bearer' scheme.
|