laike9m / Cyberbrain

Python debugging, redefined.
http://bit.ly/cyberbrain-features
MIT License
2.51k stars 159 forks source link

fix editor display "bodyParser deprecated" #113

Closed CocaColf closed 3 years ago

CocaColf commented 3 years ago

I noticed there is a strikethrough on “bodyParser” and the editor display "bodyParser deprecated".

bodyparser deprecated

Then I read the source code of express and found it's used body-parser. Besides, express exported the raw function and it's equal to body-parser raw function.

image

So I think we can use express.raw replace bodyParser.raw, and remove the body-parser as dependence.

laike9m commented 3 years ago

Thanks a lot for the contribution! Frontend knowledge is what I lack, and your expertise is a great complement to the project!

I expect there are many more problems with the frontend code (which I'm not aware of). So if you spot anything, don't hesitate to bring it up, either via an issue or a PR.