@7n/rules 1.87.0 → 1.87.1
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7n/rules",
|
|
3
|
-
"version": "1.87.
|
|
3
|
+
"version": "1.87.1",
|
|
4
4
|
"description": "CLI еталонних правил і skills (префікс n-): синк у репозиторій, дельта-lint, конформність",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"rename-yaml-extensions": "bun ./bin/n-rules.js rename-yaml-extensions"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@7n/llm-lib": "3.0.
|
|
69
|
+
"@7n/llm-lib": "3.0.1",
|
|
70
70
|
"ajv": "^8.20.0",
|
|
71
71
|
"cli-progress": "^3.12.0",
|
|
72
72
|
"github-actionlint": "^1.7.12",
|
|
@@ -108,7 +108,11 @@ export async function lint(ctx) {
|
|
|
108
108
|
// послідовний cat-file на запис дешевший за розбір бінарного `cat-file --batch`.
|
|
109
109
|
const blob = await spawnAsync(git, ['cat-file', 'blob', entry.sha], { cwd, signal: ctx.signal })
|
|
110
110
|
if (blob.exitCode !== 0) continue
|
|
111
|
-
|
|
111
|
+
// Хвостові переводи рядка зрізаємо циклом, а не регексом: `/\n+$/`
|
|
112
|
+
// позначений як super-linear (backtracking), а `trimEnd()` зʼїв би ще й
|
|
113
|
+
// пробіли — а вони в цілі симлінка значущі.
|
|
114
|
+
let target = blob.stdout
|
|
115
|
+
while (target.endsWith('\n')) target = target.slice(0, -1)
|
|
112
116
|
if (target.length === 0) continue
|
|
113
117
|
|
|
114
118
|
const absolute = isAbsoluteTarget(target)
|
|
Binary file
|