diff --git a/lib/utils/package.json b/lib/utils/package.json index 2369078..d779c4e 100644 --- a/lib/utils/package.json +++ b/lib/utils/package.json @@ -3,9 +3,6 @@ "private": true, "type": "module", "exports": { - "./patches/objects": { - "default": "./src/patches/object.ts" - }, "./patches/proxy": { "default": "./src/patches/proxy.ts" }, @@ -37,4 +34,4 @@ "types": "./src/types.ts" } } -} \ No newline at end of file +} diff --git a/lib/utils/src/object.ts b/lib/utils/src/object.ts index ab28a54..fd6b0c4 100644 --- a/lib/utils/src/object.ts +++ b/lib/utils/src/object.ts @@ -1,7 +1,5 @@ import type { AnyObject } from './types' -export { objectFreeze } from './patches/object' - /** * Simple check if to see if value is an object. * diff --git a/lib/utils/src/patches/object.ts b/lib/utils/src/patches/object.ts deleted file mode 100644 index ec4c67c..0000000 --- a/lib/utils/src/patches/object.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Retain reference to original functions -export const objectFreeze = Object.freeze - -// Patch to prevent the use of Object.freeze -Object.freeze = (o: any) => o diff --git a/src/preinit.ts b/src/preinit.ts index 0ef03e3..8ef0ead 100644 --- a/src/preinit.ts +++ b/src/preinit.ts @@ -1,5 +1,4 @@ import '@revenge-mod/utils/patches/proxy' -import '@revenge-mod/utils/patches/objects' import { onModuleFirstRequired,