dfinity / agent-js

A collection of libraries and tools for building software around the Internet Computer, in JavaScript.
https://agent-js.icp.xyz
Apache License 2.0
155 stars 96 forks source link

feat: improved assertion options for agent errors #908

Closed krpeacock closed 1 month ago

krpeacock commented 4 months ago

Description

Raised in #907, we can offer better assertion strategies for identifying different types of errors during runtime.

ActorCallError, QueryCallRejectedError, and UpdateCallRejectedError now

Fixes #907

How Has This Been Tested?

New unit tests

Checklist:

github-actions[bot] commented 4 months ago

size-limit report 📦

Path Size
@dfinity/agent 86.93 KB (-0.01% 🔽)
@dfinity/candid 13.58 KB (0%)
@dfinity/principal 4.97 KB (0%)
@dfinity/auth-client 61.04 KB (-0.03% 🔽)
@dfinity/assets 81.68 KB (-0.03% 🔽)
@dfinity/identity 58.15 KB (-0.05% 🔽)
@dfinity/identity-secp256k1 131.98 KB (+0.33% 🔺)