Skip to content

v1.1.0

Compare
Choose a tag to compare
@tristanls tristanls released this 05 Jul 13:57
· 12 commits to master since this release

When using Node.js url module to parse URLs, when a query string is absent, it is set to null. This bypasses JavaScript default parameter syntax (because defaults are only set for undefined parameters), resulting in an Error being thrown. This update sets default parameters the old JavaScript way via ||, in addition to using default parameter syntax. Now, if query string is falsy, a default "" will be used instead of an Error being thrown.