yves 1.0.84 → 1.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/yves.js +4 -1
- package/package.json +1 -1
package/lib/yves.js
CHANGED
|
@@ -294,7 +294,10 @@ seenObjects = []
|
|
|
294
294
|
// If we have a `stream` defined, use it to print a styled string,
|
|
295
295
|
// if not, we just return the stringified object.
|
|
296
296
|
yves.inspect = function (obj, label, options) {
|
|
297
|
-
|
|
297
|
+
const str = jsonc.stringify(obj)
|
|
298
|
+
if (str) {
|
|
299
|
+
obj = jsonc.parse(str)
|
|
300
|
+
}
|
|
298
301
|
options = merge(this.defaults, options || {});
|
|
299
302
|
stack = [];
|
|
300
303
|
seenObjects = []
|