@almadar/evaluator 2.47.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 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);
@@ -4299,6 +4307,8 @@ var OPERATOR_TABLE = {
4299
4307
  "math/round": evalMathRound,
4300
4308
  "math/pow": evalMathPow,
4301
4309
  "math/sqrt": evalMathSqrt,
4310
+ "math/log10": evalMathLog10,
4311
+ "math/ln": evalMathLn,
4302
4312
  "math/mod": evalMathMod,
4303
4313
  "math/sign": evalMathSign,
4304
4314
  "math/lerp": evalMathLerp,