chore: remove useless Object.freeze patch

This commit is contained in:
PalmDevs 2025-07-26 12:13:33 +07:00
parent b40e2f51ab
commit 7ecce136a8
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA
4 changed files with 1 additions and 12 deletions

View file

@ -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"
}
}
}
}

View file

@ -1,7 +1,5 @@
import type { AnyObject } from './types'
export { objectFreeze } from './patches/object'
/**
* Simple check if to see if value is an object.
*

View file

@ -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

View file

@ -1,5 +1,4 @@
import '@revenge-mod/utils/patches/proxy'
import '@revenge-mod/utils/patches/objects'
import {
onModuleFirstRequired,