Skip to content

Commit 3f81949

Browse files
authored
fix: Switch to URL instead of url.parse (#3256)
1 parent 7b4f315 commit 3f81949

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/process-release.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ function processRelease (argv, gyp, defaultVersion, defaultRelease) {
109109
versionDir: (name !== 'node' ? name + '-' : '') + version,
110110
ia32: {
111111
libUrl: libUrl32,
112-
libPath: normalizePath(path.relative(url.parse(baseUrl).path, url.parse(libUrl32).path))
112+
libPath: normalizePath(path.relative(new URL(baseUrl).pathname, new URL(libUrl32).pathname))
113113
},
114114
x64: {
115115
libUrl: libUrl64,
116-
libPath: normalizePath(path.relative(url.parse(baseUrl).path, url.parse(libUrl64).path))
116+
libPath: normalizePath(path.relative(new URL(baseUrl).pathname, new URL(libUrl64).pathname))
117117
},
118118
arm64: {
119119
libUrl: libUrlArm64,
120-
libPath: normalizePath(path.relative(url.parse(baseUrl).path, url.parse(libUrlArm64).path))
120+
libPath: normalizePath(path.relative(new URL(baseUrl).pathname, new URL(libUrlArm64).pathname))
121121
}
122122
}
123123
}

0 commit comments

Comments
 (0)