@iobroker/repochecker 3.5.3 → 3.5.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 +3 -0
- package/lib/M100_IOPackageJson.js +7 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -33,6 +33,9 @@ npx @iobroker/repochecker https://github.com/ioBroker/ioBroker.javascript --loca
|
|
|
33
33
|
-->
|
|
34
34
|
|
|
35
35
|
## Changelog
|
|
36
|
+
### 3.5.4 (2025-03-03)
|
|
37
|
+
- (mcm1957) Ignore boolean paramters when checking protectedNative/encryptedNative. [#395]
|
|
38
|
+
|
|
36
39
|
### 3.5.3 (2025-02-21)
|
|
37
40
|
|
|
38
41
|
- (mcm1957) Crash has been fixed if protectedNative/encryptedNative is not an array. [#385]
|
|
@@ -127,8 +127,13 @@ async function checkIOPackageJson(context) {
|
|
|
127
127
|
const regex = new RegExp(suspiciousPhrases.join('|'), 'i');
|
|
128
128
|
const nativeKeys = Object.keys(context.ioPackageJson.native) || [];
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
common.debug(`Suspicious key test: native: ${nativeKeys}
|
|
130
|
+
let suspiciousKeys = nativeKeys.filter(key => regex.test(key.toLowerCase()));
|
|
131
|
+
common.debug(`Suspicious key test: native: ${nativeKeys}`);
|
|
132
|
+
common.debug(`Suspicious key test: suspiciousKeys (unfiltered): ${suspiciousKeys}`);
|
|
133
|
+
if (suspiciousKeys.length) {
|
|
134
|
+
suspiciousKeys = suspiciousKeys.filter(key => typeof context.ioPackageJson.native[key] !== 'boolean');
|
|
135
|
+
common.debug(`Suspicious key test: suspiciousKeys (filtered): ${suspiciousKeys}`);
|
|
136
|
+
}
|
|
132
137
|
if (suspiciousKeys.length) {
|
|
133
138
|
if (context.ioPackageJson.protectedNative) {
|
|
134
139
|
const missingProtected = suspiciousKeys.filter(
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.5.
|
|
2
|
+
"version": "3.5.4",
|
|
3
3
|
"name": "@iobroker/repochecker",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@alcalzone/release-script": "^3.8.0",
|
|
6
6
|
"@iobroker/eslint-config": "^1.0.0",
|
|
7
7
|
"@tsconfig/node20": "^20.1.4",
|
|
8
|
-
"@types/node": "^22.13.
|
|
8
|
+
"@types/node": "^22.13.7",
|
|
9
9
|
"@types/semver": "^7.5.8"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|