@mrhenry/stylelint-mrhenry-attribute-selector-no-unknown 2.1.3 → 2.1.4

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.
Files changed (2) hide show
  1. package/index.mjs +2 -2
  2. package/package.json +4 -4
package/index.mjs CHANGED
@@ -85,7 +85,7 @@ const ruleFunction = (primaryOption, secondaryOption) => {
85
85
  messageArgs: [attribute],
86
86
  node: rule,
87
87
  index: node.sourceIndex,
88
- endIndex: node.sourceIndex + attribute.length,
88
+ endIndex: node.sourceIndex + node.toString().trim().length,
89
89
  result: postcssResult,
90
90
  ruleName,
91
91
  });
@@ -112,7 +112,7 @@ const ruleFunction = (primaryOption, secondaryOption) => {
112
112
  messageArgs: [attribute, tagName],
113
113
  node: rule,
114
114
  index: node.sourceIndex,
115
- endIndex: node.sourceIndex + attribute.length,
115
+ endIndex: node.sourceIndex + node.toString().trim().length,
116
116
  result: postcssResult,
117
117
  ruleName,
118
118
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrhenry/stylelint-mrhenry-attribute-selector-no-unknown",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "Warn when unknown attribute selectors are used",
5
5
  "type": "module",
6
6
  "main": "index.mjs",
@@ -28,12 +28,12 @@
28
28
  "stylelint-plugin"
29
29
  ],
30
30
  "dependencies": {
31
- "postcss-selector-parser": "^7.0.0"
31
+ "postcss-selector-parser": "^7.1.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "stylelint": "^16.10.0"
34
+ "stylelint": "^16.14.1"
35
35
  },
36
36
  "devDependencies": {
37
- "stylelint": "^16.10.0"
37
+ "stylelint": "^16.14.1"
38
38
  }
39
39
  }