@snabcentr/client-core 2.42.3 → 2.42.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-core",
3
- "version": "2.42.3",
3
+ "version": "2.42.4",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-core-lib",
6
6
  "license": "Commercial",
@@ -21,7 +21,8 @@
21
21
  "schema-dts": "^1.1.2",
22
22
  "ts-case-convert": "^2.1.0",
23
23
  "zone.js": "~0.14.10",
24
- "lodash-es": "^4.17.21"
24
+ "lodash-es": "^4.17.21",
25
+ "@types/express": "^4.17.17"
25
26
  },
26
27
  "dependencies": {
27
28
  "tslib": "^2.8.1"
@@ -1,8 +1,14 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { Response } from 'express';
1
3
  /**
2
4
  * Токен для получения признака, что скрипт выполняется в браузере.
3
5
  */
4
- export declare const IS_BROWSER: import("@angular/core").InjectionToken<boolean>;
6
+ export declare const IS_BROWSER: InjectionToken<boolean>;
5
7
  /**
6
8
  * Токен для получения признака, что скрипт выполняется на сервере.
7
9
  */
8
- export declare const IS_SERVER: import("@angular/core").InjectionToken<boolean>;
10
+ export declare const IS_SERVER: InjectionToken<boolean>;
11
+ /**
12
+ * Токен для получения данных об ответе на запрос.
13
+ */
14
+ export declare const RESPONSE: InjectionToken<Response<any, Record<string, any>>>;
package/release_notes.tmp CHANGED
@@ -1,6 +1,6 @@
1
- ## 2.42.3 (2025-04-08)
1
+ ## 2.42.4 (2025-04-10)
2
2
 
3
- ### added (1 change)
3
+ ### fixed (1 change)
4
4
 
5
- - [#11038: Добавлен метод получения url изображения на медиа сервере.](web_soft/libs/angular/snabcentr-client-core-lib@0458f8e161e12a7495ec8e1bca95365b6f287485) ([merge request](web_soft/libs/angular/snabcentr-client-core-lib!227))
5
+ - [#11370: Исправлены ошибки для корректной работы SSR](web_soft/libs/angular/snabcentr-client-core-lib@fd475f865642b804c0f6c6863e4fe8e54e366fef) ([merge request](web_soft/libs/angular/snabcentr-client-core-lib!228))
6
6
 
@@ -33,6 +33,10 @@ export declare class ScUserService {
33
33
  * Сервис для работы с токенами.
34
34
  */
35
35
  private readonly tokenService;
36
+ /**
37
+ * Признак, что скрипт выполняется в браузере.
38
+ */
39
+ private readonly isBrowser;
36
40
  /**
37
41
  * Инициализирует экземпляр класса {@link ScUserService}.
38
42
  *