Last active
August 29, 2015 14:04
-
-
Save desbo/9948c411dc1bfd4a0a3d to your computer and use it in GitHub Desktop.
Fix deprecation warnings when using res.json(status, response) in Express 4.7.0 https://github.com/strongloop/express/blob/master/History.md#470--2014-07-25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -exec sed -i -r -e 's/(jsonp?|send)\(([0-9]+)\,\ /status\(\2\)\.\1(/g' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment