@cocreate/utils 1.19.6 → 1.19.7

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.19.7](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.19.6...v1.19.7) (2023-04-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * replaced object.entries with Object.keys ([f679614](https://github.com/CoCreate-app/CoCreate-utils/commit/f67961495349a9ce44ca387144c0790684c73ee1))
7
+
1
8
  ## [1.19.6](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.19.5...v1.19.6) (2023-04-11)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/utils",
3
- "version": "1.19.6",
3
+ "version": "1.19.7",
4
4
  "description": "A simple utils component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "utils",
package/src/archive.js CHANGED
@@ -447,7 +447,8 @@ async function complexSelector(comSelector, callback) {
447
447
  let object = {}
448
448
  if ( typeof data === 'object' ) {
449
449
  // update['$set'] = {}
450
- for (let [key, value] of Object.entries(data)) {
450
+ for (let key of Object.keys(data)) {
451
+ let value = data[key]
451
452
  let val;
452
453
  let valueType = typeof value;
453
454
  switch(valueType) {
package/src/utils.js CHANGED
@@ -51,7 +51,8 @@
51
51
 
52
52
  function dotNotationToObject(data, obj = {}) {
53
53
  try {
54
- for (const [key, value] of Object.entries(data)) {
54
+ for (const key of Object.keys(data)) {
55
+ let value = data[key]
55
56
  let newObject = obj
56
57
  let oldObject = new Object(obj)
57
58
  let keys = key.split('.');