Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: xml response filtering #152

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use native api
  • Loading branch information
kobenguyent committed May 15, 2024
commit b0b0cbfb7971f35bb385b423f2002b3203681058
14 changes: 0 additions & 14 deletions packages/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"vue": "^3.2.41",
"vue-toast-notification": "^3.0.0",
"vuex": "^4.0.2",
"xmldom": "^0.6.0",
"xpath": "^0.0.34"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/ui/src/components/ResponsePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ import {
import { emitter } from '@/event-bus'
import {JSONPath} from 'jsonpath-plus'
import ResponseFilteringHelpModal from '@/components/modals/ResponseFilteringHelpModal.vue'
import { DOMParser } from 'xmldom'
import xpath from 'xpath'
import constants from '@/constants'

Expand Down Expand Up @@ -395,7 +394,7 @@ export default {
const nodes = []
let node = result.iterateNext()
while (node) {
nodes.push(node.toString())
nodes.push(new XMLSerializer().serializeToString(node))
node = result.iterateNext()
}
return nodes.join('\n')
Expand Down
Loading