@nocobase/database 1.3.39-beta → 1.3.40-beta

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.
@@ -38,6 +38,11 @@ function escapeLike(value) {
38
38
  __name(escapeLike, "escapeLike");
39
39
  var string_default = {
40
40
  $includes(value, ctx) {
41
+ if (value === null) {
42
+ return {
43
+ [import_sequelize.Op.is]: null
44
+ };
45
+ }
41
46
  if (Array.isArray(value)) {
42
47
  const conditions = value.map((item) => ({
43
48
  [(0, import_utils.isPg)(ctx) ? import_sequelize.Op.iLike : import_sequelize.Op.like]: `%${escapeLike(item)}%`
@@ -51,6 +56,11 @@ var string_default = {
51
56
  };
52
57
  },
53
58
  $notIncludes(value, ctx) {
59
+ if (value === null) {
60
+ return {
61
+ [import_sequelize.Op.not]: null
62
+ };
63
+ }
54
64
  if (Array.isArray(value)) {
55
65
  const conditions = value.map((item) => ({
56
66
  [(0, import_utils.isPg)(ctx) ? import_sequelize.Op.notILike : import_sequelize.Op.notLike]: `%${escapeLike(item)}%`
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/database",
3
- "version": "1.3.39-beta",
3
+ "version": "1.3.40-beta",
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
- "@nocobase/logger": "1.3.39-beta",
10
- "@nocobase/utils": "1.3.39-beta",
9
+ "@nocobase/logger": "1.3.40-beta",
10
+ "@nocobase/utils": "1.3.40-beta",
11
11
  "async-mutex": "^0.3.2",
12
12
  "chalk": "^4.1.1",
13
13
  "cron-parser": "4.4.0",
@@ -38,5 +38,5 @@
38
38
  "url": "git+https://github.com/nocobase/nocobase.git",
39
39
  "directory": "packages/database"
40
40
  },
41
- "gitHead": "68daadf8575cddf9eeb09a1a672f9baf7aabe67a"
41
+ "gitHead": "802ba645f25632eed8dbfaf0291352d0fa791c7d"
42
42
  }