@webqit/webflo 1.0.36 → 1.0.37
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.
package/package.json
CHANGED
|
@@ -239,8 +239,8 @@ export class WebfloServer extends WebfloRuntime {
|
|
|
239
239
|
async delete(key) { return await redis.hdel(namespace, key); },
|
|
240
240
|
async clear() { return await redis.del(namespace); },
|
|
241
241
|
async keys() { return await redis.hkeys(namespace); },
|
|
242
|
-
async values() { return await redis.hvals(namespace); },
|
|
243
|
-
async entries() { return Object.entries(await redis.hgetall(namespace) || {}); },
|
|
242
|
+
async values() { return (await redis.hvals(namespace) || []).map((value) => JSON.parse(value)); },
|
|
243
|
+
async entries() { return Object.entries(await redis.hgetall(namespace) || {}).map(([key, value]) => [key, JSON.parse(value)]); },
|
|
244
244
|
get size() { return redis.hlen(namespace); },
|
|
245
245
|
});
|
|
246
246
|
} else {
|