starlight-cli 1.1.13 → 1.1.14
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 +6 -2
- package/package.json +1 -1
- package/src/evaluator.js +5 -1
- package/src/starlight.js +1 -1
package/dist/index.js
CHANGED
|
@@ -10451,6 +10451,10 @@ this.global.define('random', (min, max) => {
|
|
|
10451
10451
|
}
|
|
10452
10452
|
return result;
|
|
10453
10453
|
});
|
|
10454
|
+
this.global.define('encodeURLComponent', arg => {
|
|
10455
|
+
if (arg === null || arg === undefined) return '';
|
|
10456
|
+
return encodeURIComponent(String(arg));
|
|
10457
|
+
});
|
|
10454
10458
|
|
|
10455
10459
|
this.global.define('filter', async (array, fn) => {
|
|
10456
10460
|
if (!Array.isArray(array)) {
|
|
@@ -11607,7 +11611,7 @@ async evalUpdate(node, env) {
|
|
|
11607
11611
|
|
|
11608
11612
|
}
|
|
11609
11613
|
|
|
11610
|
-
module.exports = Evaluator;
|
|
11614
|
+
module.exports = Evaluator;
|
|
11611
11615
|
|
|
11612
11616
|
/***/ }),
|
|
11613
11617
|
|
|
@@ -13730,7 +13734,7 @@ const Lexer = __nccwpck_require__(211);
|
|
|
13730
13734
|
const Parser = __nccwpck_require__(222);
|
|
13731
13735
|
const Evaluator = __nccwpck_require__(112);
|
|
13732
13736
|
|
|
13733
|
-
const VERSION = '1.1.
|
|
13737
|
+
const VERSION = '1.1.14';
|
|
13734
13738
|
|
|
13735
13739
|
const COLOR = {
|
|
13736
13740
|
reset: '\x1b[0m',
|
package/package.json
CHANGED
package/src/evaluator.js
CHANGED
|
@@ -241,6 +241,10 @@ this.global.define('random', (min, max) => {
|
|
|
241
241
|
}
|
|
242
242
|
return result;
|
|
243
243
|
});
|
|
244
|
+
this.global.define('encodeURLComponent', arg => {
|
|
245
|
+
if (arg === null || arg === undefined) return '';
|
|
246
|
+
return encodeURIComponent(String(arg));
|
|
247
|
+
});
|
|
244
248
|
|
|
245
249
|
this.global.define('filter', async (array, fn) => {
|
|
246
250
|
if (!Array.isArray(array)) {
|
|
@@ -1397,4 +1401,4 @@ async evalUpdate(node, env) {
|
|
|
1397
1401
|
|
|
1398
1402
|
}
|
|
1399
1403
|
|
|
1400
|
-
module.exports = Evaluator;
|
|
1404
|
+
module.exports = Evaluator;
|