We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48871ec commit f9e75ffCopy full SHA for f9e75ff
lib/util/url.js
@@ -1,6 +1,8 @@
1
+'use strict';
2
+
3
// url.resolve is deprecated because it invokes the deprecated url.parse() internally
4
// https://nodejs.org/api/url.html#urlresolvefrom-to
-module.exports.resolve = function (from, to) {
5
+module.exports.resolve = function(from, to) {
6
const resolvedUrl = new URL(to, new URL(from, 'resolve://'));
7
if (resolvedUrl.protocol === 'resolve:') {
8
// `from` is a relative URL.
0 commit comments