• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

47ng / cloak / 11014068775
61%

Build:
DEFAULT BRANCH: next
Ran 24 Sep 2024 12:47PM UTC
Jobs 1
Files 5
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Sep 2024 12:46PM UTC coverage: 60.784% (+3.1%) from 57.709%
11014068775

push

github

web-flow
feat: Fix decryption of strings larger than 4 MiB  (#411)

* fix: fix decrypting strings larger than 4 MiB

The `cloakedStringRegex` fails to parse ciphertexts larger than about
4 MiB. This is due to [limitations in V8's regex engine][1].

I've adapted the implementation from
https://github.com/validatorjs/validator.js/pull/503 under the MIT
license, as it solves the error.

[1]: https://issues.chromium.org/issues/42207207

* feat: export `parseCloakedString` function

This function can be used instead of `cloakedStringRegex` on large
strings.

* feat: deprecate `cloakedStringRegex`

This regex fails on large 4 MiB + strings.
`parseCloakedString` should be used instead when possible.

* test: test decrypting strings larger than 4 MiB

This fails in Node.JS v20.17.0 with @47ng/cloak v1.1.0.

* chore: Make hex & base64 Regexes case-insensitive

---------

Co-authored-by: François Best <github@francoisbest.com>

31 of 62 branches covered (50.0%)

Branch coverage included in aggregate %.

13 of 17 new or added lines in 1 file covered. (76.47%)

124 of 193 relevant lines covered (64.25%)

2.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11014068775.1 24 Sep 2024 12:47PM UTC 5
60.78
GitHub Action Run
Source Files on build 11014068775
  • Tree
  • List 5
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • fc619b74 on github
  • Prev Build on next (#1578150144)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc