@maiyunnet/kebab 2.0.4 → 2.0.6
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 +14 -0
- package/index.js +1 -1
- package/lib/buffer.d.ts +25 -0
- package/lib/captcha.d.ts +12 -0
- package/lib/captcha.js +2 -2
- package/lib/consistent.d.ts +20 -0
- package/lib/consistent.js +1 -1
- package/lib/core.d.ts +85 -0
- package/lib/core.js +8 -8
- package/lib/crypto.d.ts +47 -0
- package/lib/crypto.js +1 -1
- package/lib/db.d.ts +88 -0
- package/lib/db.js +5 -5
- package/lib/dns.d.ts +75 -0
- package/lib/dns.js +5 -5
- package/lib/fs.d.ts +49 -0
- package/lib/jwt.d.ts +30 -0
- package/lib/jwt.js +4 -4
- package/lib/kv.d.ts +111 -0
- package/lib/kv.js +2 -2
- package/lib/lan.d.ts +10 -0
- package/lib/lan.js +1 -1
- package/lib/net/formdata.d.ts +23 -0
- package/lib/net/formdata.js +2 -2
- package/lib/net/request.d.ts +23 -0
- package/lib/net/request.js +1 -1
- package/lib/net/response.d.ts +14 -0
- package/lib/net.d.ts +65 -0
- package/lib/net.js +4 -4
- package/lib/s3.d.ts +35 -0
- package/lib/s3.js +2 -2
- package/lib/scan.d.ts +31 -0
- package/lib/scan.js +6 -6
- package/lib/session.d.ts +22 -0
- package/lib/session.js +6 -6
- package/lib/sql.d.ts +57 -0
- package/lib/sql.js +3 -3
- package/lib/ssh/sftp.d.ts +40 -0
- package/lib/ssh/sftp.js +2 -2
- package/lib/ssh/shell.d.ts +13 -0
- package/lib/ssh/shell.js +1 -1
- package/lib/ssh.d.ts +24 -0
- package/lib/text.d.ts +40 -0
- package/lib/text.js +1 -1
- package/lib/time.d.ts +22 -0
- package/lib/time.js +1 -1
- package/lib/ws.d.ts +87 -0
- package/lib/ws.js +2 -2
- package/lib/zip.d.ts +40 -0
- package/lib/zip.js +1 -1
- package/lib/zlib.d.ts +25 -0
- package/main.d.ts +1 -0
- package/package.json +3 -3
- package/sys/child.d.ts +1 -0
- package/sys/child.js +6 -6
- package/sys/cmd.d.ts +1 -0
- package/sys/cmd.js +6 -6
- package/sys/ctr.d.ts +96 -0
- package/sys/master.d.ts +1 -0
- package/sys/master.js +8 -8
- package/sys/mod.d.ts +205 -0
- package/sys/mod.js +5 -5
- package/sys/route.d.ts +31 -0
- package/sys/route.js +8 -8
- package/types/index.d.ts +283 -0
- package/www/example/ctr/main.d.ts +4 -0
- package/www/example/ctr/main.js +1 -1
- package/www/example/ctr/middle.d.ts +6 -0
- package/www/example/ctr/middle.js +1 -1
- package/www/example/ctr/test.d.ts +94 -0
- package/www/example/ctr/test.js +21 -21
- package/www/example/mod/test.d.ts +20 -0
- package/www/example/mod/test.js +2 -2
- package/www/example/mod/testdata.d.ts +9 -0
- package/www/example/mod/testdata.js +1 -1
- package/www/example/ws/mproxy.d.ts +4 -0
- package/www/example/ws/mproxy.js +2 -2
- package/www/example/ws/rproxy.d.ts +4 -0
- package/www/example/ws/rproxy.js +2 -2
- package/www/example/ws/test.d.ts +7 -0
- package/www/example/ws/test.js +2 -2
- package/tsconfig.json +0 -27
package/www/example/ctr/test.js
CHANGED
|
@@ -36,27 +36,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const lCore = __importStar(require("
|
|
40
|
-
const lNet = __importStar(require("
|
|
41
|
-
const lDb = __importStar(require("
|
|
42
|
-
const lFs = __importStar(require("
|
|
43
|
-
const lText = __importStar(require("
|
|
44
|
-
const lCrypto = __importStar(require("
|
|
45
|
-
const lKv = __importStar(require("
|
|
46
|
-
const lCaptcha = __importStar(require("
|
|
47
|
-
const lTime = __importStar(require("
|
|
48
|
-
const lScan = __importStar(require("
|
|
49
|
-
const lSql = __importStar(require("
|
|
50
|
-
const lConsistent = __importStar(require("
|
|
51
|
-
const lSsh = __importStar(require("
|
|
52
|
-
const lJwt = __importStar(require("
|
|
53
|
-
const lWs = __importStar(require("
|
|
54
|
-
const lS3 = __importStar(require("
|
|
55
|
-
const lZip = __importStar(require("
|
|
56
|
-
const lBuffer = __importStar(require("
|
|
57
|
-
const lLan = __importStar(require("
|
|
58
|
-
const sCtr = __importStar(require("
|
|
59
|
-
const kebab = __importStar(require("
|
|
39
|
+
const lCore = __importStar(require("../../../lib/core"));
|
|
40
|
+
const lNet = __importStar(require("../../../lib/net"));
|
|
41
|
+
const lDb = __importStar(require("../../../lib/db"));
|
|
42
|
+
const lFs = __importStar(require("../../../lib/fs"));
|
|
43
|
+
const lText = __importStar(require("../../../lib/text"));
|
|
44
|
+
const lCrypto = __importStar(require("../../../lib/crypto"));
|
|
45
|
+
const lKv = __importStar(require("../../../lib/kv"));
|
|
46
|
+
const lCaptcha = __importStar(require("../../../lib/captcha"));
|
|
47
|
+
const lTime = __importStar(require("../../../lib/time"));
|
|
48
|
+
const lScan = __importStar(require("../../../lib/scan"));
|
|
49
|
+
const lSql = __importStar(require("../../../lib/sql"));
|
|
50
|
+
const lConsistent = __importStar(require("../../../lib/consistent"));
|
|
51
|
+
const lSsh = __importStar(require("../../../lib/ssh"));
|
|
52
|
+
const lJwt = __importStar(require("../../../lib/jwt"));
|
|
53
|
+
const lWs = __importStar(require("../../../lib/ws"));
|
|
54
|
+
const lS3 = __importStar(require("../../../lib/s3"));
|
|
55
|
+
const lZip = __importStar(require("../../../lib/zip"));
|
|
56
|
+
const lBuffer = __importStar(require("../../../lib/buffer"));
|
|
57
|
+
const lLan = __importStar(require("../../../lib/lan"));
|
|
58
|
+
const sCtr = __importStar(require("../../../sys/ctr"));
|
|
59
|
+
const kebab = __importStar(require("../../../index"));
|
|
60
60
|
const test_1 = __importDefault(require("../mod/test"));
|
|
61
61
|
const testdata_1 = __importDefault(require("../mod/testdata"));
|
|
62
62
|
class default_1 extends sCtr.Ctr {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import sMod from '../../../sys/mod';
|
|
2
|
+
import types from '../../../types';
|
|
3
|
+
export default class extends sMod {
|
|
4
|
+
protected static _$table: string;
|
|
5
|
+
protected static _$primary: string;
|
|
6
|
+
protected static _$key: string;
|
|
7
|
+
id: number;
|
|
8
|
+
token: string;
|
|
9
|
+
point: {
|
|
10
|
+
'x': number;
|
|
11
|
+
'y': number;
|
|
12
|
+
};
|
|
13
|
+
polygon: Array<Array<{
|
|
14
|
+
'x': number;
|
|
15
|
+
'y': number;
|
|
16
|
+
}>>;
|
|
17
|
+
json: types.Json;
|
|
18
|
+
time_add: number;
|
|
19
|
+
protected _keyGenerator(): string;
|
|
20
|
+
}
|
package/www/example/mod/test.js
CHANGED
|
@@ -36,8 +36,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const lCore = __importStar(require("
|
|
40
|
-
const mod_1 = __importDefault(require("
|
|
39
|
+
const lCore = __importStar(require("../../../lib/core"));
|
|
40
|
+
const mod_1 = __importDefault(require("../../../sys/mod"));
|
|
41
41
|
class default_1 extends mod_1.default {
|
|
42
42
|
_keyGenerator() {
|
|
43
43
|
return 'test_' + lCore.rand(0, 5).toString();
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const mod_1 = __importDefault(require("
|
|
6
|
+
const mod_1 = __importDefault(require("../../../sys/mod"));
|
|
7
7
|
class default_1 extends mod_1.default {
|
|
8
8
|
}
|
|
9
9
|
default_1._$table = 'test_data';
|
package/www/example/ws/mproxy.js
CHANGED
|
@@ -33,8 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const sCtr = __importStar(require("
|
|
37
|
-
const lWs = __importStar(require("
|
|
36
|
+
const sCtr = __importStar(require("../../../sys/ctr"));
|
|
37
|
+
const lWs = __importStar(require("../../../lib/ws"));
|
|
38
38
|
class default_1 extends sCtr.Ctr {
|
|
39
39
|
async onLoad() {
|
|
40
40
|
console.log('WebSocket mproxy test onLoad.');
|
package/www/example/ws/rproxy.js
CHANGED
|
@@ -33,8 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const sCtr = __importStar(require("
|
|
37
|
-
const lWs = __importStar(require("
|
|
36
|
+
const sCtr = __importStar(require("../../../sys/ctr"));
|
|
37
|
+
const lWs = __importStar(require("../../../lib/ws"));
|
|
38
38
|
class default_1 extends sCtr.Ctr {
|
|
39
39
|
async onLoad() {
|
|
40
40
|
console.log('WebSocket rproxy test onLoad.');
|
package/www/example/ws/test.js
CHANGED
|
@@ -33,8 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const sCtr = __importStar(require("
|
|
37
|
-
const lCrypto = __importStar(require("
|
|
36
|
+
const sCtr = __importStar(require("../../../sys/ctr"));
|
|
37
|
+
const lCrypto = __importStar(require("../../../lib/crypto"));
|
|
38
38
|
class default_1 extends sCtr.Ctr {
|
|
39
39
|
constructor() {
|
|
40
40
|
super(...arguments);
|
package/tsconfig.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "CommonJS",
|
|
4
|
-
"removeComments": true,
|
|
5
|
-
"preserveConstEnums": true, // 保留 const 和 enum 声明
|
|
6
|
-
// "outDir": "./dist/",
|
|
7
|
-
"sourceMap": false,
|
|
8
|
-
"target": "ES2021",
|
|
9
|
-
"strict": true, // 严格模式
|
|
10
|
-
"declaration": true, // d.ts
|
|
11
|
-
"declarationMap": false, // d.ts 的 map
|
|
12
|
-
"newLine": "LF",
|
|
13
|
-
"paths": {
|
|
14
|
-
"~/*": ["./*"]
|
|
15
|
-
},
|
|
16
|
-
"resolveJsonModule": true,
|
|
17
|
-
"esModuleInterop": true,
|
|
18
|
-
"baseUrl": "./",
|
|
19
|
-
"rootDir": "./"
|
|
20
|
-
},
|
|
21
|
-
"include": [
|
|
22
|
-
"./**/*.ts"
|
|
23
|
-
],
|
|
24
|
-
"exclude": [
|
|
25
|
-
"node_modules"
|
|
26
|
-
]
|
|
27
|
-
}
|