Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
archywillhe committed Oct 3, 2023
1 parent dad9af9 commit 566de38
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 17 deletions.
18 changes: 5 additions & 13 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"homepage": "https://github.com/ArchGPT/insomnium#readme",
"engines": {
"node": ">=18.15 <20",
"node": ">=18.17.0",
"npm": ">=8.19.0"
},
"workspaces": [
Expand Down Expand Up @@ -71,5 +71,8 @@
"tslib": "2.0.1",
"type-fest": "^2.12.0",
"typescript": "^5.1.6"
},
"dependencies": {
"@xmldom/xmldom": "^0.8.10"
}
}
2 changes: 1 addition & 1 deletion packages/insomnia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"vite": "^4.4.7",
"vkbeautify": "^0.99.1",
"ws": "^8.13.0",
"xmldom": "^0.6.0",

"xpath": "0.0.32"
},
"dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ const localTemplatePlugins: { templateTag: PluginTemplateTag }[] = [
return results[0];
}
} else {
const DOMParser = (await import('xmldom')).DOMParser;
const DOMParser = (await import('@xmldom/xmldom')).DOMParser;
const dom = new DOMParser().parseFromString(body);
let selectedValues: SelectedValue[] = [];
if (sanitizedFilter === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia/src/utils/xpath/query.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DOMParser } from 'xmldom';
import { DOMParser } from '@xmldom/xmldom';
import xpath, { SelectedValue } from 'xpath';

/**
Expand Down

0 comments on commit 566de38

Please sign in to comment.