@swaggerexpert/jsonpath 3.0.1 → 3.2.2

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/es/test/index.mjs DELETED
@@ -1,20 +0,0 @@
1
- import parse from "../parse/index.mjs";
2
- const test = (jsonPath, {
3
- normalized = false
4
- } = {}) => {
5
- if (typeof jsonPath !== 'string') return false;
6
- try {
7
- const {
8
- result
9
- } = parse(jsonPath, {
10
- normalized,
11
- stats: false,
12
- trace: false,
13
- translator: null
14
- });
15
- return result.success;
16
- } catch {
17
- return false;
18
- }
19
- };
20
- export default test;