chore: remove useless Object.freeze patch
This commit is contained in:
parent
b40e2f51ab
commit
7ecce136a8
4 changed files with 1 additions and 12 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
import type { AnyObject } from './types'
|
||||
|
||||
export { objectFreeze } from './patches/object'
|
||||
|
||||
/**
|
||||
* Simple check if to see if value is an object.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
import '@revenge-mod/utils/patches/proxy'
|
||||
import '@revenge-mod/utils/patches/objects'
|
||||
|
||||
import {
|
||||
onModuleFirstRequired,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue