@tachybase/database 1.3.19 → 1.3.21

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.
@@ -21,11 +21,7 @@ __export(filter_match_exports, {
21
21
  filterMatch: () => filterMatch
22
22
  });
23
23
  module.exports = __toCommonJS(filter_match_exports);
24
- var import_mathjs = require("mathjs");
25
24
  function filterMatch(model, where) {
26
- if (where.filter !== void 0) {
27
- where = import_mathjs.filter;
28
- }
29
25
  const operatorFunctions = {
30
26
  $eq: /* @__PURE__ */ __name((value, condition) => value === condition, "$eq"),
31
27
  $not: /* @__PURE__ */ __name((value, condition) => !filterMatch(model, condition), "$not"),
@@ -31,7 +31,6 @@ __export(view_inference_exports, {
31
31
  ViewFieldInference: () => ViewFieldInference
32
32
  });
33
33
  module.exports = __toCommonJS(view_inference_exports);
34
- var import_mathjs = require("mathjs");
35
34
  var import_field_type_map = __toESM(require("./field-type-map"));
36
35
  const _ViewFieldInference = class _ViewFieldInference {
37
36
  static extractTypeFromDefinition(typeDefinition) {
@@ -127,7 +126,7 @@ const _ViewFieldInference = class _ViewFieldInference {
127
126
  }
128
127
  const queryType = this.extractTypeFromDefinition(options.type);
129
128
  const mappedType = fieldTypeMap[queryType];
130
- if ((0, import_mathjs.isArray)(mappedType)) {
129
+ if (Array.isArray(mappedType)) {
131
130
  return {
132
131
  type: mappedType[0],
133
132
  possibleTypes: mappedType
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@tachybase/database",
3
- "version": "1.3.19",
3
+ "version": "1.3.21",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "async-mutex": "^0.3.2",
9
+ "async-mutex": "^0.5.0",
10
10
  "chalk": "^4.1.2",
11
11
  "cron-parser": "4.9.0",
12
12
  "dayjs": "1.11.13",
@@ -14,25 +14,24 @@
14
14
  "deepmerge": "^4.3.1",
15
15
  "dottie": "2.0.6",
16
16
  "excel-date-to-js": "^1.1.5",
17
- "exponential-backoff": "^3.1.1",
17
+ "exponential-backoff": "^3.1.2",
18
18
  "flat": "^5.0.2",
19
19
  "glob": "11.0.0",
20
20
  "graphlib": "^2.1.8",
21
21
  "lodash": "^4.17.21",
22
- "mathjs": "^10.6.4",
23
22
  "nanoid": "^3.3.8",
24
23
  "node-fetch": "^2.7.0",
25
24
  "qs": "^6.14.0",
26
25
  "semver": "7.7.2",
27
26
  "sequelize": "^6.37.5",
28
27
  "umzug": "^3.8.2",
29
- "@tachybase/utils": "1.3.19",
30
- "@tachybase/logger": "1.3.19"
28
+ "@tachybase/logger": "1.3.21",
29
+ "@tachybase/utils": "1.3.21"
31
30
  },
32
31
  "devDependencies": {
33
32
  "@types/flat": "^5.0.5",
34
33
  "@types/glob": "^7.2.0",
35
- "@types/lodash": "^4.17.13"
34
+ "@types/lodash": "^4.17.20"
36
35
  },
37
36
  "scripts": {
38
37
  "build": "tachybase-build --no-dts @tachybase/database"