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