@mastra/libsql 1.27.1-alpha.1 → 1.27.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/dist/index.js CHANGED
@@ -500,7 +500,7 @@ const createNumericOperator = (symbol) => {
500
500
  sql: `CAST(json_extract(metadata, ${jsonPath}) AS NUMERIC) ${symbol} ?`,
501
501
  needsValue: true
502
502
  };
503
- else return {
503
+ return {
504
504
  sql: `CAST(json_extract(metadata, ${jsonPath}) AS TEXT) ${symbol} ?`,
505
505
  needsValue: true
506
506
  };
@@ -527,7 +527,8 @@ function buildElemMatchConditions(value) {
527
527
  sql: sql.replace(pattern, `json_extract(elem.value, '$.${jsonPath}')`),
528
528
  values
529
529
  };
530
- } else return {
530
+ }
531
+ return {
531
532
  sql: `json_extract(elem.value, '$.${parseJsonPathKey(field)}') = ?`,
532
533
  values: [fieldValue]
533
534
  };