Skip to content

Commit baad089

Browse files
committed
chore: make URL.parse deprecation a warning
1 parent 002e7f7 commit baad089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/convert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class Convert {
3131
* to deal with http/https sources in the future.
3232
*/
3333
public static uriToPath(uri: string): string {
34-
const url = URL.parse(uri)
34+
const url = URL.parse(uri) /*eslint node/no-deprecated-api: "warn"*/ // TODO
3535
if (url.protocol !== "file:" || url.path === undefined || url.path === null) {
3636
return uri
3737
}

0 commit comments

Comments
 (0)