debug icon indicating copy to clipboard operation
debug copied to clipboard

.inspect() properties are deprecated

Open cod3gen opened this issue 7 years ago • 2 comments

Getting deprecated warning message while using debug in nodejs, ref:

DEP0079: Custom inspection function on Objects via .inspect() Type: End-of-Life

Using a property named inspect on an object to specify a custom inspection function for util.inspect() is deprecated. Use util.inspect.custom instead. For backward compatibility with Node.js prior to version 6.4.0, both may be specified.

https://nodejs.org/api/deprecations.html#deprecations_dep0079_custom_inspection_function_on_objects_via_inspect

cod3gen avatar Jul 05 '19 18:07 cod3gen

útil.inspect is very much not deprecated. It's custom properties called .inspect() that are. I'm not sure that we use them, this might be coming from your application.

Qix- avatar Jul 05 '19 20:07 Qix-

Just checked - these are coming from elsewhere in your application. We don't use them.

Qix- avatar Jul 05 '19 20:07 Qix-