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 CHANGED
@@ -1402,8 +1402,8 @@ formatValue(value, seen = new Set()) {
1402
1402
 
1403
1403
  const t = typeof value;
1404
1404
 
1405
- // Strings (quoted)
1406
- if (t === 'string') return `"${value}"`;
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 your language functions)
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.28';
2958
+ const VERSION = '1.0.46';
2959
2959
 
2960
2960
  const COLOR = {
2961
2961
  reset: '\x1b[0m',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starlight-cli",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "Starlight Programming Language CLI",
5
5
  "bin": {
6
6
  "starlight": "index.js"
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 (quoted)
63
- if (t === 'string') return `"${value}"`;
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 your language functions)
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) {
package/src/starlight.js CHANGED
@@ -9,7 +9,7 @@ const Lexer = require('./lexer');
9
9
  const Parser = require('./parser');
10
10
  const Evaluator = require('./evaluator');
11
11
 
12
- const VERSION = '1.0.28';
12
+ const VERSION = '1.0.46';
13
13
 
14
14
  const COLOR = {
15
15
  reset: '\x1b[0m',