Compare commits

..

2 Commits

Author SHA1 Message Date
Derrick Hammer cf6e0a986f
*Update dist 2022-11-16 11:24:10 -05:00
Derrick Hammer 3196947071
*Return shadow clone of data 2022-11-16 11:23:50 -05:00
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class DHTOnlineBase extends events_1.default {
} }
_data; _data;
get data() { get data() {
return this._data; return { ...this._data };
} }
set data(value) { set data(value) {
this._data = value; this._data = value;

View File

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