@cocreate/utils 1.17.22 → 1.17.24

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.17.24](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.17.23...v1.17.24) (2023-01-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * queryDocumentSelectorAll return array ([ae3759d](https://github.com/CoCreate-app/CoCreate-utils/commit/ae3759d8062d1e21d452d3f48fdb6dd66bd71367))
7
+
8
+ ## [1.17.23](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.17.22...v1.17.23) (2023-01-29)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump dependencies ([f794357](https://github.com/CoCreate-app/CoCreate-utils/commit/f7943578bb3a265b6cfed8343cce5307c5e40b53))
14
+
1
15
  ## [1.17.22](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.17.21...v1.17.22) (2023-01-27)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/utils",
3
- "version": "1.17.22",
3
+ "version": "1.17.24",
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.5.8"
63
+ "@cocreate/docs": "^1.5.10"
64
64
  }
65
65
  }
package/src/utils.js CHANGED
@@ -222,7 +222,7 @@
222
222
  let elements = [];
223
223
 
224
224
  if (selector) {
225
- let selectors = [selector];
225
+ let selectors;
226
226
  if (selector.indexOf(',') !== -1){
227
227
  selectors = selector.split(',');
228
228
  }
@@ -253,8 +253,8 @@
253
253
  elements = elements.concat(els);
254
254
  }
255
255
  }
256
- return elements;
257
256
  }
257
+ return elements;
258
258
  }
259
259
 
260
260
  function queryDocumentSelector(selector) {
@@ -288,8 +288,8 @@
288
288
  if (el)
289
289
  return el
290
290
  }
291
- return;
292
291
  }
292
+ return;
293
293
  }
294
294
 
295
295
  function queryData(data, query) {