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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobiletto",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "A storage abstraction layer",
5
5
  "main": "index.js",
6
6
  "author": "Jonathan Cobb",