@cocreate/utils 1.20.8 → 1.20.10

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,17 @@
1
+ ## [1.20.10](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.20.9...v1.20.10) (2023-05-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([15e76aa](https://github.com/CoCreate-app/CoCreate-utils/commit/15e76aa21facfd82c46851e5838f746a9e1d145b))
7
+
8
+ ## [1.20.9](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.20.8...v1.20.9) (2023-05-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update packages to latest version. This commit updates various packages in the dependencies section of the package.json file to their latest published versions, thereby fixing multiple bugs and improving overall performance. ([44fd1d1](https://github.com/CoCreate-app/CoCreate-utils/commit/44fd1d1bb5b1d020610becf5b4633c623207f96a))
14
+
1
15
  ## [1.20.8](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.20.7...v1.20.8) (2023-05-10)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/utils",
3
- "version": "1.20.8",
3
+ "version": "1.20.10",
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",
@@ -59,6 +59,6 @@
59
59
  "webpack-log": "^3.0.1"
60
60
  },
61
61
  "dependencies": {
62
- "@cocreate/docs": "^1.7.8"
62
+ "@cocreate/docs": "^1.7.12"
63
63
  }
64
64
  }
package/src/archive.js CHANGED
@@ -52,7 +52,7 @@ export function getAttributes(element) {
52
52
  }, {});
53
53
  }
54
54
 
55
- // ToDo: duplicate it is in crud.utils
55
+ // TODO: duplicate it is in crud.utils
56
56
  export function checkValue(value) {
57
57
  if (!value) return false;
58
58
  if (/{{\s*([\w\W]+)\s*}}/g.test(value)) {
@@ -62,7 +62,7 @@ export function checkValue(value) {
62
62
  return true;
63
63
  }
64
64
 
65
- // ToDo: Maybe can be deprciated
65
+ // TODO: Maybe can be deprciated
66
66
  export function getValueFromJonDeep(json, path) {
67
67
  try {
68
68
  if (typeof json == 'undefined')
@@ -233,7 +233,7 @@ export function getElementPath(element, returnContext) {
233
233
  if (p) path.unshift(p);
234
234
 
235
235
  return returnContext ? { path, document: iframeElement || document } : path;
236
- //todo: support for nested iframe
236
+ //TODO: support for nested iframe
237
237
  // while(iframeElement !== findIframeFromElement(topWindow,iframeElement))
238
238
  // {
239
239
  // iframeElement = findIframeFromElement(topWindow,iframeElement);
package/src/utils.js CHANGED
@@ -181,7 +181,7 @@
181
181
  // }
182
182
 
183
183
  if (node.parentNode && node.parentNode.children.length > 1) {
184
- // ToDo: improve array logic so ignores javascript generated html??
184
+ // TODO: improve array logic so ignores javascript generated html??
185
185
  let children = []
186
186
  for (let child of node.parentNode.children){
187
187
  // if (!child.matches('.mirror'))