Move plugins to this repo

This commit is contained in:
Gregory Schier
2024-06-27 21:44:45 -07:00
parent d1d08963fb
commit a63b485b95
35 changed files with 6931 additions and 0 deletions

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);
}