Skip to content

Commit

Permalink
Fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Sep 8, 2024
1 parent db19212 commit 4c30e90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ const exfetch: ExFetch = new ExFetch({
});
const splitterNewLine = /\r?\n/g;
const splitterCommonDelimiter = /,|\r?\n/g;
console.log("Parse input.");
writeDebug(`Environment Variables:\n\t${Object.entries(Deno.env.toObject()).map(([key, value]: [string, string]): string => {
return `${key} = ${value}`;
}).join("\n\t")}`);
console.log("Parse input.");
try {
const truncateEnable: boolean = getInputBoolean("truncate_enable", { defaultValue: true });
const stringTruncator: StringTruncator | undefined = truncateEnable ? new StringTruncator(128, {
Expand All @@ -69,7 +69,7 @@ try {
}).filter((file: string): boolean => {
return (file.length > 0);
}), getInputBoolean("files_glob", { defaultValue: true }));
const allowedMentionsParse: string[] = resolveMentionsType(getInput("allowed_mentions_parse").split(splitterCommonDelimiter).map((value: string): string => {
const allowedMentionsParse: string[] = resolveMentionsType(getInput("allowed_mentions_parse", { defaultValue: "everyone,roles,users" }).split(splitterCommonDelimiter).map((value: string): string => {
return value.trim();
}).filter((value: string): boolean => {
return (value.length > 0);
Expand Down Expand Up @@ -162,7 +162,7 @@ try {
requestHeaders.set("Content-Type", "multipart/form-data");
const result: FormData = (typeof files === "undefined") ? new FormData() : files;
result.append("payload_json", requestPayloadStringify);
writeDebug(`Body:\n\t${Array.from(result.entries(),([key,value]:[string, FormDataEntryValue])=>{
writeDebug(`Body:\n\t${Array.from(result.entries(), ([key, value]: [string, FormDataEntryValue]): string => {
return `${key} = ${value}`;
}).join("\n\t")}`);
return result;
Expand Down

0 comments on commit 4c30e90

Please sign in to comment.