mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-18 22:48:23 +01:00
Move plugins to this repo
This commit is contained in:
1 parent
d1d08963fb
commit
a63b485b95
35 files changed
+6931
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import jp from 'jsonpath';
|
||||
|
||||
export function pluginHookResponseFilter(_ctx: any, args: { filter: string; body: string }) {
|
||||
const parsed = JSON.parse(args.body);
|
||||
const filtered = jp.query(parsed, args.filter);
|
||||
return JSON.stringify(filtered, null, 2);
|
||||
}
|
||||
Reference in new issue
Block a user