@nocobase/database 1.8.30 → 1.8.31
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/lib/operators/in.d.ts +10 -0
- package/lib/operators/in.js +40 -0
- package/lib/operators/index.js +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: Record<string, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var in_exports = {};
|
|
28
|
+
__export(in_exports, {
|
|
29
|
+
default: () => in_default
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(in_exports);
|
|
32
|
+
var import_lodash = require("lodash");
|
|
33
|
+
var import_sequelize = require("sequelize");
|
|
34
|
+
var in_default = {
|
|
35
|
+
$in(val, ctx) {
|
|
36
|
+
return {
|
|
37
|
+
[import_sequelize.Op.in]: val == null ? [] : (0, import_lodash.castArray)(val)
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
package/lib/operators/index.js
CHANGED
|
@@ -46,6 +46,7 @@ var import_empty = __toESM(require("./empty"));
|
|
|
46
46
|
var import_string = __toESM(require("./string"));
|
|
47
47
|
var import_eq = __toESM(require("./eq"));
|
|
48
48
|
var import_ne = __toESM(require("./ne"));
|
|
49
|
+
var import_in = __toESM(require("./in"));
|
|
49
50
|
var import_notIn = __toESM(require("./notIn"));
|
|
50
51
|
var import_boolean = __toESM(require("./boolean"));
|
|
51
52
|
var import_child_collection = __toESM(require("./child-collection"));
|
|
@@ -57,6 +58,7 @@ var operators_default = {
|
|
|
57
58
|
...import_string.default,
|
|
58
59
|
...import_eq.default,
|
|
59
60
|
...import_ne.default,
|
|
61
|
+
...import_in.default,
|
|
60
62
|
...import_notIn.default,
|
|
61
63
|
...import_boolean.default,
|
|
62
64
|
...import_child_collection.default
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/database",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.31",
|
|
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.8.
|
|
10
|
-
"@nocobase/utils": "1.8.
|
|
9
|
+
"@nocobase/logger": "1.8.31",
|
|
10
|
+
"@nocobase/utils": "1.8.31",
|
|
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": "
|
|
41
|
+
"gitHead": "02ade1124cfbb5b3a2e8813ac4c141cbade7a443"
|
|
42
42
|
}
|