We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5f3428 commit 23ef22bCopy full SHA for 23ef22b
packages/utils/src/requestdata.ts
@@ -365,7 +365,7 @@ function extractQueryParams(
365
try {
366
return (
367
req.query ||
368
- (typeof URL !== undefined && new URL(originalUrl).search.slice(1)) ||
+ (typeof URL !== 'undefined' && new URL(originalUrl).search.slice(1)) ||
369
// In Node 8, `URL` isn't in the global scope, so we have to use the built-in module from Node
370
(deps && deps.url && deps.url.parse(originalUrl).query) ||
371
undefined
0 commit comments