gt-react 5.3.1 → 5.3.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDictionaryEntry.d.ts","sourceRoot":"","sources":["../../../src/provider/helpers/getDictionaryEntry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACtC,UAAU,EAAE,UAAU,EACtB,EAAE,EAAE,MAAM,GACX,UAAU,GAAG,eAAe,
|
|
1
|
+
{"version":3,"file":"getDictionaryEntry.d.ts","sourceRoot":"","sources":["../../../src/provider/helpers/getDictionaryEntry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACtC,UAAU,EAAE,UAAU,EACtB,EAAE,EAAE,MAAM,GACX,UAAU,GAAG,eAAe,CAe9B"}
|
|
@@ -7,7 +7,8 @@ exports.default = getDictionaryEntry;
|
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
8
|
function getDictionaryEntry(dictionary, id) {
|
|
9
9
|
if (!id || typeof id !== 'string') {
|
|
10
|
-
|
|
10
|
+
console.error("Invalid dictionary id: \"".concat(id, "\""));
|
|
11
|
+
return undefined;
|
|
11
12
|
}
|
|
12
13
|
;
|
|
13
14
|
var current = dictionary;
|
|
@@ -15,7 +16,8 @@ function getDictionaryEntry(dictionary, id) {
|
|
|
15
16
|
for (var _i = 0, dictionaryPath_1 = dictionaryPath; _i < dictionaryPath_1.length; _i++) {
|
|
16
17
|
var key = dictionaryPath_1[_i];
|
|
17
18
|
if (typeof current !== 'object' || Array.isArray(current) || react_1.default.isValidElement(current)) {
|
|
18
|
-
|
|
19
|
+
console.error("Invalid dictionary id: \"".concat(id, "\""));
|
|
20
|
+
return undefined;
|
|
19
21
|
}
|
|
20
22
|
current = current[key];
|
|
21
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDictionaryEntry.js","sourceRoot":"","sources":["../../../src/provider/helpers/getDictionaryEntry.ts"],"names":[],"mappings":";;;;;AAGA,
|
|
1
|
+
{"version":3,"file":"getDictionaryEntry.js","sourceRoot":"","sources":["../../../src/provider/helpers/getDictionaryEntry.ts"],"names":[],"mappings":";;;;;AAGA,qCAkBC;AArBD,gDAA0B;AAG1B,SAAwB,kBAAkB,CACtC,UAAsB,EACtB,EAAU;IAEV,IAAI,CAAC,EAAE,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,CAAC,KAAK,CAAC,mCAA2B,EAAE,OAAG,CAAC,CAAA;QAC/C,OAAO,SAAS,CAAC;IACrB,CAAC;IAAA,CAAC;IACF,IAAI,OAAO,GAAiC,UAAU,CAAC;IACvD,IAAI,cAAc,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnC,KAAkB,UAAc,EAAd,iCAAc,EAAd,4BAAc,EAAd,IAAc,EAAE,CAAC;QAA9B,IAAM,GAAG,uBAAA;QACV,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,eAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;YACzF,OAAO,CAAC,KAAK,CAAC,mCAA2B,EAAE,OAAG,CAAC,CAAA;YAC/C,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,OAAO,GAAI,OAAsB,CAAC,GAAG,CAAC,CAAA;IAC1C,CAAC;IACD,OAAO,OAAO,CAAC;AACnB,CAAC"}
|