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 2.2.5 to 2.2.6

5

lib/index.js

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

4

package.json
{
"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

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