CacheControl / json-rules-engine

A rules engine expressed in JSON
ISC License
2.6k stars 461 forks source link

fix: Function to handle BigInt value in JSON.stringify #363

Open nirmal25990 opened 8 months ago

nirmal25990 commented 8 months ago
chris-pardy commented 5 days ago

@nirmal25990 I'd prefer if we didn't have a custom json stringifier function here. I think we'd be better off changing the signature of the debug method to take mulitple arguments and pass them all unaltered to console.log (or console.debug honestly) The built-in formatters already handle objects and BigInts fine so that's probably a much better option than needing the JSON.stringify here.