增加 CRC Hex 输入并修复依赖漏洞

This commit is contained in:
mid
2026-08-19 15:54:22 +08:00
parent 0ae6db36cb
commit 8bc6032f38
13 changed files with 268 additions and 37 deletions
+2
View File
@@ -28,6 +28,8 @@ describe('parseHex', () => {
expect(() => parseHex('0011', 16)).toThrow('当前为 2 字节')
expect(() => parseHex(',AA')).toThrow('片段缺少')
expect(() => parseHex('AA,')).toThrow('片段缺少')
expect(() => parseHex('AA,,BB')).toThrow('片段缺少')
expect(() => parseHex('AA, ,BB')).toThrow('片段缺少')
})
it('supports bounded parsing without allocating oversized output', () => {