caccl-send-request
Advanced tools
Comparing version 2.2.5 to 2.2.6
@@ -59,4 +59,2 @@ "use strict"; | ||
var ErrorCode_1 = __importDefault(require("./ErrorCode")); | ||
// Check if we're currently in developer mode | ||
var thisIsDev = (process.env.NODE_ENV === 'development'); | ||
/** | ||
@@ -78,3 +76,3 @@ * Sends and retries an http request | ||
var sendRequest = function (opts) { return __awaiter(void 0, void 0, void 0, function () { | ||
var sendCrossDomainCredentials, numRetries, method, params, stringifiedParams, query, url, headers, data, encodedData, response, responseHeaders_1, responseBody, jsonErr_1, err_1; | ||
var thisIsDev, sendCrossDomainCredentials, numRetries, method, params, stringifiedParams, query, url, headers, data, encodedData, response, responseHeaders_1, responseBody, jsonErr_1, err_1; | ||
var _a; | ||
@@ -84,2 +82,3 @@ return __generator(this, function (_b) { | ||
case 0: | ||
thisIsDev = (opts.host === 'localhost:8080'); | ||
sendCrossDomainCredentials = !!(opts.sendCrossDomainCredentials | ||
@@ -86,0 +85,0 @@ || thisIsDev |
{ | ||
"name": "caccl-send-request", | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"description": "The default request sender used throughout the CACCL project.", | ||
@@ -39,5 +39,5 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"caccl-error": "^2.2.5", | ||
"caccl-error": "^2.2.6", | ||
"qs": "^6.9.6" | ||
} | ||
} |
@@ -10,5 +10,2 @@ // Import libs | ||
// Check if we're currently in developer mode | ||
const thisIsDev = (process.env.NODE_ENV === 'development'); | ||
/** | ||
@@ -44,2 +41,5 @@ * Sends and retries an http request | ||
}> => { | ||
// Check if we're currently in developer mode | ||
const thisIsDev = (opts.host === 'localhost:8080'); | ||
// Check if we should be including credentials | ||
@@ -46,0 +46,0 @@ const sendCrossDomainCredentials = !!( |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
23921
494
Updatedcaccl-error@^2.2.6