@quantos/micro-request
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -55,3 +55,3 @@ "use strict"; | ||
if (_cached && _cached.length) { | ||
console.log('[@quantos/micro-request][Cache] ' + _url + ' retrieved ' + _cached.length + ' elements from cache'); | ||
console.log('[@quantos/micro-request][Cache] ' + _url + ' retrieved ' + _cached.length + ' / ' + options.ids.length + ' elements from cache'); | ||
results.push(..._cached); | ||
@@ -58,0 +58,0 @@ options.ids = options.ids.filter((id) => _cached.map((u) => u.id).indexOf(id) < 0); |
{ | ||
"name": "@quantos/micro-request", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Quantos http client with cache, retry and fallback mechanism", | ||
@@ -18,5 +18,5 @@ "author": "fabriziotognetto <info@quantos.it>", | ||
"dependencies": { | ||
"@quantos/redis-helper": "^1.0.9", | ||
"@quantos/redis-helper": "^1.0.10", | ||
"axios": "^0.21.1" | ||
} | ||
} |
@@ -63,3 +63,3 @@ import { fallbackErrorHandler } from './fallback_error_handler'; | ||
if (_cached && _cached.length) { | ||
console.log('[@quantos/micro-request][Cache] ' + _url + ' retrieved ' + _cached.length + ' elements from cache'); | ||
console.log('[@quantos/micro-request][Cache] ' + _url + ' retrieved ' + _cached.length + ' / ' + options.ids.length + ' elements from cache'); | ||
results.push(..._cached); | ||
@@ -66,0 +66,0 @@ // rimuovo dagli id quelli cachati |
Sorry, the diff of this file is not supported yet
37429