mobiletto 1.0.23 → 1.0.24

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 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -66,7 +66,7 @@ const UTILITY_FUNCTIONS = {
66
66
  cacheKey = shasum(path + ' ' + (opts ? JSON.stringify(opts) : '~'))
67
67
  const results = client.listingCache.get(cacheKey)
68
68
  if (results) {
69
- if (results.cached) { return results }
69
+ if (Array.isArray(results)) { return results }
70
70
  throw results
71
71
  }
72
72
  }
@@ -78,7 +78,6 @@ const UTILITY_FUNCTIONS = {
78
78
  try {
79
79
  const results = await client.driver_list(path, recursive, visitor)
80
80
  if (client.listingCache) {
81
- results.cached = true
82
81
  client.listingCache.set(cacheKey, results)
83
82
  }
84
83
  return results
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobiletto",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "A storage abstraction layer",
5
5
  "main": "index.js",
6
6
  "author": "Jonathan Cobb",