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

+10
View File
@@ -0,0 +1,10 @@
import { DOMParser } from '@xmldom/xmldom';
import xpath from 'xpath';
export function pluginHookResponseFilter(
_ctx: any,
{ filter, body }: { filter: string; body: string },
) {
const doc = new DOMParser().parseFromString(body, 'text/xml');
return `${xpath.select(filter, doc)}`;
}