bcash icon indicating copy to clipboard operation
bcash copied to clipboard

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

Open gtklocker opened this issue 6 years ago • 0 comments

This is a new deprecation warning shown on Node 10 (https://github.com/nodejs/node/issues/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.

gtklocker avatar Jul 25 '18 11:07 gtklocker