toolchain test
This commit is contained in:
6
dist/index.cjs.js
vendored
6
dist/index.cjs.js
vendored
@@ -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
2
dist/index.d.ts
vendored
@@ -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
6
dist/index.es.js
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user