@nocobase/evaluators 1.6.0-alpha.3 → 1.6.0-alpha.30

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.
@@ -43,6 +43,6 @@ var import_formulajs = __toESM(require("../../utils/formulajs"));
43
43
  var formulajs_default = {
44
44
  label: "Formula.js",
45
45
  tooltip: '{{t("Formula.js supports most Microsoft Excel formula functions.")}}',
46
- link: "https://formulajs.info/functions/",
46
+ link: "https://docs.nocobase.com/handbook/calculation-engines/formula",
47
47
  evaluate: import_formulajs.default
48
48
  };
@@ -43,6 +43,6 @@ var import_mathjs = __toESM(require("../../utils/mathjs"));
43
43
  var mathjs_default = {
44
44
  label: "Math.js",
45
45
  tooltip: `{{t('Math.js comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types.')}}`,
46
- link: "https://mathjs.org/",
46
+ link: "https://docs.nocobase.com/handbook/calculation-engines/mathjs",
47
47
  evaluate: import_mathjs.default
48
48
  };
@@ -51,7 +51,7 @@ var formulajs_default = import__.evaluate.bind(function(expression, scope = {})
51
51
  if (Number.isNaN(result) || !Number.isFinite(result)) {
52
52
  return null;
53
53
  }
54
- return (0, import_mathjs.round)(result, 9);
54
+ return (0, import_mathjs.round)(result, 14);
55
55
  }
56
56
  return result;
57
57
  }, {});
@@ -48,7 +48,7 @@ var mathjs_default = import__.evaluate.bind(
48
48
  if (Number.isNaN(result) || !Number.isFinite(result)) {
49
49
  return null;
50
50
  }
51
- return math.round(result, 9);
51
+ return math.round(result, 14);
52
52
  }
53
53
  if (result instanceof math.Matrix) {
54
54
  return result.toArray();
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/evaluators",
3
- "version": "1.6.0-alpha.3",
3
+ "version": "1.6.0-alpha.30",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "license": "AGPL-3.0",
8
8
  "dependencies": {
9
- "@formulajs/formulajs": "4.2.0",
10
- "@nocobase/utils": "1.6.0-alpha.3",
9
+ "@formulajs/formulajs": "4.4.9",
10
+ "@nocobase/utils": "1.6.0-alpha.30",
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": "205b4aca5556d5af70679fa401394943a9e51670"
18
+ "gitHead": "4d092cae372fada3df9b57c55705ea3b7dfa6786"
19
19
  }