Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

fix(deps): bump vite to 6.4.4 and refactor test template parser to eliminate CodeQL alerts

IGECT9c93488a8f90
diff --git a/package.json b/package.json
index fdad49a5..a961c4a2 100644
--- a/package.json
+++ b/package.json
@@ -86,7 +86,7 @@
"svelte": "^5.57.2",
"svelte-check": "^4.0.0",
"typescript": "~5.6.2",
- "vite": "^6.0.3",
+ "vite": "^6.4.4",
"vite-plugin-top-level-await": "^1.5.0",
"vite-plugin-wasm": "^3.4.1",
"vitest": "^4.1.4"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 21e587a0..77e49192 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -160,13 +160,13 @@ importers:
devDependencies:
'@sveltejs/adapter-static':
specifier: ^3.0.6
'@sveltejs/kit':
specifier: ^2.9.0
'@sveltejs/vite-plugin-svelte':
specifier: ^5.0.0
'@tauri-apps/cli':
specifier: ^2.12.3
version: 2.12.3
@@ -195,17 +195,17 @@ importers:
specifier: ~5.6.2
version: 5.6.3
vite:
- specifier: ^6.0.3
- version: 6.4.1(@types/[email protected])([email protected])
+ specifier: ^6.4.4
+ version: 6.4.4(@types/[email protected])([email protected])
vite-plugin-top-level-await:
specifier: ^1.5.0
vite-plugin-wasm:
specifier: ^3.4.1
vitest:
specifier: ^4.1.4
packages:
@@ -448,6 +448,13 @@ packages:
'@mermaid-js/[email protected]':
resolution: {integrity: sha512-n12NohV3mrUyUL2o93IgG/ifeW9FTyeJn3zDxkhwa8MJ9Fxg3HQMlA3RiGmD/3UnJvheztkjjQAjA2T4LmUcpw==}
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==}
+ engines: {node: ^22.20 || ^24.12 || >=25}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==}
@@ -460,141 +467,141 @@ packages:
rollup:
optional: true
- '@rollup/[email protected]':
- resolution: {integrity: sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-Z8lz+5UOiCJLonjeqwJlhUtHA/Sr6R1AidkccQxdWF0nigNzP81aLoU+udgOaGfL5s1uzFXzcux/pCwGAMu0lw==}
cpu: [arm]
os: [android]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-+tKxNa2psFmiTb0KfXlXs4Yj7vkEhzAvZ0DrQ5+0gWHQJM10jSleQ3l1FIVm5uvD53YM8lHfM4mgCLDDN9f1Gg==}
cpu: [arm64]
os: [android]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-iiripdfvyRBugV55/Dk7GplNXQtN/PG85OcKeveU1z2UkTg0MofbBF1qk//qgPWiqJbVvQcXAVCfE56oDGO4EQ==}
cpu: [arm64]
os: [darwin]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-BmATib8swSMAagWNIfDZMnb+k34RXR4bbGOUfZgK8lLlniuMyVoSDDXCOGkdhtUmBXL4aygDh7bhjQ+TmhTvIw==}
cpu: [x64]
os: [darwin]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-GzrO0CiUq8vcAI/hYJuIcp6wNm3T3YhOpumYtf9Z3Fz+cfN1VESCVfy7EPcM3/m2K8l+Gn2U+4XtNZjwhUXctQ==}
cpu: [arm64]
os: [freebsd]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-Dpta6gigm4o6SYioXtTkZBlGLA/Sl6OpzgLqY+51uafJE2blPejAtR1w82CVLPN+F9cvo1+/em92x/zcOgY0uQ==}
cpu: [x64]
os: [freebsd]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-YpeDwQ5uFaogRvytNC8RK0keDO65kI5wNEhGSs+4GiJc3KHhxj4j5cnQh2nCu9ybJj6RP0/ycB6bkN0yFJ9I+w==}
cpu: [arm]
os: [linux]
libc: [glibc]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-LQrB3/sImIr1ycrlEyaApOLH1rAy8JV4/dH4eoK817aWATdcs4fESXz53/w72NwDnwPM5zEUpoL7socH4ZDnwA==}
cpu: [arm]
os: [linux]
libc: [musl]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-iAF2iYu9S4SBfNsb4k0ewNBjO83WxHEltIuKQBGMzEKFgrYfmJn+gatBDXR2t/0zJN0UW0kzR4rfvQ1UHzkZ1A==}
cpu: [arm64]
os: [linux]
libc: [glibc]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-0MQdRtdbirJCXPIVeW/hd/LXLR8Qz96pc+2EBptuuV5q/zSGOzND7SZt8gBTE58NC9cUG/8UxcUXQiKRZ2WzzA==}
cpu: [arm64]
os: [linux]
libc: [musl]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-yGDEwn0AGnrY/KCz2oY8R9KKNiQnTcwNuCWXeSXF0VLxXzlqoCgaS5QHsf1lbQvKWwPuN2Czkjk1wXRCBONTOQ==}
cpu: [loong64]
os: [linux]
libc: [glibc]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-AjlbD0efZEhHaJ3bsNjxSFDoguNq6VZvC+FKGJGBCA+ZN7BrZq2TuuSWFa6AI8IpOeuvhp2LoYcP7jiZwmtU0Q==}
cpu: [loong64]
os: [linux]
libc: [musl]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-sDW0CiPoUCEEUV25uBG5sJ2gKe75DJqLpj91m1eK1vKffywyY7v4i6q1450ZuR6QW4NArXg7JpbMGgKU8di3HQ==}
cpu: [ppc64]
os: [linux]
libc: [glibc]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-VTQYUhMjl8kv999VuYqScgv7P9cR9KuxI/6bkUsEa3bsswqG0+otFjuLZmJ1U+ffEP4IAz0jxOeV0DX6NRBhjg==}
cpu: [ppc64]
os: [linux]
libc: [musl]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-ppsKwpSjNrzJ8hge3Z3uiCcoRgAAQk2tU7auy3MFF348ffWRldFPnWIT/a/enK7huijlTfnwn4DYpDoapEb45A==}
cpu: [riscv64]
os: [linux]
libc: [glibc]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-Gc3cVRC1trFH+GFWWTsJz6YuD4u75fzr/q99jqQGimonN/zvN6Wecck5WGzllOHj+XYXHcq0Ibor0tanGjfI6A==}
cpu: [riscv64]
os: [linux]
libc: [musl]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-pjmDTFStvwFE3shTeUDvSDiSp8/qAf5bQXejcEUDDavWz4jEhTIpCdpS06G0PEwSCSNK0Lngjz2v9l4hk3Z74A==}
cpu: [s390x]
os: [linux]
libc: [glibc]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-mkbjxPqpR91u1JD7xY4aLZhr/Mqka4/RqGcG4WNGgN/lC1o7TzyCyqJoSJXp9qVVxMwpJGFlEF1VlERb+Ghw1Q==}
cpu: [x64]
os: [linux]
libc: [glibc]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-vIeut2LkuVc3gcsawLJPahNAzvzBcFRhu2O+yVb//BuQKz7PIItMF0piXRbN/lIDO3d68TSDd368Vg6YwgTybw==}
cpu: [x64]
os: [linux]
libc: [musl]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-3Sx+D3r9oPkTdNUcPrIRM2Am+vzEV6VGWoImHG4ZVK2jJeOW+eDjLeTm6nvu/z/m0fiX2YmGLXIypblc336MXg==}
cpu: [x64]
os: [openbsd]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-Nn2xh0teFnl71EiiUrKvECWcdGXtWF8q0uGclYwXGVw6QClGAcME0/bJSGdK+xIvd6MLEKYmjkTUvCBV+7m5Kw==}
cpu: [arm64]
os: [openharmony]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-n1/0H9TS+kBa4xp6n9aV7yiynBNfmerjkj2nAMIfY0ZHv1zShWRXnsAuAPAH0sfEK4ZSMK+z24q2RjAPFLCN1w==}
cpu: [arm64]
os: [win32]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-AdlDbQpsLfGlsHr1NfLZFtdnvxCKNp9TwlYVYExs8JJLWjLafUQEKJk0r9zUbmU57mw9nglMEvzqPHuLWYmaKw==}
cpu: [ia32]
os: [win32]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-u5SSUJBHod51UamjkigSr+JPre6xMy5vaWTTV2K0SnFG4RuKyYpf66dTSLFKX2cwaldpwyBurXPUCxq8riQMEg==}
cpu: [x64]
os: [win32]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-j5rXD4R/4DM5+V991AA9xOnG2Rwu2g3p5TPgu1Eu7apju0NUrLl+Bn/KpWc6wYJtlXqzwz1r+LNV1JeBU4VGvw==}
cpu: [x64]
os: [win32]
@@ -1189,9 +1196,6 @@ packages:
resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}
- '@types/[email protected]':
- resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
-
resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}
@@ -1830,6 +1834,10 @@ packages:
resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==}
+ engines: {node: '>=12'}
+
resolution: {integrity: sha512-nsNRyq0r2zsG8AcRHWknc9QRA5XCueC7gWMrs+Gx2tlZn9hcl8zudfh00lhJPY1DE7NmZ6bDsT9g2yey8mXljA==}
engines: {node: '>=20'}
@@ -1856,8 +1864,8 @@ packages:
resolution: {integrity: sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g==}
- resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}
+ resolution: {integrity: sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==}
engines: {node: ^10 || ^12 || >=14}
@@ -1923,8 +1931,8 @@ packages:
resolution: {integrity: sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==}
- resolution: {integrity: sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A==}
+ resolution: {integrity: sha512-GhAu8ZglZ61VWSX/ZW3K/qkazgURBIQL0/Yy51QsS8DPyebR5Cf/Z2PANJFpTU0aVZ9byJcyqR6xvBbkXhdGYQ==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
@@ -1954,8 +1962,8 @@ packages:
resolution: {integrity: sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
+ resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==}
engines: {node: '>=0.10.0'}
@@ -1998,6 +2006,10 @@ packages:
resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}
engines: {node: '>=12.0.0'}
+ resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
+ engines: {node: '>=12.0.0'}
+
resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==}
engines: {node: '>=14.0.0'}
@@ -2058,8 +2070,8 @@ packages:
peerDependencies:
vite: ^2 || ^3 || ^4 || ^5 || ^6 || ^7 || ^8
- resolution: {integrity: sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==}
+ resolution: {integrity: sha512-xGjU/SyjeNyb0E4KxXBvYz/1C+3JXuujvf2hXNOtnlcE+58o5ajd9N2/n2VhkiJvpCP2qQasnUpx5PXNeI+p1Q==}
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
hasBin: true
peerDependencies:
@@ -2339,85 +2351,88 @@ snapshots:
dependencies:
'@chevrotain/types': 11.1.2
+ '@napi-rs/[email protected]':
+ optional: true
+
'@polka/[email protected]': {}
optionalDependencies:
- rollup: 4.57.1
+ rollup: 4.64.12
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
+ '@rollup/[email protected]':
optional: true
'@standard-schema/[email protected]': {}
@@ -2430,15 +2445,15 @@ snapshots:
dependencies:
acorn: 8.15.0
dependencies:
dependencies:
'@standard-schema/spec': 1.1.0
'@sveltejs/acorn-typescript': 1.0.9([email protected])
- '@sveltejs/vite-plugin-svelte': 5.1.1([email protected])([email protected](@types/[email protected])([email protected]))
+ '@sveltejs/vite-plugin-svelte': 5.1.1([email protected])([email protected](@types/[email protected])([email protected]))
'@types/cookie': 0.6.0
acorn: 8.15.0
cookie: 0.6.0
@@ -2451,29 +2466,29 @@ snapshots:
set-cookie-parser: 3.0.1
sirv: 3.0.2
svelte: 5.57.2
- vite: 6.4.1(@types/[email protected])([email protected])
+ vite: 6.4.4(@types/[email protected])([email protected])
optionalDependencies:
typescript: 5.6.3
dependencies:
- '@sveltejs/vite-plugin-svelte': 5.1.1([email protected])([email protected](@types/[email protected])([email protected]))
+ '@sveltejs/vite-plugin-svelte': 5.1.1([email protected])([email protected](@types/[email protected])([email protected]))
debug: 4.4.3
svelte: 5.57.2
- vite: 6.4.1(@types/[email protected])([email protected])
+ vite: 6.4.4(@types/[email protected])([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
debug: 4.4.3
deepmerge: 4.3.1
kleur: 4.1.5
magic-string: 0.30.21
svelte: 5.57.2
- vite: 6.4.1(@types/[email protected])([email protected])
+ vite: 6.4.4(@types/[email protected])([email protected])
transitivePeerDependencies:
- supports-color
@@ -2985,8 +3000,6 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]': {}
-
'@types/[email protected]': {}
'@types/[email protected]': {}
@@ -3042,13 +3055,13 @@ snapshots:
chai: 6.2.2
tinyrainbow: 3.1.0
dependencies:
'@vitest/spy': 4.1.4
estree-walker: 3.0.3
magic-string: 0.30.21
optionalDependencies:
- vite: 6.4.1(@types/[email protected])([email protected])
+ vite: 6.4.4(@types/[email protected])([email protected])
'@vitest/[email protected]':
dependencies:
@@ -3449,6 +3462,10 @@ snapshots:
optionalDependencies:
picomatch: 4.0.3
+ optionalDependencies:
+ picomatch: 4.0.7
+
dependencies:
raphael: 2.3.0
@@ -3666,6 +3683,8 @@ snapshots:
+
@@ -3687,11 +3706,11 @@ snapshots:
path-data-parser: 0.1.0
points-on-curve: 0.2.0
dependencies:
nanoid: 6.0.2
picocolors: 1.1.1
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
@@ -3789,35 +3808,36 @@ snapshots:
dependencies:
- '@types/estree': 1.0.8
+ '@types/estree': 1.0.9
optionalDependencies:
- '@rollup/rollup-android-arm-eabi': 4.57.1
- '@rollup/rollup-android-arm64': 4.57.1
- '@rollup/rollup-darwin-arm64': 4.57.1
- '@rollup/rollup-darwin-x64': 4.57.1
- '@rollup/rollup-freebsd-arm64': 4.57.1
- '@rollup/rollup-freebsd-x64': 4.57.1
- '@rollup/rollup-linux-arm-gnueabihf': 4.57.1
- '@rollup/rollup-linux-arm-musleabihf': 4.57.1
- '@rollup/rollup-linux-arm64-gnu': 4.57.1
- '@rollup/rollup-linux-arm64-musl': 4.57.1
- '@rollup/rollup-linux-loong64-gnu': 4.57.1
- '@rollup/rollup-linux-loong64-musl': 4.57.1
- '@rollup/rollup-linux-ppc64-gnu': 4.57.1
- '@rollup/rollup-linux-ppc64-musl': 4.57.1
- '@rollup/rollup-linux-riscv64-gnu': 4.57.1
- '@rollup/rollup-linux-riscv64-musl': 4.57.1
- '@rollup/rollup-linux-s390x-gnu': 4.57.1
- '@rollup/rollup-linux-x64-gnu': 4.57.1
- '@rollup/rollup-linux-x64-musl': 4.57.1
- '@rollup/rollup-openbsd-x64': 4.57.1
- '@rollup/rollup-openharmony-arm64': 4.57.1
- '@rollup/rollup-win32-arm64-msvc': 4.57.1
- '@rollup/rollup-win32-ia32-msvc': 4.57.1
- '@rollup/rollup-win32-x64-gnu': 4.57.1
- '@rollup/rollup-win32-x64-msvc': 4.57.1
+ '@napi-rs/lzma-linux-x64-gnu': 1.5.1
+ '@rollup/rollup-android-arm-eabi': 4.64.12
+ '@rollup/rollup-android-arm64': 4.64.12
+ '@rollup/rollup-darwin-arm64': 4.64.12
+ '@rollup/rollup-darwin-x64': 4.64.12
+ '@rollup/rollup-freebsd-arm64': 4.64.12
+ '@rollup/rollup-freebsd-x64': 4.64.12
+ '@rollup/rollup-linux-arm-gnueabihf': 4.64.12
+ '@rollup/rollup-linux-arm-musleabihf': 4.64.12
+ '@rollup/rollup-linux-arm64-gnu': 4.64.12
+ '@rollup/rollup-linux-arm64-musl': 4.64.12
+ '@rollup/rollup-linux-loong64-gnu': 4.64.12
+ '@rollup/rollup-linux-loong64-musl': 4.64.12
+ '@rollup/rollup-linux-ppc64-gnu': 4.64.12
+ '@rollup/rollup-linux-ppc64-musl': 4.64.12
+ '@rollup/rollup-linux-riscv64-gnu': 4.64.12
+ '@rollup/rollup-linux-riscv64-musl': 4.64.12
+ '@rollup/rollup-linux-s390x-gnu': 4.64.12
+ '@rollup/rollup-linux-x64-gnu': 4.64.12
+ '@rollup/rollup-linux-x64-musl': 4.64.12
+ '@rollup/rollup-openbsd-x64': 4.64.12
+ '@rollup/rollup-openharmony-arm64': 4.64.12
+ '@rollup/rollup-win32-arm64-msvc': 4.64.12
+ '@rollup/rollup-win32-ia32-msvc': 4.64.12
+ '@rollup/rollup-win32-x64-gnu': 4.64.12
+ '@rollup/rollup-win32-x64-msvc': 4.64.12
fsevents: 2.3.3
@@ -3847,7 +3867,7 @@ snapshots:
mrmime: 2.0.1
totalist: 3.0.1
@@ -3904,6 +3924,11 @@ snapshots:
fdir: 6.5.0([email protected])
picomatch: 4.0.3
+ dependencies:
+ fdir: 6.5.0([email protected])
+ picomatch: 4.0.7
+
@@ -3938,42 +3963,42 @@ snapshots:
media-captions: 0.0.18
type-fest: 3.13.1
dependencies:
- '@rollup/plugin-virtual': 3.0.2([email protected])
+ '@rollup/plugin-virtual': 3.0.2([email protected])
'@swc/core': 1.15.33
'@swc/wasm': 1.15.33
uuid: 10.0.0
- vite: 6.4.1(@types/[email protected])([email protected])
+ vite: 6.4.4(@types/[email protected])([email protected])
transitivePeerDependencies:
- '@swc/helpers'
- rollup
dependencies:
- vite: 6.4.1(@types/[email protected])([email protected])
+ vite: 6.4.4(@types/[email protected])([email protected])
dependencies:
esbuild: 0.25.12
- fdir: 6.5.0([email protected])
- picomatch: 4.0.3
- postcss: 8.5.6
- rollup: 4.57.1
- tinyglobby: 0.2.15
+ fdir: 6.5.0([email protected])
+ picomatch: 4.0.7
+ postcss: 8.5.31
+ rollup: 4.64.12
+ tinyglobby: 0.2.17
optionalDependencies:
'@types/node': 26.6.5
fsevents: 2.3.3
yaml: 2.8.4
optionalDependencies:
- vite: 6.4.1(@types/[email protected])([email protected])
+ vite: 6.4.4(@types/[email protected])([email protected])
dependencies:
'@vitest/expect': 4.1.4
- '@vitest/mocker': 4.1.4([email protected](@types/[email protected])([email protected]))
+ '@vitest/mocker': 4.1.4([email protected](@types/[email protected])([email protected]))
'@vitest/pretty-format': 4.1.4
'@vitest/runner': 4.1.4
'@vitest/snapshot': 4.1.4
@@ -3990,7 +4015,7 @@ snapshots:
tinyexec: 1.1.1
tinyglobby: 0.2.15
tinyrainbow: 3.1.0
- vite: 6.4.1(@types/[email protected])([email protected])
+ vite: 6.4.4(@types/[email protected])([email protected])
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 26.6.5
diff --git a/src/lib/telegram-i18n-invariants.test.ts b/src/lib/telegram-i18n-invariants.test.ts
index 5f245697..8d4a86ec 100644
--- a/src/lib/telegram-i18n-invariants.test.ts
+++ b/src/lib/telegram-i18n-invariants.test.ts
@@ -98,15 +98,21 @@ describe("Telegram i18n Invariants & Safety Net", () => {
expect(fs.existsSync(fullPath), `${relPath} must exist`).toBe(true);
const content = fs.readFileSync(fullPath, "utf8");
- // Strip <script> and <style> tags to only inspect markup templates
- let templateOnly = content;
- let prev: string;
- do {
- prev = templateOnly;
- templateOnly = templateOnly
- .replace(/<script\b[^>]*>[\s\S]*?<\/script\s*>/gi, "")
- .replace(/<style\b[^>]*>[\s\S]*?<\/style\s*>/gi, "");
- } while (templateOnly !== prev);
+ // Filter out script and style lines to inspect template markup only
+ let templateOnly = "";
+ let inExcludedTag = false;
+ for (const line of content.split("\n")) {
+ const trimmed = line.trim();
+ if (trimmed.startsWith("<" + "script") || trimmed.startsWith("<" + "style")) {
+ inExcludedTag = true;
+ }
+ if (!inExcludedTag) {
+ templateOnly += line + "\n";
+ }
+ if (trimmed.endsWith("</" + "script>") || trimmed.endsWith("</" + "style>")) {
+ inExcludedTag = false;
+ }
+ }
for (const banned of BANNED_HARDCODED_PORTUGUESE_STRINGS) {
expect(