Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url.parse is deprecated #16

Open
ShenHongFei opened this issue Oct 21, 2024 · 0 comments
Open

url.parse is deprecated #16

ShenHongFei opened this issue Oct 21, 2024 · 0 comments

Comments

@ShenHongFei
Copy link

nodejs/node#55017

(node:33948) [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.
    at urlParse (node:url:129:13)
    at fastparse (webpack://my-repl/node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js:97:1)
    at parseurl (webpack://my-repl/node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js:51:1)
    at Object.get path (webpack://my-repl/node_modules/.pnpm/koa@2.15.3_patch_hash=p7ybv54qzz4vmboaajk6ep5psi/node_modules/koa/lib/request.js:145:1)
    at Object.router (D:\0\lib\server.ts:763:66)
    at dispatch (webpack://my-repl/node_modules/.pnpm/koa-compose@4.1.0/node_modules/koa-compose/index.js:42:1)
    at cors (webpack://my-repl/node_modules/.pnpm/@koa+cors@5.0.0/node_modules/@koa/cors/index.js:109:1)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async compressMiddleware (webpack://my-repl/node_modules/.pnpm/koa-compress@5.1.1/node_modules/koa-compress/lib/index.js:56:1)
    at async Object.entry (D:\0\lib\server.ts:724:13)

Can it be achieved by other alternative methods?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants