@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 +3 -0
- package/lib/M250_Npm.js +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
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