cgserver 7.6.1962 → 7.6.1971
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.
|
@@ -102,7 +102,7 @@ export declare class core {
|
|
|
102
102
|
static sleep(milliseconds: number): Promise<unknown>;
|
|
103
103
|
static safeCall(func: Function, thisArg?: any, ...params: any[]): Promise<any>;
|
|
104
104
|
static getYearWeek(time: number): number;
|
|
105
|
-
static toBase64(content: string):
|
|
106
|
-
static aesEncode(content: string, key: string, iv: string):
|
|
107
|
-
static aesDecode(base64_str: string, key: string, iv: string):
|
|
105
|
+
static toBase64(content: string): string;
|
|
106
|
+
static aesEncode(content: string, key: string, iv: string): string;
|
|
107
|
+
static aesDecode(base64_str: string, key: string, iv: string): string;
|
|
108
108
|
}
|
|
@@ -33,7 +33,7 @@ export declare class MongoBaseService<T> {
|
|
|
33
33
|
id: number;
|
|
34
34
|
des: string;
|
|
35
35
|
};
|
|
36
|
-
rs: mongo.Document | mongo.UpdateResult;
|
|
36
|
+
rs: mongo.BSON.Document | mongo.UpdateResult;
|
|
37
37
|
}>;
|
|
38
38
|
insert(model: T): Promise<{
|
|
39
39
|
errcode: {
|
|
@@ -63,7 +63,7 @@ export declare class MongoBaseService<T> {
|
|
|
63
63
|
};
|
|
64
64
|
rs: string;
|
|
65
65
|
}>;
|
|
66
|
-
aggregate(pipeline?: Document[], options?: mongo.AggregateOptions): mongo.AggregationCursor<mongo.Document>;
|
|
66
|
+
aggregate(pipeline?: Document[], options?: mongo.AggregateOptions): mongo.AggregationCursor<mongo.BSON.Document>;
|
|
67
67
|
/**
|
|
68
68
|
* 仅仅支持一级
|
|
69
69
|
* @param array 数据名称 比如 items
|
|
@@ -122,7 +122,7 @@ declare class MongoManager {
|
|
|
122
122
|
id: number;
|
|
123
123
|
des: string;
|
|
124
124
|
};
|
|
125
|
-
rs: mongo.Document | mongo.UpdateResult;
|
|
125
|
+
rs: mongo.BSON.Document | mongo.UpdateResult;
|
|
126
126
|
}>;
|
|
127
127
|
createIndex(collection: string, index: any, options?: mongo.CreateIndexesOptions): Promise<{
|
|
128
128
|
errcode: {
|
|
@@ -138,6 +138,6 @@ declare class MongoManager {
|
|
|
138
138
|
};
|
|
139
139
|
list: any[];
|
|
140
140
|
}>;
|
|
141
|
-
aggregate(collection: string, pipeline?: Document[], options?: mongo.AggregateOptions): mongo.AggregationCursor<mongo.Document>;
|
|
141
|
+
aggregate(collection: string, pipeline?: Document[], options?: mongo.AggregateOptions): mongo.AggregationCursor<mongo.BSON.Document>;
|
|
142
142
|
}
|
|
143
143
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cgserver",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.1971",
|
|
4
4
|
"author": "trojan",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"description": "free for all.Websocket or Http",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"jsonc": "^2.0.0",
|
|
64
64
|
"log4js": "^6.3.0",
|
|
65
65
|
"mime": "^3.0.0",
|
|
66
|
-
"mongodb": "^
|
|
66
|
+
"mongodb": "^5.2.0",
|
|
67
67
|
"mssql": "^8.0.2",
|
|
68
68
|
"mysql": "^2.18.1",
|
|
69
69
|
"nodemailer": "^6.7.0",
|