akeyless-client-commons 1.1.108 → 1.1.110

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.
@@ -3,7 +3,7 @@ import { Dispatch, SetStateAction, EffectCallback } from 'react';
3
3
  import { WhereFilterOp } from 'firebase/firestore';
4
4
 
5
5
  declare const useDocumentTitle: (title: string) => any;
6
- declare const useSetUserCountry: (setUserCountry: Dispatch<SetStateAction<CountryOptions>>, changLang: (lang: string) => void) => any;
6
+ declare const useSetUserCountry: (setUserCountry: Dispatch<SetStateAction<CountryOptions>>, changLang?: (lang: string) => void) => any;
7
7
 
8
8
  declare function useSafeEffect(callback: () => void, dependencies: any[], error_message?: string): void;
9
9
  declare const useDeepCompareMemo: <T>(factory: () => T, dependencies: any[]) => T;
@@ -3,7 +3,7 @@ import { Dispatch, SetStateAction, EffectCallback } from 'react';
3
3
  import { WhereFilterOp } from 'firebase/firestore';
4
4
 
5
5
  declare const useDocumentTitle: (title: string) => any;
6
- declare const useSetUserCountry: (setUserCountry: Dispatch<SetStateAction<CountryOptions>>, changLang: (lang: string) => void) => any;
6
+ declare const useSetUserCountry: (setUserCountry: Dispatch<SetStateAction<CountryOptions>>, changLang?: (lang: string) => void) => any;
7
7
 
8
8
  declare function useSafeEffect(callback: () => void, dependencies: any[], error_message?: string): void;
9
9
  declare const useDeepCompareMemo: <T>(factory: () => T, dependencies: any[]) => T;
@@ -1144,7 +1144,7 @@ var useSetUserCountry = function(setUserCountry, changLang) {
1144
1144
  ];
1145
1145
  case 1:
1146
1146
  country = _state.sent();
1147
- changLang(country === import_akeyless_types_commons2.CountryOptions.IL ? "he" : "en");
1147
+ changLang === null || changLang === void 0 ? void 0 : changLang(country === import_akeyless_types_commons2.CountryOptions.IL ? "he" : "en");
1148
1148
  setUserCountry(country);
1149
1149
  localStorage.setItem("userCountry", country);
1150
1150
  return [
@@ -1048,7 +1048,7 @@ var useSetUserCountry = function(setUserCountry, changLang) {
1048
1048
  ];
1049
1049
  case 1:
1050
1050
  country = _state.sent();
1051
- changLang(country === CountryOptions2.IL ? "he" : "en");
1051
+ changLang === null || changLang === void 0 ? void 0 : changLang(country === CountryOptions2.IL ? "he" : "en");
1052
1052
  setUserCountry(country);
1053
1053
  localStorage.setItem("userCountry", country);
1054
1054
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.1.108",
3
+ "version": "1.1.110",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",