jsuites 6.3.0 → 6.3.1
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/jsuites.js +3 -7
- package/package.json +1 -1
package/dist/jsuites.js
CHANGED
|
@@ -12466,7 +12466,7 @@ Helpers.findElement = function(element, condition) {
|
|
|
12466
12466
|
/* harmony default export */ var helpers = (Helpers);
|
|
12467
12467
|
;// CONCATENATED MODULE: ./src/utils/path.js
|
|
12468
12468
|
const isValidPathObj = function(o) {
|
|
12469
|
-
return typeof o === 'object' || typeof o === 'function';
|
|
12469
|
+
return o !== null && (typeof o === 'object' || typeof o === 'function');
|
|
12470
12470
|
}
|
|
12471
12471
|
|
|
12472
12472
|
function Path(pathString, value, remove) {
|
|
@@ -12490,11 +12490,7 @@ function Path(pathString, value, remove) {
|
|
|
12490
12490
|
for (let i = 0; i < keys.length; i++) {
|
|
12491
12491
|
const key = keys[i];
|
|
12492
12492
|
// Check if the current object is valid and has the key
|
|
12493
|
-
if (
|
|
12494
|
-
currentObject != null &&
|
|
12495
|
-
isValidPathObj(currentObject) &&
|
|
12496
|
-
key in currentObject
|
|
12497
|
-
) {
|
|
12493
|
+
if (currentObject != null && isValidPathObj(currentObject) && key in currentObject) {
|
|
12498
12494
|
currentObject = currentObject[key];
|
|
12499
12495
|
} else {
|
|
12500
12496
|
// Return undefined if the path is invalid or currentObject is null/undefined
|
|
@@ -23447,7 +23443,7 @@ var jSuites = {
|
|
|
23447
23443
|
...dictionary,
|
|
23448
23444
|
...helpers,
|
|
23449
23445
|
/** Current version */
|
|
23450
|
-
version: '6.3.
|
|
23446
|
+
version: '6.3.1',
|
|
23451
23447
|
/** Bind new extensions to Jsuites */
|
|
23452
23448
|
setExtensions: function(o) {
|
|
23453
23449
|
if (typeof(o) == 'object') {
|
package/package.json
CHANGED