DNS stuff
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user