caccl-send-request
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,5 +0,6 @@ | ||
// Highest error code: CSR1 | ||
// Highest error code: CSR2 | ||
module.exports = { | ||
notConnected: 'CSR1', | ||
selfSigned: 'CSR2', | ||
}; |
@@ -84,2 +84,10 @@ const axios = require('axios'); | ||
// Self-signed certificate error: | ||
if (err.message.includes('self signed certificate')) { | ||
throw new CACCLError({ | ||
message: 'We refused to send a request because the receiver has self-signed certificates.', | ||
code: errorCodes.selfSigned, | ||
}) | ||
} | ||
// No tries left | ||
@@ -86,0 +94,0 @@ throw new CACCLError({ |
{ | ||
"name": "caccl-send-request", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "The default request sender used throughout the CACCL project.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
5849
158