From bc43aa4ea1e379e88061606e7b3e984fdc944ad8 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 8 Mar 2024 04:17:05 +0000 Subject: [PATCH] Update bundle based on commit ac3d3186ad2e2b2e060591d0fffed768f8ecb38f --- dist/main.js | 5 ++--- node_modules/.package-lock.json | 2 +- package.json | 7 ++++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/main.js b/dist/main.js index 82216e46..e8af78e3 100644 --- a/dist/main.js +++ b/dist/main.js @@ -435,7 +435,7 @@ try { return methodRaw; })(); const requestHeaders = new Headers({ - "User-Agent": `NodeJS/${process.versions.node}-${process.platform}-${process.arch} SendDiscordWebhook.GitHubAction/6.0.1` + "User-Agent": `NodeJS/${process.versions.node}-${process.platform}-${process.arch} SendDiscordWebhook.GitHubAction/6.0.2` }); const requestPayload = { tts, @@ -467,6 +467,7 @@ try { requestPayload.thread_name = threadName; } const requestPayloadStringify = JSON.stringify(requestPayload); + ghactionsDebug(`Payload: ${requestPayloadStringify}`); const requestQuery = discordWebhookURLQuery.toString(); const requestBody = await (async () => { switch (method) { @@ -482,12 +483,10 @@ try { } requestForm.append("attachments", JSON.stringify(attachments)); requestForm.append("payload_json", requestPayloadStringify); - ghactionsDebug(`FormData: ${requestForm.toString()}`); return requestForm; } case "json": requestHeaders.set("Content-Type", "application/json"); - ghactionsDebug(`Payload: ${requestPayloadStringify}`); return requestPayloadStringify; default: throw new Error(`\`${method}\` is not a valid method!`); diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 248c16ce..809f277b 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1,6 +1,6 @@ { "name": "@hugoalh/send-discord-webhook-ghaction", - "version": "6.0.1", + "version": "6.0.2", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index d160f962..30147d83 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,12 @@ { "name": "@hugoalh/send-discord-webhook-ghaction", - "version": "6.0.1", + "version": "6.0.2", "description": "A GitHub Action to send a Discord webhook.", "keywords": [ - "github-action", "discord", - "send", + "gh-action", + "ghaction", + "github-action", "webhook" ], "homepage": "https://github.com/hugoalh/send-discord-webhook-ghaction#readme",