@sc-voice/tools 3.17.0 → 3.18.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-voice/tools",
3
- "version": "3.17.0",
3
+ "version": "3.18.0",
4
4
  "description": "Utilities for SC-Voice",
5
5
  "main": "index.mjs",
6
6
  "files": [
@@ -62,9 +62,11 @@ export class ColorConsole {
62
62
  const msg = 'c10e.valueOf';
63
63
  let { precision } = this;
64
64
  switch (typeof thing) {
65
+ case 'undefined':
66
+ return 'undefined';
65
67
  case 'object': {
66
- if (thing === null) {
67
- return 'null';
68
+ if (thing == null) {
69
+ return '' + thing;
68
70
  }
69
71
  if (thing instanceof Date) {
70
72
  return this.dateFormat.format(thing);
@@ -101,7 +103,7 @@ export class ColorConsole {
101
103
  switch (typeof thing) {
102
104
  case 'object': {
103
105
  if (
104
- thing === null ||
106
+ thing == null ||
105
107
  (thing.constructor !== Object &&
106
108
  typeof thing.toString === 'function')
107
109
  ) {