@xsolla/payment-client-core 0.2.105 → 0.2.107
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/esm2022/lib/core/exceptions-handling/elk/elk-logger.service.mjs +1 -1
- package/esm2022/lib/core/exceptions-handling/logger/log-handler.interface.mjs +1 -1
- package/esm2022/lib/core/exceptions-handling/logger/logger.service.mjs +5 -1
- package/esm2022/lib/core/exceptions-handling/messages/index.mjs +3 -0
- package/esm2022/lib/core/exceptions-handling/messages/message-tags.enum.mjs +6 -0
- package/esm2022/lib/core/exceptions-handling/messages/tagged-message.class.mjs +16 -0
- package/esm2022/lib/core/performance/performance.service.mjs +8 -5
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/socket-messages/window-close-message.interface.mjs +1 -1
- package/esm2022/lib/core/web-socket/centrifugo-web-socket.service.mjs +3 -4
- package/esm2022/lib/core/web-socket/nchan-web-socket.service.mjs +19 -10
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/xsolla-payment-client-core.mjs +49 -16
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/exceptions-handling/elk/elk-logger.service.d.ts +4 -1
- package/lib/core/exceptions-handling/logger/log-handler.interface.d.ts +2 -0
- package/lib/core/exceptions-handling/logger/logger.service.d.ts +2 -0
- package/lib/core/exceptions-handling/messages/index.d.ts +2 -0
- package/lib/core/exceptions-handling/messages/message-tags.enum.d.ts +4 -0
- package/lib/core/exceptions-handling/messages/tagged-message.class.d.ts +9 -0
- package/lib/core/performance/performance.service.d.ts +1 -1
- package/lib/core/sdk-payment-systems/apple-pay/socket-messages/window-close-message.interface.d.ts +3 -0
- package/lib/core/web-socket/nchan-web-socket.service.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/xsolla-payment-client-core-0.2.107.tgz +0 -0
- package/xsolla-payment-client-core-0.2.105.tgz +0 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ErrorHandler, NgZone } from '@angular/core';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { ErrorTags } from '../errors/elk-error-types.enum';
|
|
4
|
+
import { MessageTags } from '../messages/message-tags.enum';
|
|
4
5
|
import { CommonLogAttributesService } from '../common-log-attributes/common-log-attributes.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
type LogTags = ErrorTags | MessageTags;
|
|
6
8
|
export declare class ElkLoggerService implements ErrorHandler {
|
|
7
9
|
private readonly commonLogAttributesService;
|
|
8
10
|
private readonly http;
|
|
@@ -11,7 +13,7 @@ export declare class ElkLoggerService implements ErrorHandler {
|
|
|
11
13
|
private readonly vendors;
|
|
12
14
|
constructor(commonLogAttributesService: CommonLogAttributesService, http: HttpClient, ngZone: NgZone);
|
|
13
15
|
handleError(error: Error): void;
|
|
14
|
-
log(message: string, tags:
|
|
16
|
+
log(message: string, tags: LogTags[], extra?: object): void;
|
|
15
17
|
private parseError;
|
|
16
18
|
private loadStackTrace;
|
|
17
19
|
private getErrorTrace;
|
|
@@ -21,3 +23,4 @@ export declare class ElkLoggerService implements ErrorHandler {
|
|
|
21
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElkLoggerService, never>;
|
|
22
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<ElkLoggerService>;
|
|
23
25
|
}
|
|
26
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElkLoggerService } from '../elk/elk-logger.service';
|
|
2
2
|
import { TaggedError } from '../errors';
|
|
3
|
+
import { TaggedMessage } from '../messages';
|
|
3
4
|
import { LogHandler } from './log-handler.interface';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class LoggerService {
|
|
@@ -8,6 +9,7 @@ export declare class LoggerService {
|
|
|
8
9
|
constructor(elkLoggerService: ElkLoggerService);
|
|
9
10
|
register(handler: LogHandler): void;
|
|
10
11
|
error(error: Error | TaggedError): void;
|
|
12
|
+
info(info: TaggedMessage): void;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
|
|
12
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
|
|
13
15
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MessageTags } from './message-tags.enum';
|
|
2
|
+
export declare class TaggedMessage {
|
|
3
|
+
name: string;
|
|
4
|
+
message: string;
|
|
5
|
+
tags: MessageTags[];
|
|
6
|
+
extra: object;
|
|
7
|
+
private readonly parentTag;
|
|
8
|
+
constructor(message: string, tags?: MessageTags[], extra?: object);
|
|
9
|
+
}
|
|
@@ -9,7 +9,7 @@ export declare class PerformanceService {
|
|
|
9
9
|
private readonly window;
|
|
10
10
|
private readonly zone;
|
|
11
11
|
private readonly navigationPerformance;
|
|
12
|
-
private
|
|
12
|
+
private get resourcesPerformance();
|
|
13
13
|
private get network();
|
|
14
14
|
private get runApp();
|
|
15
15
|
constructor(userBehaviourAnalyticsService: UserBehaviourAnalyticsService, xhrActionService: XhrActionService, window: ExtendedWindow, zone: NgZone);
|
package/lib/core/sdk-payment-systems/apple-pay/socket-messages/window-close-message.interface.d.ts
CHANGED
|
@@ -2,4 +2,7 @@ import { WindowCommand } from '../../../window-command.interface';
|
|
|
2
2
|
import { CommandsForPages } from '../commands-for-pages.enum';
|
|
3
3
|
export interface WindowCloseMessage extends WindowCommand {
|
|
4
4
|
command: CommandsForPages.APPLE_PAY_WINDOW_CLOSE;
|
|
5
|
+
data?: {
|
|
6
|
+
closedByUser: boolean;
|
|
7
|
+
};
|
|
5
8
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Observable, Subscription } from 'rxjs';
|
|
2
2
|
import { WebSocketClient } from './web-socket.interface';
|
|
3
3
|
import { WebSocketClientType } from './web-socket-client-type.enum';
|
|
4
|
+
import { LoggerService } from '../exceptions-handling/logger/logger.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class NchanWebSocketService implements WebSocketClient {
|
|
7
|
+
private readonly loggerService;
|
|
6
8
|
static readonly reconnectionTimeoutIncrementFactor = 2;
|
|
7
9
|
url: string;
|
|
8
10
|
type: WebSocketClientType;
|
|
@@ -14,6 +16,7 @@ export declare class NchanWebSocketService implements WebSocketClient {
|
|
|
14
16
|
private connection;
|
|
15
17
|
private readonly incomingMessages$;
|
|
16
18
|
private readonly successfulReconnectionEventsProxy$;
|
|
19
|
+
constructor(loggerService: LoggerService);
|
|
17
20
|
open(url: string): Promise<unknown>;
|
|
18
21
|
close(): void;
|
|
19
22
|
get messages$(): Observable<string>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -15,4 +15,5 @@ export * from './lib/core/transaction-initiation-type.enum';
|
|
|
15
15
|
export * from './lib/core/sdk-payment-systems/google-pay/google-pay-button-color.type';
|
|
16
16
|
export * from './lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.interface';
|
|
17
17
|
export * from './lib/core/exceptions-handling/errors';
|
|
18
|
+
export * from './lib/core/exceptions-handling/messages';
|
|
18
19
|
export * from './lib/core/exceptions-handling/logger';
|
|
Binary file
|
|
Binary file
|