caccl-send-request
Advanced tools
Comparing version 2.2.11 to 2.2.12
@@ -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
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
25346
12
524
Updatedcaccl-error@^2.2.12