@cocreate/utils 1.19.5 → 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 +14 -0
- package/package.json +2 -2
- package/src/archive.js +2 -1
- package/src/utils.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [1.19.6](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.19.5...v1.19.6) (2023-04-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* bump dependencies ([c4e4b22](https://github.com/CoCreate-app/CoCreate-utils/commit/c4e4b22299b8a419d6d2db6fcd788ea62f2088d9))
|
|
14
|
+
|
|
1
15
|
## [1.19.5](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.19.4...v1.19.5) (2023-04-11)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/utils",
|
|
3
|
-
"version": "1.19.
|
|
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",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"webpack-log": "^3.0.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@cocreate/docs": "^1.6.
|
|
63
|
+
"@cocreate/docs": "^1.6.5"
|
|
64
64
|
}
|
|
65
65
|
}
|
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
|
|
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
|
|
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('.');
|