starlight-cli 1.0.45 → 1.0.46
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/dist/index.js +4 -4
- package/package.json +1 -1
- package/src/evaluator.js +3 -3
- package/src/starlight.js +1 -1
package/dist/index.js
CHANGED
|
@@ -1402,8 +1402,8 @@ formatValue(value, seen = new Set()) {
|
|
|
1402
1402
|
|
|
1403
1403
|
const t = typeof value;
|
|
1404
1404
|
|
|
1405
|
-
// Strings (
|
|
1406
|
-
if (t === 'string') return
|
|
1405
|
+
// Strings (no quotes)
|
|
1406
|
+
if (t === 'string') return value;
|
|
1407
1407
|
|
|
1408
1408
|
// Numbers
|
|
1409
1409
|
if (t === 'number') return String(value);
|
|
@@ -1423,7 +1423,7 @@ formatValue(value, seen = new Set()) {
|
|
|
1423
1423
|
return '[' + value.map(v => this.formatValue(v, seen)).join(', ') + ']';
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
|
-
// Objects (including
|
|
1426
|
+
// Objects (including user-defined functions)
|
|
1427
1427
|
if (t === 'object') {
|
|
1428
1428
|
// Detect user-defined functions (AST-based)
|
|
1429
1429
|
if (value.params && value.body) {
|
|
@@ -2955,7 +2955,7 @@ const Lexer = __nccwpck_require__(211);
|
|
|
2955
2955
|
const Parser = __nccwpck_require__(222);
|
|
2956
2956
|
const Evaluator = __nccwpck_require__(112);
|
|
2957
2957
|
|
|
2958
|
-
const VERSION = '1.0.
|
|
2958
|
+
const VERSION = '1.0.46';
|
|
2959
2959
|
|
|
2960
2960
|
const COLOR = {
|
|
2961
2961
|
reset: '\x1b[0m',
|
package/package.json
CHANGED
package/src/evaluator.js
CHANGED
|
@@ -59,8 +59,8 @@ formatValue(value, seen = new Set()) {
|
|
|
59
59
|
|
|
60
60
|
const t = typeof value;
|
|
61
61
|
|
|
62
|
-
// Strings (
|
|
63
|
-
if (t === 'string') return
|
|
62
|
+
// Strings (no quotes)
|
|
63
|
+
if (t === 'string') return value;
|
|
64
64
|
|
|
65
65
|
// Numbers
|
|
66
66
|
if (t === 'number') return String(value);
|
|
@@ -80,7 +80,7 @@ formatValue(value, seen = new Set()) {
|
|
|
80
80
|
return '[' + value.map(v => this.formatValue(v, seen)).join(', ') + ']';
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
// Objects (including
|
|
83
|
+
// Objects (including user-defined functions)
|
|
84
84
|
if (t === 'object') {
|
|
85
85
|
// Detect user-defined functions (AST-based)
|
|
86
86
|
if (value.params && value.body) {
|