@pipedream/platform
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -107,2 +107,3 @@ "use strict"; | ||
if (err.response) { | ||
convertAxiosError(err); | ||
stepExport(step, err.response, "debug"); | ||
@@ -125,1 +126,7 @@ } | ||
} | ||
function convertAxiosError(err) { | ||
delete err.response.request; | ||
err.name = `${err.name} - ${err.message}`; | ||
err.message = JSON.stringify(err.response.data); | ||
return err; | ||
} |
@@ -110,2 +110,3 @@ import axios from "axios"; | ||
if (err.response) { | ||
convertAxiosError(err); | ||
stepExport(step, err.response, "debug"); | ||
@@ -130,1 +131,8 @@ } | ||
} | ||
function convertAxiosError(err) { | ||
delete err.response.request; | ||
err.name = `${err.name} - ${err.message}`; | ||
err.message = JSON.stringify(err.response.data); | ||
return err; | ||
} |
{ | ||
"name": "@pipedream/platform", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Pipedream platform globals (typing and runtime type checking)", | ||
@@ -5,0 +5,0 @@ "homepage": "https://pipedream.com", |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
38442
1009
1
80