docs(tutorials): split setupDashClient into browser-safe core and Node wrapper#144
docs(tutorials): split setupDashClient into browser-safe core and Node wrapper#144thephez merged 2 commits intodashpay:3.1.0from
Conversation
…e wrapper Mirror the upstream platform-tutorials refactor that separates setupDashClient.mjs into setupDashClient-core.mjs (browser-safe) and a thin Node wrapper, and register the new core file in the tutorial sync map. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe tutorial splits one setup module into two: Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docs/tutorials/setup-sdk-client.md`:
- Around line 106-119: In the hexToBytes function, replace the deprecated
String.prototype.substr usage with slice to preserve behavior: change the
hex.substr(i * 2, 2) call in hexToBytes to hex.slice(i * 2, i * 2 + 2) so you
still extract two characters per iteration and keep the existing parseInt and
Number.isNaN checks unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: b55f7231-d555-4b9d-82f5-87791a8803a6
📒 Files selected for processing (2)
docs/tutorials/setup-sdk-client.mdscripts/tutorial-sync/tutorial-code-map.yml
Mirror the upstream platform-tutorials refactor that separates setupDashClient.mjs into setupDashClient-core.mjs (browser-safe) and a thin Node wrapper, and register the new core file in the tutorial sync map.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Preview build: https://dash-docs-platform--144.org.readthedocs.build/en/144/
Summary by CodeRabbit