Deno plugins (#42)

Switch from BoaJS to Deno core
This commit is contained in:
Gregory Schier authored and GitHub committed 2024-06-07 10:47:41 -07:00
1 parent f43b38c893
commit acfc254a58
32 files changed
+1378 -5663

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
import xpath from 'xpath';
import { DOMParser } from '@xmldom/xmldom';
export function pluginHookResponseFilter(filter, text) {
export function pluginHookResponseFilter(ctx, filter, text) {
const doc = new DOMParser().parseFromString(text, 'text/xml');
const filtered = `${xpath.select(filter, doc)}`;
return { filtered };
+3 -1
View File
@@ -8,6 +8,8 @@ export default defineConfig({
fileName: 'index',
formats: ['es'],
},
outDir: resolve(__dirname, '../../src-tauri/plugins/filter-xpath'),
emptyOutDir: true,
sourcemap: true,
outDir: resolve(__dirname, 'build'),
},
});