ochre-sdk 0.20.11 → 0.20.12

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/index.mjs +9 -20
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -832,26 +832,15 @@ const setQuerySchema = z.union([
832
832
  ]);
833
833
  const setQueriesSchema = z.array(setQuerySchema).default([]);
834
834
  function validateSetQueriesOperators(queries, ctx) {
835
- for (const [index, query] of queries.entries()) {
836
- if (index === 0 && query.operator != null) ctx.addIssue({
837
- code: "custom",
838
- path: [
839
- "queries",
840
- index,
841
- "operator"
842
- ],
843
- message: "The first query rule must not include an operator"
844
- });
845
- if (index > 0 && query.operator == null) ctx.addIssue({
846
- code: "custom",
847
- path: [
848
- "queries",
849
- index,
850
- "operator"
851
- ],
852
- message: "Query rules after the first must include an operator"
853
- });
854
- }
835
+ for (const [index, query] of queries.entries()) if (index > 0 && query.operator == null) ctx.addIssue({
836
+ code: "custom",
837
+ path: [
838
+ "queries",
839
+ index,
840
+ "operator"
841
+ ],
842
+ message: "Query rules after the first must include an operator"
843
+ });
855
844
  }
856
845
  /**
857
846
  * Schema for validating the parameters for the Set property values by property variables fetching function
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "0.20.11",
3
+ "version": "0.20.12",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Node.js library for working with OCHRE (Online Cultural and Historical Research Environment) data",