@sc-voice/tools 3.6.0 → 3.7.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.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "Utilities for SC-Voice",
5
5
  "main": "index.mjs",
6
6
  "files": [
@@ -93,6 +93,15 @@ export class Interval {
93
93
 
94
94
  toString() {
95
95
  let { lo, hi } = this;
96
+ if (lo === hi) {
97
+ return [
98
+ lo === INFINITY ? '(' : '[',
99
+ lo === INFINITY ? MINUS_INFINITY : lo,
100
+ lo == null ? '' : ',',
101
+ hi === INFINITY ? PLUS_INFINITY : hi,
102
+ hi === INFINITY ? ')' : ']',
103
+ ].join('');
104
+ }
96
105
  return [
97
106
  lo === INFINITY ? '(' : '[',
98
107
  lo === INFINITY ? MINUS_INFINITY : lo,
@@ -65,13 +65,22 @@ export class ColorConsole {
65
65
  });
66
66
  }
67
67
 
68
- fyi(msg, ...rest) {
68
+ fyi(...rest) {
69
+ return this.fyi2(...rest);
70
+ }
71
+
72
+ fyi1(...rest) {
69
73
  let color = this.colorFyi1;
70
- this.write(...this.color(color, rest));
74
+ this.write(...this.color(color, ...rest));
75
+ }
76
+
77
+ fyi2(...rest) {
78
+ let color = this.colorFyi2;
79
+ this.write(...this.color(color, ...rest));
71
80
  }
72
81
 
73
82
  ok(...rest) {
74
- return this.ok1(...rest);
83
+ return this.ok2(...rest);
75
84
  }
76
85
 
77
86
  ok1(...rest) {
@@ -85,7 +94,7 @@ export class ColorConsole {
85
94
  }
86
95
 
87
96
  bad(...rest) {
88
- return this.bad1(...rest);
97
+ return this.bad2(...rest);
89
98
  }
90
99
 
91
100
  bad1(...rest) {