@wxn0brp/vql 0.6.0-beta.0 → 0.6.0
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/dist/valid.js +1 -4
- package/package.json +1 -1
package/dist/valid.js
CHANGED
|
@@ -62,11 +62,8 @@ function validD(query) {
|
|
|
62
62
|
const { d } = query;
|
|
63
63
|
const key = Object.keys(d)[0];
|
|
64
64
|
const value = d[key]; // Cast for common property
|
|
65
|
-
if (key === "getCollections")
|
|
66
|
-
if (Object.keys(value).length > 0)
|
|
67
|
-
return emptyErr("'getCollections' should be an empty object.");
|
|
65
|
+
if (key === "getCollections")
|
|
68
66
|
return true;
|
|
69
|
-
}
|
|
70
67
|
if (typeof value.collection !== "string" || value.collection.trim() === "")
|
|
71
68
|
return emptyErr(`CRUD operation '${key}' must specify a non-empty 'collection' string.`);
|
|
72
69
|
if (key === "issetCollection" || key === "ensureCollection" || key === "removeCollection") {
|