Skip to content

Commit 7491a2b

Browse files
cklinCopilot
andcommitted
Pin @hpcc-js/wasm to 2.30.0 to fix webview CSP error
@hpcc-js/wasm v2.31.0 introduced a new Function() call in its Emscripten-generated graphviz.js glue code. This violates the webview Content Security Policy, which allows 'wasm-unsafe-eval' but not 'unsafe-eval'. Pin to 2.30.0 (the last version without new Function()) via a scoped npm override on d3-graphviz. Version 2.30.0 still satisfies d3-graphviz's ^2.20.0 requirement. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3533b99 commit 7491a2b

2 files changed

Lines changed: 137 additions & 132 deletions

File tree

extensions/ql-vscode/package-lock.json

Lines changed: 131 additions & 131 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/ql-vscode/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"engines": {
1616
"vscode": "^1.90.0",
1717
"node": "^22.21.1",
18-
"npm": ">=7.20.6"
18+
"npm": ">=8.3.0"
1919
},
2020
"categories": [
2121
"Programming Languages"
@@ -2188,6 +2188,11 @@
21882188
"vite": "^7.3.2",
21892189
"vite-node": "^5.3.0"
21902190
},
2191+
"overrides": {
2192+
"d3-graphviz": {
2193+
"@hpcc-js/wasm": "2.30.0"
2194+
}
2195+
},
21912196
"lint-staged": {
21922197
"./**/*.{json,css,scss}": [
21932198
"prettier --write"

0 commit comments

Comments
 (0)