Skip to content

Commit 3537993

Browse files
committed
bump deps
1 parent 33e42d0 commit 3537993

File tree

3 files changed

+214
-200
lines changed

3 files changed

+214
-200
lines changed

dist/index.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5996,7 +5996,7 @@ var import_endpoint = __nccwpck_require__(9440);
59965996
var import_universal_user_agent = __nccwpck_require__(5030);
59975997

59985998
// pkg/dist-src/version.js
5999-
var VERSION = "8.1.6";
5999+
var VERSION = "8.2.0";
60006000

60016001
// pkg/dist-src/is-plain-object.js
60026002
function isPlainObject(value) {
@@ -6140,11 +6140,17 @@ async function getResponseData(response) {
61406140
function toErrorMessage(data) {
61416141
if (typeof data === "string")
61426142
return data;
6143+
let suffix;
6144+
if ("documentation_url" in data) {
6145+
suffix = ` - ${data.documentation_url}`;
6146+
} else {
6147+
suffix = "";
6148+
}
61436149
if ("message" in data) {
61446150
if (Array.isArray(data.errors)) {
6145-
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}`;
6151+
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
61466152
}
6147-
return data.message;
6153+
return `${data.message}${suffix}`;
61486154
}
61496155
return `Unknown error: ${JSON.stringify(data)}`;
61506156
}

0 commit comments

Comments
 (0)