Commit 8cd9f32
committed
fix(sdk/js): handle invalid hex in appId and remove stale browser-compat test
- hexToBytes now validates hex format (even length, valid chars, 0x/0X
prefix) and returns null instead of producing corrupt bytes or
throwing on malformed input.
- Both verifyEnvEncryptPublicKey and verifyEnvEncryptPublicKeyLegacy
return null when appId is not valid hex, preserving the null-on-error
contract.
- Remove browser-compatibility.test.ts which imported deleted .browser
modules (encrypt-env-vars.browser, get-compose-hash.browser,
verify-env-encrypt-public-key.browser).1 parent 85afdc1 commit 8cd9f32
2 files changed
Lines changed: 9 additions & 258 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | | - | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | | - | |
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
0 commit comments