vocdoni / vocdoni-sdk

Vocdoni SDK for API
GNU Affero General Public License v3.0
13 stars 6 forks source link

Client: add cspInfo call to cspUrl #375

Open NateWilliams2 opened 7 months ago

NateWilliams2 commented 7 months ago

Adds a call to cspUrl() in client.cspInfo().

This fixes a behavior where client.cspInfo() would return a No CSP URL set error when called before the client has registered any voters. This is because the CSP URL is currently only set during cspStep for voter validation.

Target behavior: client.cspInfo() should be usable once the client has created an election using a CSP census, even if no voters have registered.

github-actions[bot] commented 7 months ago

size-limit report 📦

Path Size
dist/index.js 1.54 MB (+0.01% 🔺)
dist/index.mjs 1.54 MB (+0.01% 🔺)
dist/index.umd.js 1.54 MB (+0.01% 🔺)