Commit 2f6f8b6
committed
Fix CSP violation in Vite builds by upgrading asn1.js to 5.4.1
Fixes #28
Added npm overrides to force asn1.js@5.4.1, which removes eval usage that caused Content Security Policy violations in Vite builds. The previous version (4.10.1) used require('vm').runInThisContext() which is incompatible with strict CSP.
Dependency chain: browserify → crypto-browserify → browserify-sign → parse-asn1 → asn1.js
Verified zero eval() calls in all dist bundles after rebuild.1 parent 3638623 commit 2f6f8b6
2 files changed
Lines changed: 29 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
155 | 158 | | |
156 | 159 | | |
0 commit comments