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.11 to 2.2.12

3

lib/index.d.ts

@@ -1,2 +0,1 @@

import ResponseType from './types/ResponseType';
/**

@@ -31,3 +30,3 @@ * Sends and retries an http request

sendCrossDomainCredentials?: boolean;
responseType?: ResponseType;
responseType?: 'Text' | 'JSON';
}) => Promise<{

@@ -34,0 +33,0 @@ body: any;

@@ -59,3 +59,2 @@ "use strict";

var ErrorCode_1 = __importDefault(require("./types/ErrorCode"));
var ResponseType_1 = __importDefault(require("./types/ResponseType"));
/**

@@ -161,3 +160,3 @@ * Sends and retries an http request

if (!(opts.responseType
&& opts.responseType === ResponseType_1.default.Text)) return [3 /*break*/, 5];
&& opts.responseType === 'Text')) return [3 /*break*/, 5];
return [4 /*yield*/, response.text()];

@@ -164,0 +163,0 @@ case 4:

{
"name": "caccl-send-request",
"version": "2.2.11",
"version": "2.2.12",
"description": "The default request sender used throughout the CACCL project.",

@@ -39,5 +39,5 @@ "main": "./lib/index.js",

"dependencies": {
"caccl-error": "^2.2.11",
"caccl-error": "^2.2.12",
"qs": "^6.9.6"
}
}

@@ -9,3 +9,2 @@ // Import libs

import ErrorCode from './types/ErrorCode';
import ResponseType from './types/ResponseType';

@@ -38,3 +37,3 @@ /**

sendCrossDomainCredentials?: boolean,
responseType?: ResponseType,
responseType?: 'Text' | 'JSON',
},

@@ -153,3 +152,3 @@ ): Promise<{

opts.responseType
&& opts.responseType === ResponseType.Text
&& opts.responseType === 'Text'
) {

@@ -156,0 +155,0 @@ // Response type is text

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