*Return shadow clone of data

This commit is contained in:
Derrick Hammer 2022-11-16 11:23:50 -05:00
parent 47eba446b7
commit 3196947071
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export default class DHTOnlineBase extends EventEmitter {
private _data: {};
get data(): {} {
return this._data;
return { ...this._data };
}
set data(value: {}) {