@iobroker/repochecker 3.1.1 → 3.1.3
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 +6 -0
- package/lib/M000_PackageJson.js +1 -1
- package/lib/M250_Npm.js +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,12 @@ Branch (`master/main/dev`) is optional.
|
|
|
20
20
|
-->
|
|
21
21
|
|
|
22
22
|
## Changelog
|
|
23
|
+
### 3.1.3 (2024-10-11)
|
|
24
|
+
* (mcm1957) Checker no longer crash id no npm package exists.
|
|
25
|
+
|
|
26
|
+
### 3.1.2 (2024-10-04)
|
|
27
|
+
* (mcm1957) Require node 18 minimum as engines clause.
|
|
28
|
+
|
|
23
29
|
### 3.1.1 (2024-10-04)
|
|
24
30
|
* (mcm1957) "[E166] 'common.mode: extension' is unknown" has been fixed [#308]
|
|
25
31
|
* (mcm1957) "[E904] file iob_npm.done found in repository, but not found in .gitignore" removed as covered by [E503]. [#309]
|
package/lib/M000_PackageJson.js
CHANGED
|
@@ -12,7 +12,7 @@ const compareVersions = require('compare-versions');
|
|
|
12
12
|
const common = require('./common.js');
|
|
13
13
|
|
|
14
14
|
const recommendedNodeVersion = '18'; // This is the minimum node version that should be required
|
|
15
|
-
const requiredNodeVersion = '
|
|
15
|
+
const requiredNodeVersion = '18'; // This is the minimum node version that must be required
|
|
16
16
|
|
|
17
17
|
/* TODO: configuration should be moved to context */
|
|
18
18
|
|
package/lib/M250_Npm.js
CHANGED
|
@@ -23,8 +23,13 @@ axios.defaults.headers = {
|
|
|
23
23
|
|
|
24
24
|
async function checkNpm(context) {
|
|
25
25
|
console.log('\ncheckNpm [E250 - 299]');
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
let body;
|
|
27
|
+
try {
|
|
28
|
+
const response = await axios(`https://registry.npmjs.org/iobroker.${context.adapterName}`)
|
|
29
|
+
body = response.data;
|
|
30
|
+
} catch (e) {
|
|
31
|
+
/* */
|
|
32
|
+
}
|
|
28
33
|
// bug in NPM some modules could be accessed via normal web page, but not by API
|
|
29
34
|
if (!body) {
|
|
30
35
|
try {
|
package/package.json
CHANGED