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
151 stars 94 forks source link

feat: improved assertion options for agent errors #908

Open krpeacock opened 1 month ago

krpeacock commented 1 month 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 1 month ago

size-limit report 📦

Path Size
@dfinity/agent 86.14 KB (+0.17% 🔺)
@dfinity/candid 13.58 KB (0%)
@dfinity/principal 4.97 KB (0%)
@dfinity/auth-client 60.83 KB (-0.01% 🔽)
@dfinity/assets 80.85 KB (+0.25% 🔺)
@dfinity/identity 58.03 KB (+0.01% 🔺)
@dfinity/identity-secp256k1 266.8 KB (+0.09% 🔺)