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.
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/package.json +1 -1
package/dist/hooks/index.d.mts
CHANGED
|
@@ -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
|
|
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;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -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
|
|
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;
|
package/dist/hooks/index.js
CHANGED
|
@@ -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 [
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -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 [
|