arcjet / arcjet-js

Arcjet JS SDKs. Rate limiting, bot protection, email verification & attack defense for Node.js, Next.js, Bun & SvelteKit.
https://arcjet.com
Apache License 2.0
237 stars 5 forks source link

fix(analyze): Ensure headers are serialized correctly #1435

Closed blaine-arcjet closed 3 weeks ago

blaine-arcjet commented 3 weeks ago

Closes #1434

This fixes an issue with generating a fingerprint using headers because the ArcjetHeaders or Headers would not be serialized with JSON.stringify.

I also added a test that produced an empty-string fingerprint before the fix was implemented.

trunk-io[bot] commented 3 weeks ago

😎 Merged successfully - details.