init repo
This commit is contained in:
8 files changed
+130
No files matched your search
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
class Updater {
|
||||
archiveURL;
|
||||
feedType;
|
||||
constructor(archiveURL = "/", feedType = "rss") {
|
||||
this.archiveURL = archiveURL;
|
||||
this.feedType = feedType;
|
||||
}
|
||||
async getArchive() {
|
||||
const res = await fetch(`${this.archiveURL}.${this.feedType}`);
|
||||
console.log(res);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Updater;
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
export default class Updater {
|
||||
archiveURL: string;
|
||||
feedType: string;
|
||||
constructor(archiveURL?: string, feedType?: string);
|
||||
getArchive(): Promise<void>;
|
||||
}
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
class Updater {
|
||||
archiveURL;
|
||||
feedType;
|
||||
constructor(archiveURL = "/", feedType = "rss") {
|
||||
this.archiveURL = archiveURL;
|
||||
this.feedType = feedType;
|
||||
}
|
||||
async getArchive() {
|
||||
const res = await fetch(`${this.archiveURL}.${this.feedType}`);
|
||||
console.log(res);
|
||||
}
|
||||
}
|
||||
|
||||
export { Updater as default };
|
||||
Reference in new issue
Block a user