caccl-send-request
Advanced tools
Comparing version 1.0.4 to 1.0.5
11
index.js
@@ -21,3 +21,3 @@ const axios = require('axios'); | ||
* @param {boolean} [ignoreSSLIssues=false] - if true, ignores SSL certificate | ||
* issues | ||
* issues. If host is localhost:8088, this will default to true | ||
* @return {Promise.<CACCLErrror|object>} Returns { body, status, headers } on | ||
@@ -49,2 +49,9 @@ * success, CACCLError on failure | ||
// Default ignoreSSLIssues | ||
const ignoreSSLIssues = ( | ||
options.ignoreSSLIssues !== undefined | ||
? options.ignoreSSLIssues | ||
: options.host === 'localhost:8088' | ||
); | ||
// Create data (only if not GET) | ||
@@ -55,3 +62,3 @@ const data = (method !== 'GET' ? stringifiedParams : null); | ||
const httpsAgent = ( | ||
options.ignoreSSLIssues | ||
ignoreSSLIssues | ||
? ignoreSSLIssuesAgent | ||
@@ -58,0 +65,0 @@ : undefined |
{ | ||
"name": "caccl-send-request", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"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
6075
164