发布 0.2.1 并完善工具边界与安全性

This commit is contained in:
mid
2026-08-10 14:49:43 +08:00
parent aca004c513
commit 32b7cc827c
47 changed files with 681 additions and 172 deletions
+3
View File
@@ -50,6 +50,9 @@ describe('UTF-8 and Base64', () => {
it('rejects invalid Base64', () => {
expect(() => decodeBase64('abcde')).toThrow('长度')
expect(() => decodeBase64('ab*c')).toThrow('无效')
expect(() => decodeBase64('TQ=')).toThrow('填充长度')
expect(() => decodeBase64('TWE==')).toThrow('填充长度')
expect(() => decodeBase64('T=Q=')).toThrow('填充位置')
expect(() => decodeBase64('Zh==')).toThrow('无效')
expect(() => decodeBase64('Zm9=')).toThrow('无效')
})