From 3196947071703009523527fbb037ed2daa7ac359 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 16 Nov 2022 11:23:50 -0500 Subject: [PATCH] *Return shadow clone of data --- src/dhtOnlineBase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dhtOnlineBase.ts b/src/dhtOnlineBase.ts index d759a8f..1782521 100644 --- a/src/dhtOnlineBase.ts +++ b/src/dhtOnlineBase.ts @@ -33,7 +33,7 @@ export default class DHTOnlineBase extends EventEmitter { private _data: {}; get data(): {} { - return this._data; + return { ...this._data }; } set data(value: {}) {