From 024dd90f4690f4617bcfddb12e1285ff97038139 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Fri, 4 Oct 2024 16:24:15 +0900 Subject: [PATCH] chore: rolled back to manifest.json endpoint --- src/github/utils/plugins.ts | 2 +- tests/events.test.ts | 2 +- tests/main.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/github/utils/plugins.ts b/src/github/utils/plugins.ts index 2c8a034..a084694 100644 --- a/src/github/utils/plugins.ts +++ b/src/github/utils/plugins.ts @@ -45,7 +45,7 @@ async function fetchWorkerManifest(url: string): Promise { if (_manifestCache[url]) { return _manifestCache[url]; } - const manifestUrl = `${url}/manifest`; + const manifestUrl = `${url}/manifest.json`; try { const result = await fetch(manifestUrl); const manifest = decodeManifest(await result.json()); diff --git a/tests/events.test.ts b/tests/events.test.ts index b5f16d7..bf4ee9e 100644 --- a/tests/events.test.ts +++ b/tests/events.test.ts @@ -30,7 +30,7 @@ afterAll(() => { describe("Event related tests", () => { beforeEach(() => { server.use( - http.get("https://plugin-a.internal/manifest", () => + http.get("https://plugin-a.internal/manifest.json", () => HttpResponse.json({ name: "plugin", commands: { diff --git a/tests/main.test.ts b/tests/main.test.ts index 8a3eb7d..3749fa2 100644 --- a/tests/main.test.ts +++ b/tests/main.test.ts @@ -37,7 +37,7 @@ afterAll(() => { describe("Worker tests", () => { beforeEach(() => { server.use( - http.get("https://plugin-a.internal/manifest", () => + http.get("https://plugin-a.internal/manifest.json", () => HttpResponse.json({ name: "plugin", commands: {