@abtnode/util
Advanced tools
Comparing version 1.0.35 to 1.0.36
@@ -50,2 +50,5 @@ module.exports = Object.freeze({ | ||
DOMAIN_FOR_DEFAULT_SITE: '*', | ||
DOMAIN_FOR_INTERNAL_SITE: '127.0.0.1', | ||
NAME_FOR_WELLKNOWN_SITE: 'wellknown', | ||
WELLKNOWN_PATH_PREFIX: '/.well-known', | ||
@@ -52,0 +55,0 @@ DEFAULT_ADMIN_PATH: '/admin', |
@@ -43,7 +43,6 @@ const axios = require('axios'); | ||
} catch (err) { | ||
if (err.response) { | ||
if (err.response.status >= 500) { | ||
throw err; | ||
} | ||
} else { | ||
if ( | ||
!err.response | ||
|| err.response.status >= 500 | ||
) { | ||
throw err; | ||
@@ -64,3 +63,3 @@ } | ||
if (timeout < minConsecutiveTime) { | ||
throw new Error('timeout should not less than minConsecutiveTime'); | ||
throw new Error(`timeout should not less than ${minConsecutiveTime}ms`); | ||
} | ||
@@ -67,0 +66,0 @@ |
@@ -18,2 +18,3 @@ const pkg = require('../package.json'); | ||
const downloadFile = require('./download_file'); | ||
const strongAxios = require('./strong-axios'); | ||
@@ -48,2 +49,3 @@ const constants = require('./constants'); | ||
downloadFile, | ||
strongAxios, | ||
}; |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.0.35", | ||
"version": "1.0.36", | ||
"description": "ArcBlock's JavaScript utility", | ||
@@ -48,3 +48,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "6e43effd4f97568fe09721e158cdf9bd79ff9002" | ||
"gitHead": "e73fc2ca1eb96d0cb3a292b95a3230708c0f43c7" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 4 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22534
28
628
5