polystore 0.21.0 → 0.21.1
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
|
@@ -179,7 +179,7 @@ var File = class extends Client {
|
|
|
179
179
|
// Check if this is the right class for the given client
|
|
180
180
|
static test = (client) => {
|
|
181
181
|
if (client instanceof URL) client = client.href;
|
|
182
|
-
return typeof client === "string" && client.startsWith("file://") && client.
|
|
182
|
+
return typeof client === "string" && client.startsWith("file://") && client.endsWith(".json");
|
|
183
183
|
};
|
|
184
184
|
// We want to make sure the file already exists, so attempt to
|
|
185
185
|
// create the folders and the file (but not OVERWRITE it, that's why the x flag)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polystore",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1",
|
|
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",
|