@cocreate/utils 1.41.1 → 1.41.2

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.41.2](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.41.1...v1.41.2) (2026-02-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * root factory variable Module ([c723787](https://github.com/CoCreate-app/CoCreate-utils/commit/c7237877d833976c821eeb322fd18b3e92f7fd37))
7
+
1
8
  ## [1.41.1](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.41.0...v1.41.1) (2026-02-04)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/utils",
3
- "version": "1.41.1",
3
+ "version": "1.41.2",
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/index.js CHANGED
@@ -774,7 +774,7 @@
774
774
  if (!prefix) {
775
775
  for (let attr of element.attributes) {
776
776
  // If an attribute with "-query" suffix is found, extract prefix.
777
- if (attr.name.endsWith("-query")) {
777
+ if (attr.name.endsWith("-query") || attr.name.endsWith(".query")) {
778
778
  prefix = attr.name.slice(0, -6);
779
779
  }
780
780
  }
@@ -782,7 +782,7 @@
782
782
  if (!prefix) return [];
783
783
  }
784
784
  // Get the selector using the derived prefix.
785
- selector = element.getAttribute(prefix + "-" + "query");
785
+ selector = element.getAttribute(prefix + "-" + "query") || element.getAttribute(prefix + "." + "query");
786
786
  if (!selector) return []; // Exit if no selector is found.
787
787
  }
788
788