@iobroker/repochecker 5.20.3 → 5.20.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/README.md +4 -0
- package/lib/M6000_Readme.js +10 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -31,6 +31,10 @@ Example:
|
|
|
31
31
|
Placeholder for the next version (at the beginning of the line):
|
|
32
32
|
### **WORK IN PROGRESS**
|
|
33
33
|
-->
|
|
34
|
+
### 5.20.4 (2026-08-08)
|
|
35
|
+
|
|
36
|
+
* (mcm1957) Fixed `[E6012]`/`[E6013]` not being raised when direct install commands (e.g. `npm install` or `cd /opt/iobroker`) are placed inside fenced code blocks in README.md.
|
|
37
|
+
|
|
34
38
|
### 5.20.3 (2026-08-07)
|
|
35
39
|
|
|
36
40
|
* (mcm1957) Fixed false positive `[S9508]` (and related packaging/i18n checks): negation entries (e.g. `!CHANGELOG_OLD.md`) in package.json `"files"` are now handled as exclusions instead of being wrongly matched. Related to #1097 and #1072.
|
package/lib/M6000_Readme.js
CHANGED
|
@@ -240,18 +240,21 @@ function stripMarkdownForLanguageDetection(text) {
|
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Strip markdown inline formatting for install-instruction text scanning.
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
* text
|
|
243
|
+
* Keeps the content of fenced/inline code (install commands like `npm install`
|
|
244
|
+
* or `cd /opt/iobroker` are normally placed inside ``` fences and must still be
|
|
245
|
+
* detected), expands links to "text URL" so that URL checks still work, and
|
|
246
|
+
* removes bold/italic emphasis markers so that formatted text like
|
|
247
|
+
* `install from **[GitHub](url)**` is still detected.
|
|
246
248
|
*
|
|
247
249
|
* @param {string} text - Raw markdown text
|
|
248
250
|
* @returns {string} Text with inline formatting stripped
|
|
249
251
|
*/
|
|
250
252
|
function stripMarkdownInlineFormatting(text) {
|
|
251
|
-
// Remove fenced code
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
// Remove fenced code block delimiter lines (``` and ```lang) but KEEP the
|
|
254
|
+
// enclosed content so shell install commands remain scannable.
|
|
255
|
+
text = text.replace(/^[ \t]*```[^\n]*$/gm, '');
|
|
256
|
+
// Remove inline code backticks but keep the content
|
|
257
|
+
text = text.replace(/`/g, '');
|
|
255
258
|
// Expand links [text](url) -> "text url" (preserve both visible text and URL for checks)
|
|
256
259
|
text = text.replace(/\[([^\]]*)\]\(([^)]*)\)/g, '$1 $2');
|
|
257
260
|
// Remove bold+italic (***) and bold (**) markers
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.20.
|
|
2
|
+
"version": "5.20.4",
|
|
3
3
|
"name": "@iobroker/repochecker",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"ajv": "^8.20.0",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@alcalzone/release-script": "^5.2.1",
|
|
16
16
|
"@iobroker/eslint-config": "^2.3.4",
|
|
17
17
|
"@tsconfig/node20": "^20.1.9",
|
|
18
|
-
"@types/node": "^
|
|
18
|
+
"@types/node": "^26.1.2",
|
|
19
19
|
"@types/semver": "^7.7.1"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|