@evlop/commons 1.0.153 → 1.0.154

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,20 +51,20 @@ const I18nProvider = ({ children }) => {
51
51
  i18ninstance_1.default.on("languageChanged", languageChangeHandeller);
52
52
  return () => i18ninstance_1.default.off("languageChanged", languageChangeHandeller);
53
53
  }, [setLanguage]);
54
- const updateVersioni18nResource = react_1.useCallback(lodash_1.debounce(() => setVersion(Date.now()), 250), []);
54
+ const updatei18nResourceVersion = react_1.useCallback(lodash_1.debounce(() => setVersion(Date.now()), 250), []);
55
55
  react_1.useEffect(() => {
56
- const resourceChangeHandeller = () => updateVersioni18nResource();
56
+ const resourceChangeHandeller = () => updatei18nResourceVersion();
57
57
  i18ninstance_1.default.on("added", resourceChangeHandeller);
58
58
  i18ninstance_1.default.on("removed", resourceChangeHandeller);
59
59
  return () => {
60
60
  i18ninstance_1.default.off("added", resourceChangeHandeller);
61
61
  i18ninstance_1.default.off("removed", resourceChangeHandeller);
62
62
  };
63
- }, [updateVersioni18nResource]);
63
+ }, [updatei18nResourceVersion]);
64
64
  react_1.useEffect(() => {
65
65
  lodash_1.forEach(i18nResources, (values, language) => i18ninstance_1.default.addResources(language, 'common', values));
66
- updateVersioni18nResource();
67
- }, [i18nResources, updateVersioni18nResource]);
66
+ updatei18nResourceVersion();
67
+ }, [i18nResources, updatei18nResourceVersion]);
68
68
  const i18nScope = react_1.useMemo(() => ({ v: version, language }), [version, language]);
69
69
  return (react_1.default.createElement(Scope_1.ScopeProvider, { name: "i18n", value: i18nScope }, children));
70
70
  };
package/package.json CHANGED
@@ -1,28 +1,15 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.153",
3
+ "version": "1.0.154",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {
7
- "@mukti107/redux-rest": "^1.0.20",
8
- "handlebars": "^4.7.6",
7
+ "change-case": "^4.1.2",
8
+ "handlebars": "^4.7.7",
9
9
  "i18next": "^21.8.8",
10
- "change-case": "^4.1.1",
11
- "lodash": "latest",
12
- "polished": "latest",
13
- "react": "latest",
14
- "react-native": "latest",
15
- "@react-navigation/native": "latest",
16
- "react-router": "latest",
17
- "react-redux": "latest",
18
- "react-dnd": "latest",
19
- "recompose": "latest",
20
- "styled-components": "latest",
21
- "socket.io-client": "latest",
22
- "pluralize": "latest",
23
- "query-string": "latest",
24
- "@react-native-async-storage/async-storage": "latest",
25
- "react-native-vector-icons": "^9.0.0",
10
+ "lodash": "^4.17.21",
11
+ "react-native": "^0.68.2",
12
+ "react-native-vector-icons": "^9.1.0",
26
13
  "uuid": "^8.3.2"
27
14
  },
28
15
  "optionalDependencies": {},