@iobroker/repochecker 5.17.4 → 5.17.5
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 +6 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,10 @@ Example:
|
|
|
25
25
|
Placeholder for the next version (at the beginning of the line):
|
|
26
26
|
### **WORK IN PROGRESS**
|
|
27
27
|
-->
|
|
28
|
+
### 5.17.5 (2026-06-02)
|
|
29
|
+
|
|
30
|
+
- (mcm1957) Minor checkings at README formatting have been done.
|
|
31
|
+
|
|
28
32
|
### 5.17.4 (2026-05-31)
|
|
29
33
|
|
|
30
34
|
- (mcm1957) default value for engines corrected.
|
package/lib/M6000_Readme.js
CHANGED
|
@@ -87,9 +87,11 @@ const SENTRY_NOTICE_TEXT_1 =
|
|
|
87
87
|
'**This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.**';
|
|
88
88
|
const SENTRY_NOTICE_TEXT_2 =
|
|
89
89
|
'This adapter uses the service `Sentry.io` to automatically report exceptions and code errors';
|
|
90
|
+
const SENTRY_NOTICE_TEXT_3 =
|
|
91
|
+
'This adapter employs Sentry libraries to automatically report exceptions and code errors to the developers.';
|
|
90
92
|
const MARKDOWN_H1_REGEX = /^#\s+.+$/gm;
|
|
91
93
|
const MARKDOWN_H2_REGEX = /^##\s+.+$/gm;
|
|
92
|
-
const THIRD_H2_HEADER_INDEX =
|
|
94
|
+
const THIRD_H2_HEADER_INDEX = 4;
|
|
93
95
|
|
|
94
96
|
/**
|
|
95
97
|
* Search for all German words from the blacklist in the given text.
|
|
@@ -258,9 +260,10 @@ function escapeRegExp(text) {
|
|
|
258
260
|
// Allow flexible whitespace so the required notice still matches if it is wrapped across lines in README.md.
|
|
259
261
|
const SENTRY_NOTICE_REGEX_1 = new RegExp(escapeRegExp(SENTRY_NOTICE_TEXT_1).replace(/\s+/g, '\\s+'));
|
|
260
262
|
const SENTRY_NOTICE_REGEX_2 = new RegExp(escapeRegExp(SENTRY_NOTICE_TEXT_2).replace(/\s+/g, '\\s+'));
|
|
263
|
+
const SENTRY_NOTICE_REGEX_3 = new RegExp(escapeRegExp(SENTRY_NOTICE_TEXT_3).replace(/\s+/g, '\\s+'));
|
|
261
264
|
|
|
262
265
|
function getSentryNoticeMatch(text) {
|
|
263
|
-
return SENTRY_NOTICE_REGEX_1.exec(text) || SENTRY_NOTICE_REGEX_2.exec(text);
|
|
266
|
+
return SENTRY_NOTICE_REGEX_1.exec(text) || SENTRY_NOTICE_REGEX_2.exec(text) || SENTRY_NOTICE_REGEX_3.exec(text);
|
|
264
267
|
}
|
|
265
268
|
|
|
266
269
|
function getAuthor(author) {
|
|
@@ -384,7 +387,7 @@ async function checkReadme(context) {
|
|
|
384
387
|
for (const header of changelogHeaders) {
|
|
385
388
|
const match = /^(\d+\.\d+\.\d+)(?:\s+.*)?$/.exec(header);
|
|
386
389
|
if (!match) {
|
|
387
|
-
if (!header.includes('WORK IN PROGRESS')) {
|
|
390
|
+
if (!header.includes('WORK IN PROGRESS') && !header.includes('CHANGELOG_OLD.md')) {
|
|
388
391
|
invalidVersionHeaders.push(header);
|
|
389
392
|
}
|
|
390
393
|
} else {
|
package/package.json
CHANGED