Skip to content

Commit

Permalink
Fix jmespath-plus export
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Van Ginkel committed Jun 4, 2020
1 parent 4abbfde commit 386b1bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jmespath-edit",
"version": "0.0.7",
"version": "0.0.8",
"description": "A JMESPath expression editor and preview web component",
"author": {
"name": "Glen van Ginkel"
Expand Down
4 changes: 2 additions & 2 deletions src/utils/jmespath-plus.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { search } from 'jmespath-plus';
import jmespath from 'jmespath-plus';

export const query = async (expression: string, json: any) => {
return search(json, expression);
return jmespath.search(json, expression);
};

0 comments on commit 386b1bc

Please sign in to comment.