polystore 0.15.8 → 0.15.9

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polystore",
3
- "version": "0.15.8",
3
+ "version": "0.15.9",
4
4
  "description": "A small compatibility layer for many popular KV stores like localStorage, Redis, FileSystem, etc.",
5
5
  "homepage": "https://polystore.dev/",
6
6
  "repository": "https://github.com/franciscop/polystore.git",
@@ -30,9 +30,8 @@ export default class Cloudflare extends Client {
30
30
  const keys = raw.keys.map((k) => k.name);
31
31
  for (let key of keys) {
32
32
  const value = await this.get(key);
33
- // By the time this specific value is read, it could be gone!
34
- if (!value) continue;
35
- yield [key, value];
33
+ // By the time this value is read it could be gone!
34
+ if (value) yield [key, value];
36
35
  }
37
36
  cursor = raw.list_complete ? null : raw.cursor;
38
37
  } while (cursor);