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

nats-io / nats.js / 14579522670 / 2 – services
86%
main: 86%

Build:
DEFAULT BRANCH: main
Ran 21 Apr 2025 07:04PM UTC
Files 39
Run time 1s
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

21 Apr 2025 07:03PM UTC coverage: 51.368%. Remained the same
services – 14579522670.2

push

github

web-flow
feat(js): expose pedantic option on consumer create (#275)

* Refactor ConsumerAPI to separate add and update logic

Inadvertently exposed ConsumerApiOptions, which at this time should only expose the `pedantic` option. Refactored the type to be backward compatible in case someone is already using it even though it has not not been released.

Introduced `addUpdate` method to handle shared logic for consumer creation and updates, while keeping `add` and `update` methods for specific actions. This enhances code clarity and maintains backward compatibility by adapting argument handling in the `add` method.

Signed-off-by: Alberto Ricart <alberto@synadia.com>

* Update types to use ConsumerCreateOptions in consumer methods

Replaced ConsumerApiOptions with ConsumerCreateOptions in the consumer addition method for better specificity and alignment. Updated related imports across the module to support the change. This ensures improved type handling and consistency in consumer creation workflows.

Signed-off-by: Alberto Ricart <alberto@synadia.com>

---------

Signed-off-by: Alberto Ricart <alberto@synadia.com>

268 of 545 branches covered (49.17%)

Branch coverage included in aggregate %.

3131 of 6072 relevant lines covered (51.56%)

1121.88 hits per line

Source Files on job services - 14579522670.2
  • Tree
  • List 39
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 14579522670
  • 32d2dc5e on github
  • Prev Job for on main (#14498280246.2)
  • Next Job for on main (#14579573686.7)
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