Move plugins to this repo

This commit is contained in:
Gregory Schier committed 2024-06-27 21:44:45 -07:00
1 parent d1d08963fb
commit a63b485b95
35 files changed
+6931

No files matched your search

+7
View File
@@ -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);
}