@snabcentr/client-core 2.55.0 → 2.56.1
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/auth/interfaces/index.d.ts +1 -0
- package/auth/interfaces/sc-i-api-error-response.d.ts +13 -0
- package/esm2022/auth/interfaces/index.mjs +2 -1
- package/esm2022/auth/interfaces/sc-i-api-error-response.mjs +2 -0
- package/esm2022/catalog/services/sc-catalog.service.mjs +2 -2
- package/esm2022/httpInterceptors/index.mjs +2 -1
- package/esm2022/httpInterceptors/sc-date-format.interceptor.mjs +80 -0
- package/fesm2022/snabcentr-client-core.mjs +78 -4
- package/fesm2022/snabcentr-client-core.mjs.map +1 -1
- package/httpInterceptors/index.d.ts +1 -0
- package/httpInterceptors/sc-date-format.interceptor.d.ts +28 -0
- package/package.json +1 -1
- package/release_notes.tmp +6 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Перехватчик для форматирования дат в ошибках запросов к API.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ScDateFormatInterceptor implements HttpInterceptor {
|
|
8
|
+
/**
|
|
9
|
+
* Формат дат.
|
|
10
|
+
*/
|
|
11
|
+
private readonly dateFormats;
|
|
12
|
+
/** @inheritDoc */
|
|
13
|
+
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
14
|
+
/**
|
|
15
|
+
* Форматирует даты в ошибках запросов к API.
|
|
16
|
+
*
|
|
17
|
+
* @param error Объект с ошибками API.
|
|
18
|
+
*/
|
|
19
|
+
private formatDatesInErrors;
|
|
20
|
+
/**
|
|
21
|
+
* Форматирует даты в строке.
|
|
22
|
+
*
|
|
23
|
+
* @param text Исходная строка.
|
|
24
|
+
*/
|
|
25
|
+
private formatDateInString;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDateFormatInterceptor, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScDateFormatInterceptor>;
|
|
28
|
+
}
|
package/package.json
CHANGED
package/release_notes.tmp
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
## 2.
|
|
1
|
+
## 2.56.1 (2025-08-08)
|
|
2
|
+
|
|
3
|
+
### fixed (1 change)
|
|
4
|
+
|
|
5
|
+
- [#12069: Исправлено значение страницы в запросе на получение товаров со скидкой с 0 на 1.](web_soft/libs/angular/snabcentr-client-core-lib@d7428f3371f6b5ab8743f5d7e0295a7f6b7b8a9d) ([merge request](web_soft/libs/angular/snabcentr-client-core-lib!249))
|
|
2
6
|
|
|
3
7
|
### added (1 change)
|
|
4
8
|
|
|
5
|
-
- [#
|
|
9
|
+
- [#11982: Обновлены сервисы аутентификации для поддержки нового API Keycloak.](web_soft/libs/angular/snabcentr-client-core-lib@4521df89f9b1311a80887df76fbbb75480defb40) ([merge request](web_soft/libs/angular/snabcentr-client-core-lib!248))
|
|
6
10
|
|