@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.
@@ -6,3 +6,4 @@ export * from './sc-convert.interceptor';
6
6
  export * from './sc-errors.interceptor';
7
7
  export * from './sc-options.interceptor';
8
8
  export * from './sc-guest.interceptor';
9
+ export * from './sc-date-format.interceptor';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-core",
3
- "version": "2.55.0",
3
+ "version": "2.56.1",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-core-lib",
6
6
  "license": "Commercial",
package/release_notes.tmp CHANGED
@@ -1,6 +1,10 @@
1
- ## 2.55.0 (2025-07-04)
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
- - [#11941: Добавлен артикул поставщика в данные о продукте.](web_soft/libs/angular/snabcentr-client-core-lib@3512c2cc602e1494ed8f3fd96af50e480a21ecab) ([merge request](web_soft/libs/angular/snabcentr-client-core-lib!246))
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