@erxes/plugin-sdk 0.1.0-v2.20 → 0.1.0-v2.22

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/dist/filter.js +1 -0
  2. package/package.json +2 -2
package/dist/filter.js CHANGED
@@ -200,6 +200,7 @@ const compileGroup = (group, compileRule, depth = 1) => {
200
200
  const compileFilter = (fields, filter, context = {}) => filter ? compileGroup(filter, (rule) => {
201
201
  const field = fields[rule.path];
202
202
  if (!field) throw invalidFilter(`Unknown field: ${rule.path}`);
203
+ if (rule.where) throw invalidFilter(`“${field.label ?? rule.path}” has no related records to narrow`);
203
204
  return compileColumn(field, rule.path, rule, context);
204
205
  }) : void 0;
205
206
  export { COMPARE, FilterParam, NEGATIVE, compileColumn, compileDate, compileFilter, compileGroup, escapeLike, invalidFilter, list, lowerList, number, text, textArray };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erxes/plugin-sdk",
3
- "version": "0.1.0-v2.20",
3
+ "version": "0.1.0-v2.22",
4
4
  "private": false,
5
5
  "description": "For erxes plugin servers: a typed core client with automatic plugin tokens, verification of members' plugin session tokens and of core's deliveries, and plugin jobs",
6
6
  "license": "AGPL-3.0-only",
@@ -36,7 +36,7 @@
36
36
  "@orpc/zod": "1.16.2",
37
37
  "jose": "^6.2.17",
38
38
  "zod": "^4.6.7",
39
- "@erxes/core-contract": "0.1.0-v2.21"
39
+ "@erxes/core-contract": "0.1.0-v2.23"
40
40
  },
41
41
  "devDependencies": {
42
42
  "drizzle-orm": "0.45.4"