starlight-cli 1.1.18 → 1.1.19
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 -2
- package/package.json +1 -1
- package/src/evaluator.js +3 -1
- package/src/starlight.js +1 -1
package/dist/index.js
CHANGED
|
@@ -10517,7 +10517,9 @@ this.global.define('encodeURLComponent', arg => {
|
|
|
10517
10517
|
if (arg === null || arg === undefined) return '';
|
|
10518
10518
|
return encodeURIComponent(String(arg));
|
|
10519
10519
|
});
|
|
10520
|
-
|
|
10520
|
+
this.global.define("Date", Date);
|
|
10521
|
+
this.global.define("Math", Math);
|
|
10522
|
+
this.global.define("String", String);
|
|
10521
10523
|
this.global.define('filter', async (array, fn) => {
|
|
10522
10524
|
if (!Array.isArray(array)) {
|
|
10523
10525
|
throw new RuntimeError('filter() expects an array', null, evaluator.source);
|
|
@@ -14376,7 +14378,7 @@ const Lexer = __nccwpck_require__(211);
|
|
|
14376
14378
|
const Parser = __nccwpck_require__(222);
|
|
14377
14379
|
const Evaluator = __nccwpck_require__(112);
|
|
14378
14380
|
|
|
14379
|
-
const VERSION = '1.1.
|
|
14381
|
+
const VERSION = '1.1.19';
|
|
14380
14382
|
|
|
14381
14383
|
const COLOR = {
|
|
14382
14384
|
reset: '\x1b[0m',
|
package/package.json
CHANGED
package/src/evaluator.js
CHANGED
|
@@ -307,7 +307,9 @@ this.global.define('encodeURLComponent', arg => {
|
|
|
307
307
|
if (arg === null || arg === undefined) return '';
|
|
308
308
|
return encodeURIComponent(String(arg));
|
|
309
309
|
});
|
|
310
|
-
|
|
310
|
+
this.global.define("Date", Date);
|
|
311
|
+
this.global.define("Math", Math);
|
|
312
|
+
this.global.define("String", String);
|
|
311
313
|
this.global.define('filter', async (array, fn) => {
|
|
312
314
|
if (!Array.isArray(array)) {
|
|
313
315
|
throw new RuntimeError('filter() expects an array', null, evaluator.source);
|