search-input-query-parser 0.5.0 → 0.5.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.
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseSearchInputQuery = exports.stringify = void 0;
3
+ exports.parseSearchInputQuery = exports.stringify = exports.SearchQueryErrorCode = void 0;
4
4
  const lexer_1 = require("./lexer");
5
5
  const first_pass_parser_1 = require("./first-pass-parser");
6
6
  const validator_1 = require("./validator");
7
+ Object.defineProperty(exports, "SearchQueryErrorCode", { enumerable: true, get: function () { return validator_1.SearchQueryErrorCode; } });
7
8
  const validate_expression_fields_1 = require("./validate-expression-fields");
8
9
  const transform_to_expression_1 = require("./transform-to-expression");
9
10
  // Helper function to stringify expressions
@@ -3,6 +3,8 @@ import { parseExpression, } from "./first-pass-parser";
3
3
  import { validateSearchQuery, SearchQueryErrorCode, } from "./validator";
4
4
  import { validateExpressionFields } from "./validate-expression-fields";
5
5
  import { transformToExpression } from "./transform-to-expression";
6
+ // Re-export these types from validator for backward compatibility
7
+ export { SearchQueryErrorCode };
6
8
  // Helper function to stringify expressions
7
9
  export const stringify = (expr) => {
8
10
  var _a;
@@ -1,5 +1,6 @@
1
1
  import { PositionLength } from "./first-pass-parser";
2
- import { ValidationError } from "./validator";
2
+ import { ValidationError, SearchQueryErrorCode } from "./validator";
3
+ export { ValidationError, SearchQueryErrorCode };
3
4
  export interface FieldSchema {
4
5
  name: string;
5
6
  type: "string" | "number" | "date" | "boolean";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "search-input-query-parser",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "A parser for advanced search query syntax with field:value support",
5
5
  "keywords": [
6
6
  "search",
package/src/parser.ts CHANGED
@@ -12,6 +12,9 @@ import {
12
12
  import { validateExpressionFields } from "./validate-expression-fields";
13
13
  import { transformToExpression } from "./transform-to-expression";
14
14
 
15
+ // Re-export these types from validator for backward compatibility
16
+ export { ValidationError, SearchQueryErrorCode };
17
+
15
18
  // Schema types for range queries
16
19
  export interface FieldSchema {
17
20
  name: string;