Skip to content

Commit

Permalink
Try using @astronautlabs/jsonpath fork of jsonpath instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Aug 1, 2024
1 parent abb82b7 commit 7508389
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/taco/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"typedoc": "typedoc"
},
"dependencies": {
"@astronautlabs/jsonpath": "^1.1.2",
"@nucypher/nucypher-core": "*",
"@nucypher/shared": "workspace:*",
"@nucypher/taco-auth": "workspace:*",
"ethers": "*",
"jsonpath": "^1.1.1",
"semver": "^7.5.2",
"zod": "*"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/taco/src/conditions/base/json-api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parse } from 'jsonpath';
import { JSONPath } from '@astronautlabs/jsonpath';
import { z } from 'zod';

import { Condition } from '../condition';
Expand All @@ -8,7 +8,7 @@ export const JsonApiConditionType = 'json-api';

const validateJSONPath = (jsonPath: string): boolean => {
try {
parse(jsonPath);
JSONPath.parse(jsonPath);
return true;
} catch (error) {
return false;
Expand Down
13 changes: 10 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7508389

Please sign in to comment.