Move plugin stuff around

This commit is contained in:
Gregory Schier committed 2024-01-15 14:33:51 -08:00
1 parent baf0f4291d
commit bb9d3a42f3
25 files changed
+3417 -8

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import jp from 'jsonpath';
export function pluginHookResponseFilter({ text, filter }) {
let parsed;
try {
parsed = JSON.parse(text);
} catch (e) {
return;
}
const filtered = jp.query(parsed, filter);
return { filtered };
}