NodeJS Plugin Runtime (#53)

This commit is contained in:
Gregory Schier authored and GitHub committed 2024-07-19 10:41:47 -07:00
1 parent 7e5408fc92
commit 102bd588c2
106 files changed
+5246 -21337

No files matched your search

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