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 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.18';
14381
+ const VERSION = '1.1.19';
14380
14382
 
14381
14383
  const COLOR = {
14382
14384
  reset: '\x1b[0m',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starlight-cli",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "Starlight Programming Language CLI",
5
5
  "bin": {
6
6
  "starlight": "index.js"
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);
package/src/starlight.js CHANGED
@@ -12,7 +12,7 @@ const Lexer = require('./lexer');
12
12
  const Parser = require('./parser');
13
13
  const Evaluator = require('./evaluator');
14
14
 
15
- const VERSION = '1.1.18';
15
+ const VERSION = '1.1.19';
16
16
 
17
17
  const COLOR = {
18
18
  reset: '\x1b[0m',