jsuites 6.6.0 → 6.6.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.
Files changed (2) hide show
  1. package/dist/jsuites.js +2 -3
  2. package/package.json +2 -2
package/dist/jsuites.js CHANGED
@@ -12625,14 +12625,13 @@ function Path(pathString, value, remove) {
12625
12625
  return false;
12626
12626
  }
12627
12627
 
12628
- // Own keys only: a write never walks into what the object inherits
12629
12628
  // If the key exists but is null/undefined or a non-object, replace it with an empty object
12630
12629
  if (
12631
- Object.hasOwn(currentObject, key) &&
12630
+ key in currentObject &&
12632
12631
  (currentObject[key] == null || ! isValidPathObj(currentObject[key]))
12633
12632
  ) {
12634
12633
  currentObject[key] = {};
12635
- } else if (! Object.hasOwn(currentObject, key)) {
12634
+ } else if (!(key in currentObject)) {
12636
12635
  // If the key doesn't exist, create an empty object
12637
12636
  currentObject[key] = {};
12638
12637
  }
package/package.json CHANGED
@@ -26,13 +26,13 @@
26
26
  },
27
27
  "main": "dist/jsuites.js",
28
28
  "types": "dist/jsuites.d.ts",
29
- "version": "6.6.0",
29
+ "version": "6.6.1",
30
30
  "bugs": "https://github.com/jsuites/jsuites/issues",
31
31
  "homepage": "https://github.com/jsuites/jsuites",
32
32
  "docs": "https://jsuites.net",
33
33
  "download": "https://github.com/jsuites/jsuites/archive/master.zip",
34
34
  "dependencies": {
35
- "@jsuites/utils": "^6.2.0",
35
+ "@jsuites/utils": "^6.2.1",
36
36
  "@lemonadejs/calendar": "^5.9.3",
37
37
  "@lemonadejs/color": "^5.8.0",
38
38
  "@lemonadejs/contextmenu": "^5.8.6",