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

Custom inspection function on Objects via .inspect() is deprecated #72

Open
gtklocker opened this issue Jul 25, 2018 · 0 comments
Open

Comments

@gtklocker
Copy link

This is a new deprecation warning shown on Node 10 (nodejs/node#15549).

(node:10005) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated

It's shown whenever an object with inspect() defined is console.logged, like await wallet.receiveAddress(). As these inspect()s are spread out throughout the code the change needed is not trivial. The new API for this seems a bit cumbersome: https://nodejs.org/api/util.html#util_custom_inspection_functions_on_objects.

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

No branches or pull requests

1 participant