From 9a9e51a2fa385b3e1d1ddcb7393bb680c6741cd9 Mon Sep 17 00:00:00 2001 From: Solomon Eseme Date: Sat, 9 Apr 2022 23:09:46 +0100 Subject: [PATCH] fix: upgrading --- package.json | 9 ++++++--- src/Engines/RedisCache.ts | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8044dc9..2494825 100644 --- a/package.json +++ b/package.json @@ -36,10 +36,10 @@ "commitizen": "^4.2.4", "copyfiles": "^2.4.1", "doctoc": "^2.1.0", - "eslint": "^7.32.0", - "eslint-config-prettier": "^6.11.0", + "eslint": "^8.13.0", + "eslint-config-prettier": "^8.5.0", "eslint-plugin-adonis": "^2.1.0", - "eslint-plugin-prettier": "^3.4.1", + "eslint-plugin-prettier": "^4.0.0", "github-label-sync": "^2.2.0", "husky": "^6.0.0", "mrm": "^2.6.2", @@ -107,5 +107,8 @@ "@adonisjs/redis": { "optional": true } + }, + "dependencies": { + "fs": "^0.0.1-security" } } diff --git a/src/Engines/RedisCache.ts b/src/Engines/RedisCache.ts index 174807a..813f734 100644 --- a/src/Engines/RedisCache.ts +++ b/src/Engines/RedisCache.ts @@ -42,7 +42,7 @@ class RedisCache implements EngineInterface { */ if (!this.config.connections) { throw new Error( - 'Missing "connections" property for redis provider inside "config/redis" file' + 'Missing "connections" property for redis provider inside "config/redis" file', ) } @@ -53,7 +53,7 @@ class RedisCache implements EngineInterface { * Define custom connection */ public setConnection( - connection: string | RedisConnectionContract | RedisClusterConnectionContract + connection: string | RedisConnectionContract | RedisClusterConnectionContract, ): this { this.connection = connection return this