@m4l/core 0.1.51 → 0.1.52
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.
|
@@ -25,7 +25,7 @@ function j(l) {
|
|
|
25
25
|
networkOperation: v
|
|
26
26
|
} = A();
|
|
27
27
|
L(() => {
|
|
28
|
-
let
|
|
28
|
+
let t = !0;
|
|
29
29
|
return D(), v({
|
|
30
30
|
method: "GET",
|
|
31
31
|
endPoint: a ? `dictionaries/${i}` : `na/dictionaries/${i}`,
|
|
@@ -35,28 +35,28 @@ function j(l) {
|
|
|
35
35
|
domain_token: g
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
}).then((
|
|
39
|
-
|
|
40
|
-
...
|
|
41
|
-
}),
|
|
38
|
+
}).then((o) => {
|
|
39
|
+
t && (p({
|
|
40
|
+
...o
|
|
41
|
+
}), f(M.FLAG_DICTIONARY_LOADED));
|
|
42
42
|
}).finally(() => {
|
|
43
43
|
h();
|
|
44
44
|
}), function() {
|
|
45
|
-
|
|
45
|
+
t = !1;
|
|
46
46
|
};
|
|
47
47
|
}, [d]);
|
|
48
|
-
const n = u((
|
|
48
|
+
const n = u((t) => {
|
|
49
49
|
if (e === void 0)
|
|
50
50
|
return "";
|
|
51
|
-
if (
|
|
51
|
+
if (t === "")
|
|
52
52
|
return "No key";
|
|
53
|
-
let
|
|
54
|
-
const r =
|
|
53
|
+
let o;
|
|
54
|
+
const r = t.split(".");
|
|
55
55
|
try {
|
|
56
|
-
r.length === 1 && (
|
|
56
|
+
r.length === 1 && (o = e.data[t]), r.length === 2 && (o = e[r[0]][r[1]]);
|
|
57
57
|
} catch {
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return o || `N_D:[${t}]`;
|
|
60
60
|
}, [e]), C = u(() => n(s), [s, n]);
|
|
61
61
|
return /* @__PURE__ */ N(E.Provider, {
|
|
62
62
|
value: {
|
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { H as P, a as C } from "./contexts/HostToolsContext/index.499db832.js";
|
|
|
5
5
|
import { N as D, a as S } from "./contexts/NetworkContext/index.583e4f85.js";
|
|
6
6
|
import { F as y, a as F } from "./contexts/FlagsContext/index.5f795859.js";
|
|
7
7
|
import { D as k, a as B } from "./contexts/DomainContext/index.ecd8b5ac.js";
|
|
8
|
-
import { M as H, a as N } from "./contexts/ModuleDictionaryContext/index.
|
|
8
|
+
import { M as H, a as N } from "./contexts/ModuleDictionaryContext/index.e6103934.js";
|
|
9
9
|
import { M as T, a as h } from "./contexts/ModulePrivilegesContext/index.ec71c5bb.js";
|
|
10
10
|
import { M as O, a as b } from "./contexts/ModuleSkeletonContext/index.45963775.js";
|
|
11
11
|
import { D as q, a as z } from "./contexts/DomainCountryContext/index.3cdf9462.js";
|
|
@@ -15,7 +15,7 @@ import { u as Q, a as R } from "./hooks/useFlags/index.a986729d.js";
|
|
|
15
15
|
import { u as V } from "./hooks/useHostTools/index.66d9a667.js";
|
|
16
16
|
import { u as Y, a as Z } from "./hooks/useDomain/index.2ef00a51.js";
|
|
17
17
|
import { u as $, a as oo } from "./hooks/useLocalStorage/index.48b47dca.js";
|
|
18
|
-
import { u as ro } from "./hooks/useModuleDictionary/index.
|
|
18
|
+
import { u as ro } from "./hooks/useModuleDictionary/index.ee9282aa.js";
|
|
19
19
|
import { u as to } from "./hooks/useModulePrivileges/index.125a7496.js";
|
|
20
20
|
import { u as io } from "./hooks/useModuleSkeleton/index.739fd422.js";
|
|
21
21
|
import { u as mo } from "./hooks/useNetwork/index.e1736c31.js";
|