Skip to content

Commit f679b17

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 f679b17

2 files changed

Lines changed: 136 additions & 131 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)