diff --git a/package-lock.json b/package-lock.json index 2f26710..9936799 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.0.26", "license": "GPL-3.0-only", "dependencies": { - "@imqueue/core": "^2.0.25", + "@imqueue/core": "^2.0.26", "@types/node": "^24.9.1", "acorn": "^8.15.0", "farmhash": "^5.0.1", @@ -67,7 +67,6 @@ "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/generator": "^7.28.5", @@ -343,9 +342,9 @@ } }, "node_modules/@imqueue/core": { - "version": "2.0.25", - "resolved": "https://registry.npmjs.org/@imqueue/core/-/core-2.0.25.tgz", - "integrity": "sha512-VzIom+YPyFYzANOkO8SOWMG95D1wo/iPTBN+pbCW93umC+IsTWBoIEH317PY7Y4OFwXmhq+8cpxv4ViOr3fZdw==", + "version": "2.0.26", + "resolved": "https://registry.npmjs.org/@imqueue/core/-/core-2.0.26.tgz", + "integrity": "sha512-4Ecy/23+mVcSkeNYJGbcj1XaU4Hicnu9MQTLejOhuhVrgspOWrYr/GY7dDlF7amWKw1zFN8FehRFdszgz1YxPQ==", "license": "GPL-3.0-only", "dependencies": { "ioredis": "^5.8.2" @@ -708,7 +707,6 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.1.tgz", "integrity": "sha512-QoiaXANRkSXK6p0Duvt56W208du4P9Uye9hWLWgGMDTEoKPhuenzNcC4vGUmrNkiOKTlIrBoyNQYNpSwfEZXSg==", "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~7.16.0" } @@ -903,7 +901,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "baseline-browser-mapping": "^2.8.19", "caniuse-lite": "^1.0.30001751", @@ -3521,7 +3518,6 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/test/mocks/redis.ts b/test/mocks/redis.ts index 492e639..2fe90d5 100644 --- a/test/mocks/redis.ts +++ b/test/mocks/redis.ts @@ -57,10 +57,16 @@ export class RedisClientMock extends EventEmitter { } } + // noinspection JSUnusedGlobalSymbols + public async connect(): Promise { + this.connected = true; + this.status = 'ready'; + } + // noinspection JSUnusedGlobalSymbols public end() {} // noinspection JSUnusedGlobalSymbols - public quit() {} + public async quit(): Promise {} // noinspection JSMethodCanBeStatic public async set(...args: any[]): Promise { @@ -257,7 +263,7 @@ export class RedisClientMock extends EventEmitter { } // noinspection JSUnusedGlobalSymbols,JSMethodCanBeStatic - public psubscribe(...args: any[]): number { + public async psubscribe(...args: any[]): Promise { this.cbExecute(args.pop(), null, 1); return 1; } @@ -269,7 +275,7 @@ export class RedisClientMock extends EventEmitter { } // noinspection JSUnusedGlobalSymbols,JSMethodCanBeStatic - public del(...args: any[]): number { + public async del(...args: any[]): Promise { const self = RedisClientMock; let count = 0; for (let key of args) { @@ -309,7 +315,7 @@ export class RedisClientMock extends EventEmitter { } // noinspection JSUnusedGlobalSymbols,JSMethodCanBeStatic - public config(): boolean { + public async config(): Promise { return true; }