@nitra/cursor 1.35.3 → 1.35.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.35.4] - 2026-05-30
4
+
5
+ ### Changed
6
+
7
+ - fix: відновити for-loop із body.length у computeLineOffsets (String.prototype.entries не існує)
8
+
3
9
  ## [1.35.3] - 2026-05-30
4
10
 
5
11
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/cursor",
3
- "version": "1.35.3",
3
+ "version": "1.35.4",
4
4
  "description": "CLI для завантаження cursor-правил (префікс n-) у локальний репозиторій",
5
5
  "keywords": [
6
6
  "cli",
@@ -187,8 +187,8 @@ function findOffendersInBody(body) {
187
187
  */
188
188
  function computeLineOffsets(body) {
189
189
  const offsets = [0]
190
- for (const [i, element] of body.entries()) {
191
- if (element === '\n') offsets.push(i + 1)
190
+ for (let i = 0; i < body.length; i++) {
191
+ if (body[i] === '\n') offsets.push(i + 1)
192
192
  }
193
193
  return offsets
194
194
  }