diff --git a/bun.lock b/bun.lock index 76f0a7d..181cd71 100644 --- a/bun.lock +++ b/bun.lock @@ -4,43 +4,43 @@ "": { "name": "@revenge-mod/revenge", "dependencies": { - "@gullerya/object-observer": "^6.1.3", - "@shopify/react-native-skia": "^1.3.8", - "@tanstack/react-query": "^5.51.16", - "@types/chroma-js": "~2.4.4", - "@types/lodash": "~4.17.7", + "@gullerya/object-observer": "^6.1.4", + "@shopify/react-native-skia": "^1.12.4", + "@tanstack/react-query": "^5.83.0", + "@types/chroma-js": "~2.4.5", + "@types/lodash": "~4.17.20", "@types/react": "18.2.60", "@types/react-native": "0.72.3", - "es-toolkit": "^1.13.1", - "fuzzysort": "^3.0.2", - "intl-messageformat": "^10.5.14", + "es-toolkit": "^1.39.7", + "fuzzysort": "^3.1.0", + "intl-messageformat": "^10.7.16", "moment": "2.22.2", - "react-native-reanimated": "^3.6.2", + "react-native-reanimated": "^3.18.0", "spitroast": "^1.4.4", - "type-fest": "^4.22.1", + "type-fest": "^4.41.0", }, "devDependencies": { "@saithodev/semantic-release-backmerge": "^4.0.1", "@semantic-release/changelog": "^6.0.3", "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", - "@swc/core": "^1.7.0", - "@swc/helpers": "^0.5.12", - "@types/node": "^20.14.11", + "@swc/core": "^1.13.1", + "@swc/helpers": "^0.5.17", + "@types/node": "^20.19.9", "@types/yargs-parser": "^21.0.3", - "@typescript-eslint/eslint-plugin": "^7.16.1", - "@typescript-eslint/parser": "^7.16.1", - "@typescript-eslint/typescript-estree": "^7.16.1", - "chalk": "^5.3.0", + "@typescript-eslint/eslint-plugin": "^7.18.0", + "@typescript-eslint/parser": "^7.18.0", + "@typescript-eslint/typescript-estree": "^7.18.0", + "chalk": "^5.4.1", "esbuild": "^0.20.2", "esbuild-plugin-globals": "^0.2.0", - "eslint": "^8.57.0", + "eslint": "^8.57.1", "eslint-plugin-import-alias": "^1.2.0", - "eslint-plugin-react": "^7.35.0", + "eslint-plugin-react": "^7.37.5", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-unused-imports": "^3.2.0", - "semantic-release": "^24.1.3", - "typescript": "^5.5.3", + "semantic-release": "^24.2.7", + "typescript": "^5.8.3", "yargs-parser": "^21.1.1", }, }, @@ -1472,7 +1472,7 @@ "safe-regex-test": ["safe-regex-test@1.1.0", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-regex": "^1.2.1" } }, "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw=="], - "scheduler": ["scheduler@0.21.0", "", { "dependencies": { "loose-envify": "^1.1.0" } }, "sha512-1r87x5fz9MXqswA2ERLo0EbOAU74DpIUO090gIasYTqlVoJeMcl+Z1Rg7WHz+qtPujhS/hGIt9kxZOYBV3faRQ=="], + "scheduler": ["scheduler@0.24.0-canary-efb381bbf-20230505", "", { "dependencies": { "loose-envify": "^1.1.0" } }, "sha512-ABvovCDe/k9IluqSh4/ISoq8tIJnW8euVAWYt5j/bg6dRnqwQwiGO1F/V4AyK96NGF/FB04FhOUDuWj8IKfABA=="], "selfsigned": ["selfsigned@2.4.1", "", { "dependencies": { "@types/node-forge": "^1.3.0", "node-forge": "^1" } }, "sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q=="], @@ -2264,7 +2264,7 @@ "react-native/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], - "react-native/scheduler": ["scheduler@0.24.0-canary-efb381bbf-20230505", "", { "dependencies": { "loose-envify": "^1.1.0" } }, "sha512-ABvovCDe/k9IluqSh4/ISoq8tIJnW8euVAWYt5j/bg6dRnqwQwiGO1F/V4AyK96NGF/FB04FhOUDuWj8IKfABA=="], + "react-reconciler/scheduler": ["scheduler@0.21.0", "", { "dependencies": { "loose-envify": "^1.1.0" } }, "sha512-1r87x5fz9MXqswA2ERLo0EbOAU74DpIUO090gIasYTqlVoJeMcl+Z1Rg7WHz+qtPujhS/hGIt9kxZOYBV3faRQ=="], "read-package-up/type-fest": ["type-fest@4.34.1", "", {}, "sha512-6kSc32kT0rbwxD6QL1CYe8IqdzN/J/ILMrNK+HMQCKH3insCDRY/3ITb0vcBss0a3t72fzh2YSzj8ko1HgwT3g=="], diff --git a/src/lib/api/patcher.ts b/src/lib/api/patcher.ts index df5ae4d..098c831 100644 --- a/src/lib/api/patcher.ts +++ b/src/lib/api/patcher.ts @@ -22,7 +22,7 @@ type AfterFn = PatchFn<(args: any[], ret: any) => unknown>; function create(fn: Function) { function patchFn(this: any, ...args: any[]) { - if (_patcherDelaySymbol in args[1]) { + if (typeof args[1][_patcherDelaySymbol] === "function") { const delayCallback: DelayCallback = args[1][_patcherDelaySymbol]; let cancel = false;