@nocobase/database 2.0.0-alpha.56 → 2.0.0-alpha.57
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/date.js +0 -3
- package/lib/options-parser.d.ts +2 -2
- package/lib/repository.d.ts +1 -1
- package/package.json +4 -4
package/lib/operators/date.js
CHANGED
|
@@ -95,9 +95,6 @@ var date_default = {
|
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
if (Array.isArray(r)) {
|
|
98
|
-
console.log(11111111, {
|
|
99
|
-
[import_sequelize.Op.and]: [{ [import_sequelize.Op.gte]: toDate(r[0], { ctx }) }, { [import_sequelize.Op.lt]: toDate(r[1], { ctx }) }]
|
|
100
|
-
});
|
|
101
98
|
return {
|
|
102
99
|
[import_sequelize.Op.and]: [{ [import_sequelize.Op.gte]: toDate(r[0], { ctx }) }, { [import_sequelize.Op.lt]: toDate(r[1], { ctx }) }]
|
|
103
100
|
};
|
package/lib/options-parser.d.ts
CHANGED
|
@@ -26,8 +26,8 @@ export declare class OptionsParser {
|
|
|
26
26
|
static appendInheritInspectAttribute(include: any, collection: any): any;
|
|
27
27
|
isAssociation(key: string): boolean;
|
|
28
28
|
isAssociationPath(path: string): boolean;
|
|
29
|
-
filterByTkToWhereOption(): string | number | import("./repository").
|
|
30
|
-
[x: string]: import("./repository").
|
|
29
|
+
filterByTkToWhereOption(): string | number | import("./repository").TargetKey[] | {
|
|
30
|
+
[x: string]: import("./repository").TK;
|
|
31
31
|
};
|
|
32
32
|
toSequelizeParams(options?: {
|
|
33
33
|
parseSort?: boolean;
|
package/lib/repository.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export type CountOptions = Omit<SequelizeCountOptions, 'distinct' | 'where' | 'i
|
|
|
62
62
|
context?: any;
|
|
63
63
|
} & FilterByTk;
|
|
64
64
|
export interface FilterByTk {
|
|
65
|
-
filterByTk?:
|
|
65
|
+
filterByTk?: TK;
|
|
66
66
|
targetCollection?: string;
|
|
67
67
|
}
|
|
68
68
|
export type FindOptions = SequelizeFindOptions & CommonFindOptions & FilterByTk;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/database",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.57",
|
|
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": "2.0.0-alpha.
|
|
10
|
-
"@nocobase/utils": "2.0.0-alpha.
|
|
9
|
+
"@nocobase/logger": "2.0.0-alpha.57",
|
|
10
|
+
"@nocobase/utils": "2.0.0-alpha.57",
|
|
11
11
|
"async-mutex": "^0.3.2",
|
|
12
12
|
"chalk": "^4.1.1",
|
|
13
13
|
"cron-parser": "4.4.0",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
40
40
|
"directory": "packages/database"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "b9ec8bc83fd86a9cadfc4fb2f87a4e015061b289"
|
|
43
43
|
}
|