adminforth 1.0.43 → 1.0.44

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/index.js CHANGED
@@ -472,7 +472,7 @@ class AdminForth {
472
472
  }
473
473
  const { limit, offset, filters, sort } = body;
474
474
  for (const filter of (filters || [])) {
475
- if (AdminForthFilterOperators[filter.operator] === undefined) {
475
+ if (!Object.values(AdminForthFilterOperators).includes(filter.operator)) {
476
476
  throw new Error(`Operator '${filter.operator}' is not allowed`);
477
477
  }
478
478
  if (!resource.columns.some((col) => col.name === filter.field)) {
package/index.ts CHANGED
@@ -537,7 +537,7 @@ class AdminForth {
537
537
  const { limit, offset, filters, sort } = body;
538
538
 
539
539
  for (const filter of (filters || [])) {
540
- if (AdminForthFilterOperators[filter.operator] === undefined) {
540
+ if (!Object.values(AdminForthFilterOperators).includes(filter.operator)) {
541
541
  throw new Error(`Operator '${filter.operator}' is not allowed`);
542
542
  }
543
543
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",