bcnmy / biconomy-client-sdk

Biconomy SDK is a plug & play toolkit for dApps to build transaction legos that enable a highly customised one-click experience for their users
MIT License
76 stars 78 forks source link

feat: generalized url chain id regex check #586

Closed VGabriel45 closed 1 month ago

VGabriel45 commented 1 month ago

Improved regex check for chain id in bundler and paymaster url to fit other url structure's as well.


PR-Codex overview

This PR focuses on enhancing the extractChainIdFromUrl function in Utils.ts by improving error handling and adding documentation. It also introduces unit tests for various URL structures to ensure correct chain ID extraction.

Detailed summary

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

github-actions[bot] commented 1 month ago

size-limit report 📦

Path Size
core (esm) 55.8 KB (-0.02% 🔽)
core (cjs) 60.99 KB (-0.07% 🔽)
account (tree-shaking) 53.44 KB (+0.07% 🔺)
bundler (tree-shaking) 2.56 KB (+1.87% 🔺)
paymaster (tree-shaking) 2.21 KB (0%)
modules (tree-shaking) 40.98 KB (0%)