Socket
Socket
Sign inDemoInstall

caccl-send-request

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caccl-send-request - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

3

errorCodes.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc