Skip to content

Commit 2603a23

Browse files
committed
🐛 Don't use exports key by default
1 parent 09947a5 commit 2603a23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/moduleraid.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export class ModuleRaid {
321321
}
322322

323323
modules.forEach((key: string) => {
324-
const module = this.modules[key].exports
324+
const module = this.modules[key.toString()]
325325

326326
if (module === undefined) return
327327

@@ -418,9 +418,9 @@ export class ModuleRaid {
418418
query = query.toLowerCase()
419419

420420
if (constructor.toString().toLowerCase().includes(query))
421-
results.push([this.constructors[key], this.modules[key].exports])
421+
results.push([this.constructors[key], this.modules[key]])
422422
} else if (typeof query === 'function') {
423-
if (query(constructor)) results.push([this.constructors[key], this.modules[key].exports])
423+
if (query(constructor)) results.push([this.constructors[key], this.modules[key]])
424424
}
425425
} catch (err: any) {
426426
this.log(

0 commit comments

Comments
 (0)