DNS stuff

This commit is contained in:
2024-08-10 17:47:44 -04:00
parent 92df05540b
commit 3df3341235
12 changed files with 587 additions and 11 deletions
+12
View File
@@ -22,6 +22,7 @@ class Table{
static async get(index){
try{
if(typeof index === 'object'){
index = index[this._key];
}
@@ -210,6 +211,17 @@ class Table{
}
};
toJSON(){
let result = {};
for (const [key, keyProps] of Object.entries(this.constructor._keyMap)) {
if(!keyProps.isPrivate) result[key] = this[key];
}
return result
// return JSON.stringify(result);
}
}