From 9ca320907e5fd2fa37f58bf389acaaa2d9439fa5 Mon Sep 17 00:00:00 2001 From: chopster44 Date: Thu, 30 Oct 2025 22:50:52 +0000 Subject: [PATCH] use a cors proxy to avoid rss feed fetch issues --- README.md | 6 +++++- package.json | 2 +- src/index.ts | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 69f7e5e..e1aed48 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ -# UpdaterWebLibrary +# Updater Web Library +## If you are seeing this from the npm repository +you can view the source [here](https://git.emaker.limited/MicrocontrollerCD/UpdaterWebLibrary) + +## Info A library for the updater to be used by the user through an app or website \ No newline at end of file diff --git a/package.json b/package.json index 2eebddc..6e9669e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "updaterweblibrary", - "version": "1.0.4", + "version": "1.0.5", "description": "OTA Updater App frontend library", "repository": { "type": "git", diff --git a/src/index.ts b/src/index.ts index 49b6a7c..a8889e0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,7 +10,7 @@ export default class Updater { } private async getRawArchive(): Promise { - const res = await fetch(`${this.archiveURL}.${this.feedType}`, { + const res = await fetch(`https://cors.emaker.limited/?url=${this.archiveURL}.${this.feedType}`, { "mode": "cors" }); const text = await res.text();