fix param name

This commit is contained in:
Vendicated 2025-02-16 23:37:48 +01:00
parent 98c8ecf541
commit bb90ec3cb3
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -515,7 +515,7 @@ function getAllPropertyNames(object: Object, includeNonEnumerable: boolean) {
* closeModal: filters.byCode("key==")
* })
*/
export const mapMangledModule = traceFunction("mapMangledModule", function mapMangledModule<S extends string>(code: string | RegExp | CodeFilter, mappers: Record<S, FilterFn>, includeBlacklisted = false): Record<S, any> {
export const mapMangledModule = traceFunction("mapMangledModule", function mapMangledModule<S extends string>(code: string | RegExp | CodeFilter, mappers: Record<S, FilterFn>, includeBlacklistedExports = false): Record<S, any> {
const exports = {} as Record<S, any>;
const id = findModuleId(...Array.isArray(code) ? code : [code]);
@ -523,7 +523,7 @@ export const mapMangledModule = traceFunction("mapMangledModule", function mapMa
return exports;
const mod = wreq(id as any);
const keys = getAllPropertyNames(mod, includeBlacklisted);
const keys = getAllPropertyNames(mod, includeBlacklistedExports);
outer:
for (const key of keys) {
const member = mod[key];