vite-plugin-html icon indicating copy to clipboard operation
vite-plugin-html copied to clipboard

Remove url.parse / 删除已弃用的对 url.parse 的调用

Open mhornbacher opened this issue 11 months ago • 0 comments

这个问题处理了NodeJS中的下列弃用警告,通过使用URL类而不是全局解析方法来处理。两者都有pathname属性,这是这里所需的。(This handles the following deprecation in NodeJS by using the URL class rather than the global parse method which both have the pathname attribute which is what is required here.)

[DEP0169] DeprecationWarning: url.parse() behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for url.parse() vulnerabilities.

修复 #149 (Fixes #149)

mhornbacher avatar Mar 06 '24 18:03 mhornbacher