Skip to content

Commit

Permalink
chore: committing generated dist
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] committed Feb 12, 2024
1 parent 9940f7e commit 18fac90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions dist/832.index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3929,7 +3929,7 @@ var import_endpoint = __webpack_require__(9440);
var import_universal_user_agent = __webpack_require__(5030);

// pkg/dist-src/version.js
var VERSION = "8.1.6";
var VERSION = "8.2.0";

// pkg/dist-src/is-plain-object.js
function isPlainObject(value) {
Expand Down Expand Up @@ -4073,11 +4073,17 @@ async function getResponseData(response) {
function toErrorMessage(data) {
if (typeof data === "string")
return data;
let suffix;
if ("documentation_url" in data) {
suffix = ` - ${data.documentation_url}`;
} else {
suffix = "";
}
if ("message" in data) {
if (Array.isArray(data.errors)) {
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}`;
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
}
return data.message;
return `${data.message}${suffix}`;
}
return `Unknown error: ${JSON.stringify(data)}`;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/832.index.js.map

Large diffs are not rendered by default.

0 comments on commit 18fac90

Please sign in to comment.