(installer: PluginInstaller)
| 29 | readonly versions = '*'; |
| 30 | |
| 31 | install(installer: PluginInstaller): void { |
| 32 | const Redis = installer.require?.('ioredis') ?? require('ioredis'); |
| 33 | |
| 34 | this.interceptOperation(Redis, 'sendCommand'); |
| 35 | } |
| 36 | |
| 37 | interceptOperation(Cls: any, operation: string): void { |
| 38 | const _original = Cls.prototype[operation]; |
nothing calls this directly
no test coverage detected