Skip to content

Commit eebdb70

Browse files
committed
fix: revert the url.URL change due eslint suggestion
1 parent a39d3ab commit eebdb70

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.eslintrc

100644100755
+4-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
// Disable no-tabs
3333
"no-tabs": 0,
3434
// allow mixed operators '&&' and '||'
35-
"no-mixed-operators": 0
35+
"no-mixed-operators": 0,
36+
// node deprecated api
37+
"node/no-deprecated-api": 0
38+
3639
}
3740
}

lib/server_middleware/api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function injectAPI(options) {
126126
req.res = res;
127127
res.req = req;
128128

129-
req.query = req.query || url.URL(req.url, true).query || {};
129+
req.query = req.query || url.parse(req.url, true).query || {};
130130

131131
next();
132132
});

0 commit comments

Comments
 (0)