starlight-cli 1.0.26 → 1.0.27
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 +8 -2
- package/package.json +1 -1
- package/src/evaluator.js +7 -1
- package/src/starlight.js +1 -1
package/dist/index.js
CHANGED
|
@@ -1637,7 +1637,13 @@ async evalCompoundAssignment(node, env) {
|
|
|
1637
1637
|
|
|
1638
1638
|
async evalSldeploy(node, env) {
|
|
1639
1639
|
const val = await this.evaluate(node.expr, env);
|
|
1640
|
-
|
|
1640
|
+
|
|
1641
|
+
if (typeof val === 'object' && val !== null) {
|
|
1642
|
+
console.log(JSON.stringify(val, null, 2));
|
|
1643
|
+
} else {
|
|
1644
|
+
console.log(val);
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1641
1647
|
return val;
|
|
1642
1648
|
}
|
|
1643
1649
|
|
|
@@ -2633,7 +2639,7 @@ const Lexer = __nccwpck_require__(211);
|
|
|
2633
2639
|
const Parser = __nccwpck_require__(222);
|
|
2634
2640
|
const Evaluator = __nccwpck_require__(112);
|
|
2635
2641
|
|
|
2636
|
-
const VERSION = '1.0.
|
|
2642
|
+
const VERSION = '1.0.27';
|
|
2637
2643
|
|
|
2638
2644
|
const COLOR = {
|
|
2639
2645
|
reset: '\x1b[0m',
|
package/package.json
CHANGED
package/src/evaluator.js
CHANGED
|
@@ -294,7 +294,13 @@ async evalCompoundAssignment(node, env) {
|
|
|
294
294
|
|
|
295
295
|
async evalSldeploy(node, env) {
|
|
296
296
|
const val = await this.evaluate(node.expr, env);
|
|
297
|
-
|
|
297
|
+
|
|
298
|
+
if (typeof val === 'object' && val !== null) {
|
|
299
|
+
console.log(JSON.stringify(val, null, 2));
|
|
300
|
+
} else {
|
|
301
|
+
console.log(val);
|
|
302
|
+
}
|
|
303
|
+
|
|
298
304
|
return val;
|
|
299
305
|
}
|
|
300
306
|
|