mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:14:03 +01:00
Template response plugin
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { DOMParser } from '@xmldom/xmldom';
|
||||
import { YaakContext } from '@yaakapp/api';
|
||||
import { Context } from '@yaakapp/api';
|
||||
import xpath from 'xpath';
|
||||
|
||||
export function pluginHookResponseFilter(
|
||||
_ctx: YaakContext,
|
||||
_ctx: Context,
|
||||
{ filter, body }: { filter: string; body: string },
|
||||
) {
|
||||
const doc = new DOMParser().parseFromString(body, 'text/xml');
|
||||
|
||||
Reference in New Issue
Block a user