@mimik/rediser 1.4.13 → 1.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -2
  2. package/package.json +8 -8
package/index.js CHANGED
@@ -11,7 +11,6 @@ const Promise = require('bluebird');
11
11
  const type = 'redis';
12
12
  const correlationId = `${type}-cache-start@0/${new Date().toISOString()}`;
13
13
 
14
- const VALIDATION_CHECK = 100; // in ms
15
14
  const CONNECTED = 1;
16
15
  const DISCONNECTED = 2;
17
16
 
@@ -114,7 +113,7 @@ module.exports = (set, config) => {
114
113
  }
115
114
  }, config.redisSettings.connectTimeout * 1000); // convert in seconds
116
115
 
117
- return Promise.delay(VALIDATION_CHECK).then(() => {
116
+ return Promise.delay(redisSettings.validationCheck).then(() => {
118
117
  if (state !== DISCONNECTED && state !== CONNECTED) {
119
118
  const error = new Error(`cache connection not established: ${state}`);
120
119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/rediser",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "description": "Helper for setting up redis using redis for mimik microservices",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,20 +30,20 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@mimik/lib-filters": "^1.4.6",
33
- "@mimik/sumologic-winston-logger": "^1.6.14",
33
+ "@mimik/sumologic-winston-logger": "^1.6.15",
34
34
  "bluebird": "3.7.2",
35
- "redis": "4.5.1"
35
+ "redis": "4.6.6"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@mimik/eslint-plugin-dependencies": "^2.4.5",
39
39
  "@mimik/eslint-plugin-document-env": "^1.0.5",
40
- "eslint": "8.30.0",
40
+ "eslint": "8.40.0",
41
41
  "eslint-config-airbnb": "19.0.4",
42
- "eslint-plugin-import": "2.26.0",
43
- "eslint-plugin-jsx-a11y": "6.6.1",
44
- "eslint-plugin-react": "7.31.11",
42
+ "eslint-plugin-import": "2.27.5",
43
+ "eslint-plugin-jsx-a11y": "6.7.1",
44
+ "eslint-plugin-react": "7.32.2",
45
45
  "eslint-plugin-react-hooks": "4.6.0",
46
- "husky": "8.0.2",
46
+ "husky": "8.0.3",
47
47
  "jsdoc-to-markdown": "8.0.0"
48
48
  }
49
49
  }