polystore 0.4.1 → 0.4.2

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/package.json +1 -1
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polystore",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "A small compatibility layer for many popular KV stores like localStorage, Redis, FileSystem, etc.",
5
5
  "homepage": "https://github.com/franciscop/polystore",
6
6
  "repository": "https://github.com/franciscop/polystore.git",
package/src/index.js CHANGED
@@ -250,7 +250,7 @@ const getStore = async (store) => {
250
250
  return layers.redis(store);
251
251
  }
252
252
 
253
- if (store.constructor && store.constructor.name === "NvNamespace") {
253
+ if (store.constructor && store.constructor.name === "KvNamespace") {
254
254
  return layers.cloudflare(store);
255
255
  }
256
256