@hyperframes/lint 0.8.166 → 0.8.167
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/dist/browser.js +2 -1
- package/dist/index.js +2 -1
- package/package.json +2 -2
package/dist/browser.js
CHANGED
|
@@ -2740,8 +2740,9 @@ function stylesheetCanvasZoomHits(styles, rootId, rootClasses) {
|
|
|
2740
2740
|
const hits = [];
|
|
2741
2741
|
for (const style of styles) {
|
|
2742
2742
|
const ruleWithBody = /([^{}]+)\{([^{}]*)\}/g;
|
|
2743
|
+
const content = stripCssComments(style.content);
|
|
2743
2744
|
let match;
|
|
2744
|
-
while ((match = ruleWithBody.exec(
|
|
2745
|
+
while ((match = ruleWithBody.exec(content)) !== null) {
|
|
2745
2746
|
const hit = canvasZoomInRule(match[1] ?? "", match[2] ?? "", rootId, rootClasses);
|
|
2746
2747
|
if (hit) hits.push(hit);
|
|
2747
2748
|
}
|
package/dist/index.js
CHANGED
|
@@ -2746,8 +2746,9 @@ function stylesheetCanvasZoomHits(styles, rootId, rootClasses) {
|
|
|
2746
2746
|
const hits = [];
|
|
2747
2747
|
for (const style of styles) {
|
|
2748
2748
|
const ruleWithBody = /([^{}]+)\{([^{}]*)\}/g;
|
|
2749
|
+
const content = stripCssComments(style.content);
|
|
2749
2750
|
let match;
|
|
2750
|
-
while ((match = ruleWithBody.exec(
|
|
2751
|
+
while ((match = ruleWithBody.exec(content)) !== null) {
|
|
2751
2752
|
const hit = canvasZoomInRule(match[1] ?? "", match[2] ?? "", rootId, rootClasses);
|
|
2752
2753
|
if (hit) hits.push(hit);
|
|
2753
2754
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/lint",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.167",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"linkedom": "^0.18.12",
|
|
36
36
|
"postcss": "^8.5.8",
|
|
37
37
|
"postcss-selector-parser": "^7.1.4",
|
|
38
|
-
"@hyperframes/parsers": "0.8.
|
|
38
|
+
"@hyperframes/parsers": "0.8.167"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^25.0.10",
|