@swaggerexpert/jsonpath 3.2.4 → 3.2.5

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/package.json +1 -1
  2. package/types/index.d.ts +24 -0
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "provenance": true
7
7
  },
8
- "version": "3.2.4",
8
+ "version": "3.2.5",
9
9
  "description": "RFC 9535 implementation of JSONPath",
10
10
  "main": "./cjs/index.cjs",
11
11
  "types": "./types/index.d.ts",
package/types/index.d.ts CHANGED
@@ -230,6 +230,30 @@ export interface TestOptions {
230
230
  readonly normalized?: boolean;
231
231
  }
232
232
 
233
+ /**
234
+ * Compiling
235
+ */
236
+ export function compile(selectors: (string | number)[]): string;
237
+
238
+ /**
239
+ * Errors
240
+ */
241
+ export declare class JSONPathError extends Error {
242
+ constructor(message?: string, options?: JSONPathErrorOptions);
243
+ cause?: Error;
244
+ }
245
+
246
+ export interface JSONPathErrorOptions {
247
+ cause?: Error;
248
+ [key: string]: unknown;
249
+ }
250
+
251
+ export declare class JSONPathCompileError extends JSONPathError {
252
+ selectors?: (string | number)[];
253
+ }
254
+
255
+ export declare class JSONPathParseError extends JSONPathError {}
256
+
233
257
  /**
234
258
  * Grammar
235
259
  */