mobiletto 1.0.21 → 1.0.22
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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -203,7 +203,7 @@ async function mirrorDir (source, sourcePath, visitor) {
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
function addUtilityFunctions (client, readOnly = false, cacheSize = null) {
|
|
206
|
-
client.listingCache = cacheSize ? new LRU({ max: cacheSize }) : null
|
|
206
|
+
client.listingCache = cacheSize && cacheSize > 0 ? new LRU({ max: cacheSize }) : null
|
|
207
207
|
for (const func of Object.keys(UTILITY_FUNCTIONS)) {
|
|
208
208
|
client[`driver_${func}`] = client[func] // save previous function, we will need `list` at least
|
|
209
209
|
client[func] = UTILITY_FUNCTIONS[func](client)
|