@iobroker/repochecker 3.1.2 → 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 CHANGED
@@ -20,6 +20,9 @@ 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
+
23
26
  ### 3.1.2 (2024-10-04)
24
27
  * (mcm1957) Require node 18 minimum as engines clause.
25
28
 
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
- const response = await axios(`https://registry.npmjs.org/iobroker.${context.adapterName}`)
27
- let body = response.data;
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.1.2",
2
+ "version": "3.1.3",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "axios": "^1.7.7",