@dibs-tech/redis-interface
Advanced tools
Comparing version 1.2.1 to 1.2.2
15
index.js
@@ -29,3 +29,3 @@ const { handleError } = require('@dibs-tech/dibs-error-handler'); | ||
/** | ||
* | ||
* | ||
* @param {string} key Redis key | ||
@@ -73,3 +73,3 @@ * @returns {Promise} JSON data | ||
/** | ||
* | ||
* | ||
* @param {string} key identifier | ||
@@ -97,6 +97,7 @@ * @param {string} value value to store | ||
})(err); | ||
return null; } | ||
return null; | ||
} | ||
} | ||
/** | ||
* | ||
* | ||
* @param {string} key identifier | ||
@@ -122,3 +123,3 @@ * @param {object} options optional parameters | ||
/** | ||
* | ||
* | ||
* @param {string} key identifier | ||
@@ -129,3 +130,3 @@ * @return {array} list from redis | ||
try { | ||
if (!redisClient) return null; | ||
if (!redisClient) return []; | ||
const data = await redisClient.lrangeAsync(key, 0, -1); | ||
@@ -138,3 +139,3 @@ return data; | ||
})(err); | ||
return null; | ||
return []; | ||
} | ||
@@ -141,0 +142,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Dibs redis interface driver", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@dibs-tech/dibs-error-handler": "^1.0.1", | ||
"@dibs-tech/dibs-error-handler": "^1.0.2", | ||
"bluebird": "^3.5.1", | ||
@@ -27,0 +27,0 @@ "enum": "^2.5.0", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
140
6222
1