toolchain test

This commit is contained in:
2025-10-30 15:06:00 +00:00
parent 420927595d
commit 0bcba44b1d
4 changed files with 12 additions and 8 deletions

6
dist/index.cjs.js vendored
View File

@@ -8,8 +8,10 @@ class Updater {
this.feedType = feedType;
}
async getArchive() {
const res = await fetch(`${this.archiveURL}.${this.feedType}`);
console.log(res);
const res = await fetch(`${this.archiveURL}.${this.feedType}`, {
"mode": "cors"
});
return res;
}
}

2
dist/index.d.ts vendored
View File

@@ -2,5 +2,5 @@ export default class Updater {
archiveURL: string;
feedType: string;
constructor(archiveURL?: string, feedType?: string);
getArchive(): Promise<void>;
getArchive(): Promise<Response>;
}

6
dist/index.es.js vendored
View File

@@ -6,8 +6,10 @@ class Updater {
this.feedType = feedType;
}
async getArchive() {
const res = await fetch(`${this.archiveURL}.${this.feedType}`);
console.log(res);
const res = await fetch(`${this.archiveURL}.${this.feedType}`, {
"mode": "cors"
});
return res;
}
}

View File

@@ -6,11 +6,11 @@ export default class Updater {
this.feedType = feedType;
}
async getArchive(): Promise<void> {
async getArchive(): Promise<Response> {
const res = await fetch(`${this.archiveURL}.${this.feedType}`, {
"mode": "cors"
"mode": "cors"
});
console.log(res);
return res;
}
}