| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…oss browser and Node * Adds timeFormat option to debug instances, settable as DEBUG_TIME_FORMAT env var * Deprecates hideDate option, equated to timeFormat === 'none' * Allows timeFormat of choice: none, iso, diff, or localized (taking into account process.env.TZ) * Normalizes behavior across browser & Node: all timeFormats are available in both, but the defaults are kept as-is. * Deprecates createDebug.humanize and adds createDebug.withTimeFormat helper instead
… be tested against both browser & NodeJS envs
|
@Qix- feedback? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I started this effort because I was in sore need of localized dates (we have Java & Node microservices and it's a pain that one takes into account timezone while the other does not). Then I realized there was a lot more I could do that would be both backwards-compatible, more powerful and more aligned across browser and Node. So this PR:
@Qix- I was surprised at how outdated (dev)Dependencies are and was unable to run npm test (only mocha test.js directly), and dind't find any CI script. The browserify build was not documented so I added an NPM script for it.. It may be useful to add it to the NPM files for those of us wanting to use debug in the browser by copying the dist to an asset folder. I think this change is fully backwards-compatible (at least all tests succeed including the 5 new ones I added)