@cocreate/utils 1.33.1 → 1.33.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 +7 -0
- package/package.json +1 -1
- package/src/index.js +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.33.2](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.33.1...v1.33.2) (2024-02-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* selector split ([fd205fa](https://github.com/CoCreate-app/CoCreate-utils/commit/fd205faa2dfb2fef5a57526a9630d77974229ad6))
|
|
7
|
+
|
|
1
8
|
## [1.33.1](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.33.0...v1.33.1) (2024-02-05)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -302,9 +302,8 @@
|
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
if (Selector) {
|
|
305
|
-
|
|
305
|
+
let selectors = Selector.split(/,(?![^()]*\))/g);
|
|
306
306
|
|
|
307
|
-
let selectors = Selector.split(',');
|
|
308
307
|
for (let j = 0; j < selectors.length; j++) {
|
|
309
308
|
if (selectors[j].includes('@')) {
|
|
310
309
|
selectors[j] = checkMediaQueries(selectors[j])
|
|
@@ -718,7 +717,7 @@
|
|
|
718
717
|
for (let attribute of el.attributes) {
|
|
719
718
|
let variable = attributes[attribute.name]
|
|
720
719
|
if (variable) {
|
|
721
|
-
object[variable] = attribute.
|
|
720
|
+
object[variable] = el.getAttribute(attribute.name)
|
|
722
721
|
}
|
|
723
722
|
}
|
|
724
723
|
|