@almadar/evaluator 2.46.0 → 2.48.0
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 +18 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -714,6 +714,14 @@ function evalMathSqrt(args, evaluate2, ctx) {
|
|
|
714
714
|
const n = evaluate2(args[0], ctx);
|
|
715
715
|
return Math.sqrt(n);
|
|
716
716
|
}
|
|
717
|
+
function evalMathLog10(args, evaluate2, ctx) {
|
|
718
|
+
const n = evaluate2(args[0], ctx);
|
|
719
|
+
return Math.log10(n);
|
|
720
|
+
}
|
|
721
|
+
function evalMathLn(args, evaluate2, ctx) {
|
|
722
|
+
const n = evaluate2(args[0], ctx);
|
|
723
|
+
return Math.log(n);
|
|
724
|
+
}
|
|
717
725
|
function evalMathMod(args, evaluate2, ctx) {
|
|
718
726
|
const a = evaluate2(args[0], ctx);
|
|
719
727
|
const b = evaluate2(args[1], ctx);
|
|
@@ -4224,6 +4232,14 @@ var OPERATOR_TABLE = {
|
|
|
4224
4232
|
"last": evalLast,
|
|
4225
4233
|
"nth": evalNth,
|
|
4226
4234
|
"includes": evalIncludes,
|
|
4235
|
+
// Legacy bare alias for 'str/join' — orbital-core's evaluator already
|
|
4236
|
+
// dispatches both spellings to the same op (`"join" | "str/join" =>
|
|
4237
|
+
// K::JoinOp`, evaluator/operators/mod.rs:121); this interpreter had no
|
|
4238
|
+
// entry at all for the bare form, so `(join arr sep)` fell through to the
|
|
4239
|
+
// generic "unknown operator, treat as literal data" path instead of
|
|
4240
|
+
// erroring OR joining — confirmed live via project-friday's Global Search
|
|
4241
|
+
// (L-26, `Almadar_LOLO_Gaps.md`).
|
|
4242
|
+
"join": evalStrJoin,
|
|
4227
4243
|
"empty": evalEmpty,
|
|
4228
4244
|
"list": evalList,
|
|
4229
4245
|
"set": (args, evaluate2, ctx) => {
|
|
@@ -4291,6 +4307,8 @@ var OPERATOR_TABLE = {
|
|
|
4291
4307
|
"math/round": evalMathRound,
|
|
4292
4308
|
"math/pow": evalMathPow,
|
|
4293
4309
|
"math/sqrt": evalMathSqrt,
|
|
4310
|
+
"math/log10": evalMathLog10,
|
|
4311
|
+
"math/ln": evalMathLn,
|
|
4294
4312
|
"math/mod": evalMathMod,
|
|
4295
4313
|
"math/sign": evalMathSign,
|
|
4296
4314
|
"math/lerp": evalMathLerp,
|