toolchain test
This commit is contained in:
4 files changed
+11
-7
No files matched your search
Vendored
+4
-2
@@ -8,8 +8,10 @@ class Updater {
|
|||||||
this.feedType = feedType;
|
this.feedType = feedType;
|
||||||
}
|
}
|
||||||
async getArchive() {
|
async getArchive() {
|
||||||
const res = await fetch(`${this.archiveURL}.${this.feedType}`);
|
const res = await fetch(`${this.archiveURL}.${this.feedType}`, {
|
||||||
console.log(res);
|
"mode": "cors"
|
||||||
|
});
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
@@ -2,5 +2,5 @@ export default class Updater {
|
|||||||
archiveURL: string;
|
archiveURL: string;
|
||||||
feedType: string;
|
feedType: string;
|
||||||
constructor(archiveURL?: string, feedType?: string);
|
constructor(archiveURL?: string, feedType?: string);
|
||||||
getArchive(): Promise<void>;
|
getArchive(): Promise<Response>;
|
||||||
}
|
}
|
||||||
Vendored
+4
-2
@@ -6,8 +6,10 @@ class Updater {
|
|||||||
this.feedType = feedType;
|
this.feedType = feedType;
|
||||||
}
|
}
|
||||||
async getArchive() {
|
async getArchive() {
|
||||||
const res = await fetch(`${this.archiveURL}.${this.feedType}`);
|
const res = await fetch(`${this.archiveURL}.${this.feedType}`, {
|
||||||
console.log(res);
|
"mode": "cors"
|
||||||
|
});
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -6,11 +6,11 @@ export default class Updater {
|
|||||||
this.feedType = feedType;
|
this.feedType = feedType;
|
||||||
}
|
}
|
||||||
|
|
||||||
async getArchive(): Promise<void> {
|
async getArchive(): Promise<Response> {
|
||||||
const res = await fetch(`${this.archiveURL}.${this.feedType}`, {
|
const res = await fetch(`${this.archiveURL}.${this.feedType}`, {
|
||||||
"mode": "cors"
|
"mode": "cors"
|
||||||
});
|
});
|
||||||
console.log(res);
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user