From 524267fc934e47b8645273455745c76667a856b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kol=C3=A1rik?= Date: Tue, 26 Nov 2024 18:15:46 +0100 Subject: [PATCH] misc: update links --- packages/bot-utils/src/utils.ts | 2 +- packages/slack/src/response.ts | 2 +- packages/slack/src/routes.ts | 2 +- packages/slack/src/tests/response.test.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/bot-utils/src/utils.ts b/packages/bot-utils/src/utils.ts index 5fb22c8..c4a45cd 100644 --- a/packages/bot-utils/src/utils.ts +++ b/packages/bot-utils/src/utils.ts @@ -87,7 +87,7 @@ dns jsdelivr.com from aws+montreal --latency export const httpHelpTexts = { preamble: `The http command sends an HTTP request to a host and can perform HEAD or GET operations. GET is limited to 10KB responses, everything above will be cut by the API. Detailed performance stats as available for every request. The tool supports 2 formats for this command: -When the full url is supplied, the tool autoparses the scheme, host, port, domain, path and query. For example: +When the full url is supplied, the tool automatically parses the scheme, host, port, domain, path and query. For example: \`\`\` http https://www.jsdelivr.com:443/package/npm/test?nav=stats \`\`\` diff --git a/packages/slack/src/response.ts b/packages/slack/src/response.ts index d534aa0..29b21d6 100644 --- a/packages/slack/src/response.ts +++ b/packages/slack/src/response.ts @@ -20,7 +20,7 @@ export function responseHeader ( } export function resultsLink (id: string, isSlackLink: boolean): string { - const url = `https://www.jsdelivr.com/globalping?measurement=${id}`; + const url = `https://globalping.io?measurement=${id}`; return isSlackLink ? `<${url}>` : `[${url}](${url})`; } diff --git a/packages/slack/src/routes.ts b/packages/slack/src/routes.ts index 36061d4..a179cc6 100644 --- a/packages/slack/src/routes.ts +++ b/packages/slack/src/routes.ts @@ -40,7 +40,7 @@ export const routes: CustomRoute[] = [ try { res .writeHead(301, { - Location: 'https://www.jsdelivr.com/globalping', + Location: 'https://globalping.io', }) .end(); } catch (error) { diff --git a/packages/slack/src/tests/response.test.ts b/packages/slack/src/tests/response.test.ts index 3b98add..a66bd1c 100644 --- a/packages/slack/src/tests/response.test.ts +++ b/packages/slack/src/tests/response.test.ts @@ -14,7 +14,7 @@ describe('Response', () => { it('ok', () => { const id = 'abc123'; const text = shareMessageFooter(id, boldSeparator, true); - expect(text).to.equal('>*View the results online: *\n'); + expect(text).to.equal('>*View the results online: *\n'); }); }); @@ -22,7 +22,7 @@ describe('Response', () => { it('ok', () => { const id = 'abc123'; const text = fullResultsFooter(id, boldSeparator, true); - expect(text).to.equal('>*Full results available here: *\n'); + expect(text).to.equal('>*Full results available here: *\n'); }); });