@nocobase/evaluators 0.21.0-alpha.10 → 0.21.0-alpha.12

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.
@@ -31,6 +31,7 @@ __export(formulajs_exports, {
31
31
  });
32
32
  module.exports = __toCommonJS(formulajs_exports);
33
33
  var functions = __toESM(require("@formulajs/formulajs"));
34
+ var import_mathjs = require("mathjs");
34
35
  var import__ = require(".");
35
36
  const fnNames = Object.keys(functions).filter((key) => key !== "default");
36
37
  const fns = fnNames.map((key) => functions[key]);
@@ -41,7 +42,7 @@ var formulajs_default = import__.evaluate.bind(function(expression, scope = {})
41
42
  if (Number.isNaN(result) || !Number.isFinite(result)) {
42
43
  return null;
43
44
  }
44
- return functions.ROUND(result, 9);
45
+ return (0, import_mathjs.round)(result, 9);
45
46
  }
46
47
  return result;
47
48
  }, {});
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/evaluators",
3
- "version": "0.21.0-alpha.10",
3
+ "version": "0.21.0-alpha.12",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "license": "Apache-2.0",
8
8
  "dependencies": {
9
9
  "@formulajs/formulajs": "4.2.0",
10
- "@nocobase/utils": "0.21.0-alpha.10",
10
+ "@nocobase/utils": "0.21.0-alpha.12",
11
11
  "mathjs": "^10.6.0"
12
12
  },
13
13
  "repository": {
@@ -15,5 +15,5 @@
15
15
  "url": "git+https://github.com/nocobase/nocobase.git",
16
16
  "directory": "packages/evaluators"
17
17
  },
18
- "gitHead": "98adf5ec996a4f359c6ca1c4a6ac837c43b6e268"
18
+ "gitHead": "dd6229634ae442894b0f0666a00ba4a3888b8985"
19
19
  }