Last 12 weeks · 0 commits
2 of 6 standards met
Hi! I successfully build the example using my very limited knowledge about JS world. I have a question: is "full rerun" of scripts expected when I do refresh on the page? What I encountered is this: 1. I start on home 2. Click 'about' href and get: !Image 3. I click refresh (or ctrl+R) and get: !Image So this means that the state is lost no? So all user has to do to get logged out is click ctrl+r by accident even and his session is lost? As I said: I am VERY new to this so please tell me if maybe I'm doing something wrong (probably) Steps to reproduce: 1. Clone repo 2. Run 3. Run Caveat: did not actually ever exit. I waited like a 1min but got stuck on:
Summary Fixes issue #77 by adding null safety check when accessing in the main flamethrower function. Problem The current code can throw a TypeError when is undefined: If is undefined, accessing throws: Solution Added null safety check before accessing : Changes ✅ Added null safety check in ✅ Added comprehensive test for undefined opts scenario ✅ Maintains backwards compatibility with existing configurations ✅ No breaking changes to the API Test Plan [x] Added new test: "flamethrower initializes without error when opts is undefined" [x] Verified existing tests still pass [x] Tested with various configuration scenarios [x] Confirmed backwards compatibility Impact Bundle Size: No change (same logic, safer implementation) Performance: No impact Compatibility: Fully backwards compatible Security: Improves robustness against undefined input References Resolves #77 Related to initialization safety improvements 🤖 Generated with Claude Code Co-Authored-By: Claude
Repository: fireship-io/flamethrower. Description: A blazingly fast router for static sites Stars: 2778, Forks: 111. Primary language: TypeScript. Languages: TypeScript (69.9%), HTML (24.3%), JavaScript (5.8%). License: MIT. Open PRs: 12, open issues: 11. Last activity: 2y ago. Community health: 37%. Top contributors: codediodeio, ekwoka, b0iq, omar-dulaimi, prowebat, tsar-boomba, vinaykulk621, sxnney, Badhan-abhishek, XeoSpheric and others.