@snabcentr/common-lib 1.56.0 → 1.57.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.
@@ -4,6 +4,6 @@
4
4
  "name": "public-api",
5
5
  "src": "src/public-api.ts",
6
6
  "isEntry": true,
7
- "integrity": "sha384-KqAdjJoCcD2rmQCJ6O/dDlb32VnYNO+BJ1m1ZfSl8EpuSClhiCt4D9n6hCoUmyDI"
7
+ "integrity": "sha384-4jQfxk9lP9Rg/ZfFuADK3+9kkqkj4VH07X8wp6/emUzBhOTyE0gudKspyDPfkEii"
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
- ## 1.56.0 (2025-06-04)
1
+ ## 1.57.1 (2025-06-06)
2
2
 
3
- ### added (1 change)
3
+ ### fixed (1 change)
4
4
 
5
- - [#11736: В данные о категории добавлено свойство коэффициентов пересчета валют в рубли и обратно](web_soft/libs/ts/snabcentr-common-lib@3026541c73bf6328efbc69fd7f641bcbc7e99031) ([merge request](web_soft/libs/ts/snabcentr-common-lib!97))
5
+ - [#11773: Исправлена ошибка выдачи нулевых значений из хранилища](web_soft/libs/ts/snabcentr-common-lib@b3fb0408ca74f38ffaf6b55337e122e9a7d5db8d) ([merge request](web_soft/libs/ts/snabcentr-common-lib!99))
6
6
 
@@ -706,7 +706,7 @@ class mt {
706
706
  api: ((e = r == null ? void 0 : r.dateFormats) == null ? void 0 : e.api) ?? "yyyy-MM-dd HH:mm:ss",
707
707
  uiDate: ((s = r == null ? void 0 : r.dateFormats) == null ? void 0 : s.uiDate) ?? "dd.MM.yyyy",
708
708
  uiDateWithTime: ((i = r == null ? void 0 : r.dateFormats) == null ? void 0 : i.uiDateWithTime) ?? "dd.MM.yyyy HH:mm"
709
- }, this.themes = r == null ? void 0 : r.themes, this.minSearchTermLength = (r == null ? void 0 : r.minSearchTermLength) ?? 3;
709
+ }, this.minSearchTermLength = (r == null ? void 0 : r.minSearchTermLength) ?? 3, r != null && r.themes && (this.themes = r.themes);
710
710
  }
711
711
  }
712
712
  class ae {
@@ -1123,7 +1123,7 @@ class yt {
1123
1123
  try {
1124
1124
  const s = JSON.parse(e);
1125
1125
  if (gr(f(s.availableFor) || Fe(), /* @__PURE__ */ new Date()))
1126
- return s.data || {};
1126
+ return s.data ?? {};
1127
1127
  } catch {
1128
1128
  localStorage.removeItem(r);
1129
1129
  }