Skip to content

Commit

Permalink
Update url.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jarred Sumner <[email protected]>
  • Loading branch information
DonIsaac and Jarred-Sumner authored Jan 23, 2025
1 parent 0fb82ea commit c550669
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/node/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ function urlParse(
parseQueryString?: boolean,
slashesDenoteHost?: boolean,
) {
const showDep = process.noDeprecation == null ? true : !process.noDeprecation;
const noDeprecation = process.noDeprecation;
const showDep = noDeprecation == null ? true : !noDeprecation;
if (!urlParseWarned && showDep && !lazyUtil().isInsideNodeModules()) {
urlParseWarned = true;
process.emitWarning(
Expand Down

0 comments on commit c550669

Please sign in to comment.