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.
Files changed (2) hide show
  1. package/lib/yves.js +4 -1
  2. 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
- obj = jsonc.parse(jsonc.stringify(obj))
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 = []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yves",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "a customizable value inspector",
5
5
  "url": "http://github.com/jorisroling/yves",
6
6
  "repository": {