quidproquo-actionprocessor-node
Advanced tools
Comparing version 0.0.22 to 0.0.24
@@ -19,2 +19,6 @@ "use strict"; | ||
timeout: 10000, | ||
headers: { | ||
// Fixes: https://github.com/axios/axios/issues/5346 | ||
'Accept-Encoding': 'gzip,deflate,compress', | ||
}, | ||
}); | ||
@@ -95,9 +99,15 @@ const processNetworkRequestGet = (payload) => __awaiter(void 0, void 0, void 0, function* () { | ||
} | ||
const response = yield requestMethod(payload); | ||
return (0, quidproquo_core_1.actionResult)({ | ||
headers: response.headers, | ||
status: response.status, | ||
statusText: response.statusText, | ||
data: response.data, | ||
}); | ||
try { | ||
const response = yield requestMethod(payload); | ||
return (0, quidproquo_core_1.actionResult)({ | ||
headers: response.headers, | ||
status: response.status, | ||
statusText: response.statusText, | ||
data: response.data, | ||
}); | ||
} | ||
catch (err) { | ||
console.log(err); | ||
return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.GenericError, err.stack); | ||
} | ||
}); | ||
@@ -104,0 +114,0 @@ exports.default = { |
{ | ||
"name": "quidproquo-actionprocessor-node", | ||
"version": "0.0.22", | ||
"version": "0.0.24", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/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
18692
340