@maiyunnet/kebab 3.2.10 → 3.2.11
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/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/s3.d.ts +1 -1
- package/lib/ws.js +5 -4
- package/package.json +7 -7
- package/sys/mod.d.ts +1 -0
- package/sys/mod.js +5 -6
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* --- 本文件用来定义每个目录实体地址的常量 ---
|
|
7
7
|
*/
|
|
8
8
|
/** --- 当前系统版本号 --- */
|
|
9
|
-
export const VER = '3.2.
|
|
9
|
+
export const VER = '3.2.11';
|
|
10
10
|
// --- 服务端用的路径 ---
|
|
11
11
|
const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
|
|
12
12
|
/** --- /xxx/xxx --- */
|
package/lib/s3.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare class S3 {
|
|
|
60
60
|
* @param key 对象路径
|
|
61
61
|
* @param bucket bucket 名
|
|
62
62
|
*/
|
|
63
|
-
getObject(key: string, bucket?: string): Promise<
|
|
63
|
+
getObject(key: string, bucket?: string): Promise<any>;
|
|
64
64
|
/**
|
|
65
65
|
* --- 删除对象 ---
|
|
66
66
|
* @param key 对象路径
|
package/lib/ws.js
CHANGED
|
@@ -107,7 +107,7 @@ export class Socket {
|
|
|
107
107
|
'auth': opt.mproxy?.auth ?? ''
|
|
108
108
|
}) : uri.path;
|
|
109
109
|
const cli = ca ?
|
|
110
|
-
|
|
110
|
+
liws.createSecureClient({
|
|
111
111
|
'hostname': (typeof hosts === 'string' ? hosts : hosts[host]) || host,
|
|
112
112
|
'port': port,
|
|
113
113
|
'path': path,
|
|
@@ -116,20 +116,21 @@ export class Socket {
|
|
|
116
116
|
'connectTimeout': timeout * 1000,
|
|
117
117
|
'frameReceiveMode': mode,
|
|
118
118
|
'localAddress': local,
|
|
119
|
-
'ca': ca
|
|
119
|
+
'ca': ca,
|
|
120
120
|
}) :
|
|
121
|
-
|
|
121
|
+
liws.createClient({
|
|
122
122
|
'hostname': (typeof hosts === 'string' ? hosts : hosts[host]) || host,
|
|
123
123
|
'port': port,
|
|
124
124
|
'path': path,
|
|
125
125
|
'headers': headers,
|
|
126
126
|
'connectTimeout': timeout * 1000,
|
|
127
127
|
'frameReceiveMode': mode,
|
|
128
|
-
'localAddress': local
|
|
128
|
+
'localAddress': local,
|
|
129
129
|
});
|
|
130
130
|
cli.setMasking(masking);
|
|
131
131
|
this._ws = cli;
|
|
132
132
|
this._bindEvent();
|
|
133
|
+
await cli.connect();
|
|
133
134
|
return this;
|
|
134
135
|
}
|
|
135
136
|
catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maiyunnet/kebab",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.11",
|
|
4
4
|
"description": "Simple, easy-to-use, and fully-featured Node.js framework that is ready-to-use out of the box.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -19,24 +19,24 @@
|
|
|
19
19
|
"#kebab/*": "./*"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aws-sdk/client-s3": "^3.
|
|
23
|
-
"@aws-sdk/lib-storage": "^3.
|
|
22
|
+
"@aws-sdk/client-s3": "^3.908.0",
|
|
23
|
+
"@aws-sdk/lib-storage": "^3.908.0",
|
|
24
24
|
"@litert/http-client": "^1.1.2",
|
|
25
25
|
"@litert/mime": "^0.1.3",
|
|
26
26
|
"@litert/redis": "^3.0.5",
|
|
27
|
-
"@litert/websocket": "^0.2.
|
|
27
|
+
"@litert/websocket": "^0.2.6",
|
|
28
28
|
"@types/ssh2": "^1.15.5",
|
|
29
29
|
"ejs": "^3.1.10",
|
|
30
30
|
"jszip": "^3.10.1",
|
|
31
|
-
"mysql2": "^3.15.
|
|
31
|
+
"mysql2": "^3.15.2",
|
|
32
32
|
"ssh2": "^1.17.0",
|
|
33
33
|
"svg-captcha": "^1.4.0",
|
|
34
|
-
"tencentcloud-sdk-nodejs": "^4.1.
|
|
34
|
+
"tencentcloud-sdk-nodejs": "^4.1.128"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@litert/eslint-plugin-rules": "^0.3.1",
|
|
38
38
|
"@types/ejs": "^3.1.5",
|
|
39
|
-
"@types/node": "^24.7.
|
|
39
|
+
"@types/node": "^24.7.2",
|
|
40
40
|
"tsc-alias": "^1.8.16",
|
|
41
41
|
"typescript": "^5.9.3"
|
|
42
42
|
}
|
package/sys/mod.d.ts
CHANGED
package/sys/mod.js
CHANGED
|
@@ -115,11 +115,9 @@ class Mod {
|
|
|
115
115
|
}
|
|
116
116
|
/** --- 是否有 select --- */
|
|
117
117
|
const select = opt.select ?? (opt.where ? '*' : '');
|
|
118
|
-
|
|
119
|
-
this.
|
|
120
|
-
|
|
121
|
-
(opt.alias ? ' ' + opt.alias : ''));
|
|
122
|
-
}
|
|
118
|
+
this._sql.select(select, this.constructor._$table +
|
|
119
|
+
(this._index !== null ? ('_' + this._index[0]) : '') +
|
|
120
|
+
(opt.alias ? ' ' + opt.alias : ''));
|
|
123
121
|
if (opt.where !== undefined) {
|
|
124
122
|
if (this.constructor._soft && !opt.raw) {
|
|
125
123
|
if (typeof opt.where === 'string') {
|
|
@@ -417,7 +415,8 @@ class Mod {
|
|
|
417
415
|
'where': s,
|
|
418
416
|
'raw': opt.raw,
|
|
419
417
|
'index': opt.index,
|
|
420
|
-
'contain': opt.contain
|
|
418
|
+
'contain': opt.contain,
|
|
419
|
+
'alias': opt.alias,
|
|
421
420
|
});
|
|
422
421
|
}
|
|
423
422
|
/**
|