From d659be75e2d438fb535f520c9ba0ba671426da64 Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Tue, 12 Sep 2023 09:31:06 +0300 Subject: [PATCH] fix: remove object freeze due to mutation effect --- packages/library/src/metadata/containers/BaseMetadata.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/library/src/metadata/containers/BaseMetadata.ts b/packages/library/src/metadata/containers/BaseMetadata.ts index 7cc9acc..f9c126f 100644 --- a/packages/library/src/metadata/containers/BaseMetadata.ts +++ b/packages/library/src/metadata/containers/BaseMetadata.ts @@ -33,7 +33,7 @@ export abstract class BaseMetadata implements Metadata { get(): Readonly; get(path: string | readonly string[], fallbackValue?: unknown): unknown; get(path?: string | readonly string[], fallbackValue?: unknown): Data | unknown { - return Object.freeze(this.#get(path, fallbackValue)); + return this.#get(path, fallbackValue); } set(path: string | readonly string[], value: unknown): this {