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

PeculiarVentures / pvtsutils / 39253389570
93%

Build:
DEFAULT BRANCH: master
Ran 19 Oct 2026 12:36PM UTC
Jobs 1
Files 19
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

19 Oct 2026 12:36PM UTC coverage: 93.137% (+0.8%) from 92.369%
39253389570

push

github

web-flow
feat: add integer codecs and base64url allowPadding for pvutils migration (#46)

* feat(integer): add uint and int big-endian codecs

Add the @peculiar/utils/integer entry point with unsigned (configurable
bits per byte, fixed length) and two's complement codecs that accept
number or bigint. They replace pvutils utilToBase, utilFromBase,
utilEncodeTC and utilDecodeTC without their precision limits.

Document the integer codecs and a pvutils migration table in the README.

* feat(encoding): add allowPadding option to base64url decoding

base64url.decode and base64url.is accept correctly padded input such as
"aGk=" when allowPadding is set. The default stays strict. The option is
also available through convert.decode("base64url", text, options).

* fix(integer): reject empty input in int.isMinimal

An ASN.1 INTEGER needs at least one content octet (X.690 8.3.1), and
int.decode already rejects empty input, so isMinimal now returns false
for it.

Add round-trip tests for every bitsPerByte width from 1 to 8, and note in
the pvutils migration guide that padStart does not reproduce the empty
result padNumber returned for too-long numbers.

384 of 466 branches covered (82.4%)

87 of 88 new or added lines in 3 files covered. (98.86%)

665 of 714 relevant lines covered (93.14%)

30.94 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
92.31
-7.69% src/encoding/base64url.ts
Jobs
ID Job ID Ran Files Coverage
1 39253389570.1 19 Oct 2026 12:36PM UTC 19
93.14
GitHub Action Run
Source Files on build 39253389570
  • Tree
  • List 19
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #39253389570
  • 5745a6f3 on github
  • Prev Build on master (#39238624426)
  • Next Build on master (#39253649702)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc