@maiyunnet/kebab 7.6.1 → 7.6.3
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/doc/kebab-rag.md +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/fs.js +6 -1
- package/package.json +1 -1
- package/doc/README.sc.md +0 -201
- package/doc/README.tc.md +0 -203
- package/doc/icon.png +0 -0
- package/doc/sc/api/index/index.md +0 -47
- package/doc/sc/api/index/interfaces/IConfig.md +0 -165
- package/doc/sc/api/index/interfaces/IConfigAi.md +0 -29
- package/doc/sc/api/index/interfaces/IConfigConst.md +0 -201
- package/doc/sc/api/index/interfaces/IConfigDb.md +0 -59
- package/doc/sc/api/index/interfaces/IConfigDns.md +0 -27
- package/doc/sc/api/index/interfaces/IConfigJwt.md +0 -51
- package/doc/sc/api/index/interfaces/IConfigKv.md +0 -59
- package/doc/sc/api/index/interfaces/IConfigLang.md +0 -27
- package/doc/sc/api/index/interfaces/IConfigS3.md +0 -53
- package/doc/sc/api/index/interfaces/IConfigSql.md +0 -19
- package/doc/sc/api/index/interfaces/IConfigTurnstile.md +0 -51
- package/doc/sc/api/index/interfaces/IConfigVector.md +0 -51
- package/doc/sc/api/index/interfaces/IPostFile.md +0 -43
- package/doc/sc/api/index/interfaces/IUrlParse.md +0 -97
- package/doc/sc/api/index/interfaces/IVhost.md +0 -43
- package/doc/sc/api/index/type-aliases/DbValue.md +0 -13
- package/doc/sc/api/index/type-aliases/Json.md +0 -13
- package/doc/sc/api/index/variables/CERT_CWD.md +0 -11
- package/doc/sc/api/index/variables/CONF_CWD.md +0 -11
- package/doc/sc/api/index/variables/FTMP_CWD.md +0 -11
- package/doc/sc/api/index/variables/IND_CWD.md +0 -11
- package/doc/sc/api/index/variables/LIB_CWD.md +0 -11
- package/doc/sc/api/index/variables/LIB_PATH.md +0 -11
- package/doc/sc/api/index/variables/LOG_CWD.md +0 -11
- package/doc/sc/api/index/variables/MOD_CWD.md +0 -11
- package/doc/sc/api/index/variables/ROOT_CWD.md +0 -13
- package/doc/sc/api/index/variables/ROOT_PATH.md +0 -13
- package/doc/sc/api/index/variables/SYS_PATH.md +0 -11
- package/doc/sc/api/index/variables/VER.md +0 -13
- package/doc/sc/api/index/variables/VHOST_CWD.md +0 -11
- package/doc/sc/api/index/variables/WWW_CWD.md +0 -11
- package/doc/sc/api/index.md +0 -48
- package/doc/sc/api/lib/ai/classes/Ai.md +0 -103
- package/doc/sc/api/lib/ai/enumerations/ESERVICE.md +0 -61
- package/doc/sc/api/lib/ai/functions/get.md +0 -29
- package/doc/sc/api/lib/ai/index.md +0 -23
- package/doc/sc/api/lib/ai/interfaces/IOptions.md +0 -65
- package/doc/sc/api/lib/buffer/classes/Reader.md +0 -177
- package/doc/sc/api/lib/buffer/classes/Writer.md +0 -147
- package/doc/sc/api/lib/buffer/functions/getReader.md +0 -25
- package/doc/sc/api/lib/buffer/functions/getWriter.md +0 -25
- package/doc/sc/api/lib/buffer/index.md +0 -17
- package/doc/sc/api/lib/captcha/classes/Captcha.md +0 -79
- package/doc/sc/api/lib/captcha/functions/get.md +0 -37
- package/doc/sc/api/lib/captcha/index.md +0 -15
- package/doc/sc/api/lib/consistent/classes/Consistent.md +0 -135
- package/doc/sc/api/lib/consistent/functions/addToCircle.md +0 -37
- package/doc/sc/api/lib/consistent/functions/fast.md +0 -37
- package/doc/sc/api/lib/consistent/functions/findInCircle.md +0 -37
- package/doc/sc/api/lib/consistent/functions/get.md +0 -21
- package/doc/sc/api/lib/consistent/functions/getRange.md +0 -37
- package/doc/sc/api/lib/consistent/functions/hash.md +0 -25
- package/doc/sc/api/lib/consistent/index.md +0 -20
- package/doc/sc/api/lib/core/functions/checkType.md +0 -37
- package/doc/sc/api/lib/core/functions/clone.md +0 -31
- package/doc/sc/api/lib/core/functions/convert62.md +0 -25
- package/doc/sc/api/lib/core/functions/debug.md +0 -31
- package/doc/sc/api/lib/core/functions/display.md +0 -31
- package/doc/sc/api/lib/core/functions/emptyObject.md +0 -31
- package/doc/sc/api/lib/core/functions/exec.md +0 -31
- package/doc/sc/api/lib/core/functions/getLog.md +0 -71
- package/doc/sc/api/lib/core/functions/ip.md +0 -27
- package/doc/sc/api/lib/core/functions/log.md +0 -37
- package/doc/sc/api/lib/core/functions/ls.md +0 -39
- package/doc/sc/api/lib/core/functions/muid.md +0 -59
- package/doc/sc/api/lib/core/functions/objectSort.md +0 -31
- package/doc/sc/api/lib/core/functions/passThroughAppend.md +0 -37
- package/doc/sc/api/lib/core/functions/purify.md +0 -25
- package/doc/sc/api/lib/core/functions/rand.md +0 -37
- package/doc/sc/api/lib/core/functions/random.md +0 -37
- package/doc/sc/api/lib/core/functions/realIP.md +0 -29
- package/doc/sc/api/lib/core/functions/removeGlobal.md +0 -31
- package/doc/sc/api/lib/core/functions/sendNpm.md +0 -31
- package/doc/sc/api/lib/core/functions/sendPm2.md +0 -37
- package/doc/sc/api/lib/core/functions/sendReload.md +0 -24
- package/doc/sc/api/lib/core/functions/sendRestart.md +0 -24
- package/doc/sc/api/lib/core/functions/setCookie.md +0 -43
- package/doc/sc/api/lib/core/functions/setGlobal.md +0 -37
- package/doc/sc/api/lib/core/functions/sleep.md +0 -25
- package/doc/sc/api/lib/core/functions/unconvert62.md +0 -25
- package/doc/sc/api/lib/core/functions/updateCode.md +0 -49
- package/doc/sc/api/lib/core/functions/write.md +0 -31
- package/doc/sc/api/lib/core/functions/writeEventStreamHead.md +0 -21
- package/doc/sc/api/lib/core/functions/writeHead.md +0 -37
- package/doc/sc/api/lib/core/index.md +0 -66
- package/doc/sc/api/lib/core/interfaces/ICookieOptions.md +0 -59
- package/doc/sc/api/lib/core/interfaces/ILogOptions.md +0 -75
- package/doc/sc/api/lib/core/type-aliases/TPm2Action.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_L.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LN.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LU.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LUN.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LUNS.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_N.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_U.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_UN.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_V.md +0 -13
- package/doc/sc/api/lib/core/variables/REAL_IP_CF.md +0 -13
- package/doc/sc/api/lib/core/variables/REAL_IP_X.md +0 -13
- package/doc/sc/api/lib/core/variables/global.md +0 -13
- package/doc/sc/api/lib/core/variables/globalConfig.md +0 -47
- package/doc/sc/api/lib/cron/functions/getRegulars.md +0 -17
- package/doc/sc/api/lib/cron/functions/regular.md +0 -31
- package/doc/sc/api/lib/cron/index.md +0 -17
- package/doc/sc/api/lib/cron/interfaces/IRegular.md +0 -59
- package/doc/sc/api/lib/cron/interfaces/IRegularData.md +0 -101
- package/doc/sc/api/lib/crypto/functions/aesDecrypt.md +0 -91
- package/doc/sc/api/lib/crypto/functions/aesEncrypt.md +0 -95
- package/doc/sc/api/lib/crypto/functions/base64Decode.md +0 -59
- package/doc/sc/api/lib/crypto/functions/base64Encode.md +0 -25
- package/doc/sc/api/lib/crypto/functions/cipherDecrypt.md +0 -49
- package/doc/sc/api/lib/crypto/functions/cipherEncrypt.md +0 -49
- package/doc/sc/api/lib/crypto/functions/gcmDecrypt.md +0 -71
- package/doc/sc/api/lib/crypto/functions/gcmEncrypt.md +0 -71
- package/doc/sc/api/lib/crypto/functions/generateKeyPair.md +0 -61
- package/doc/sc/api/lib/crypto/functions/hashHmac.md +0 -79
- package/doc/sc/api/lib/crypto/functions/hashHmacFile.md +0 -79
- package/doc/sc/api/lib/crypto/functions/privateDecrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/privateEncrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/publicDecrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/publicEncrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/sign.md +0 -83
- package/doc/sc/api/lib/crypto/functions/sm4Decrypt.md +0 -91
- package/doc/sc/api/lib/crypto/functions/sm4Encrypt.md +0 -91
- package/doc/sc/api/lib/crypto/functions/uuid.md +0 -25
- package/doc/sc/api/lib/crypto/functions/verify.md +0 -43
- package/doc/sc/api/lib/crypto/index.md +0 -40
- package/doc/sc/api/lib/crypto/variables/AES_256_CBC.md +0 -13
- package/doc/sc/api/lib/crypto/variables/AES_256_CTR.md +0 -13
- package/doc/sc/api/lib/crypto/variables/AES_256_ECB.md +0 -13
- package/doc/sc/api/lib/crypto/variables/AES_256_GCM.md +0 -13
- package/doc/sc/api/lib/crypto/variables/SM4_CBC.md +0 -11
- package/doc/sc/api/lib/crypto/variables/SM4_CFB.md +0 -13
- package/doc/sc/api/lib/crypto/variables/SM4_ECB.md +0 -13
- package/doc/sc/api/lib/db/conn/classes/Connection.md +0 -315
- package/doc/sc/api/lib/db/conn/index.md +0 -11
- package/doc/sc/api/lib/db/enumerations/ESERVICE.md +0 -27
- package/doc/sc/api/lib/db/functions/get.md +0 -37
- package/doc/sc/api/lib/db/index.md +0 -50
- package/doc/sc/api/lib/db/interfaces/IData.md +0 -57
- package/doc/sc/api/lib/db/interfaces/IPacket.md +0 -75
- package/doc/sc/api/lib/db/pool/classes/Pool.md +0 -143
- package/doc/sc/api/lib/db/pool/functions/getConnectionList.md +0 -17
- package/doc/sc/api/lib/db/pool/index.md +0 -19
- package/doc/sc/api/lib/db/pool/interfaces/IConnectionInfo.md +0 -91
- package/doc/sc/api/lib/db/tran/classes/Transaction.md +0 -137
- package/doc/sc/api/lib/db/tran/index.md +0 -11
- package/doc/sc/api/lib/dns/classes/Dns.md +0 -187
- package/doc/sc/api/lib/dns/enumerations/ERECORDLINE.md +0 -59
- package/doc/sc/api/lib/dns/enumerations/ERECORDTYPE.md +0 -67
- package/doc/sc/api/lib/dns/enumerations/ESERVICE.md +0 -27
- package/doc/sc/api/lib/dns/functions/get.md +0 -29
- package/doc/sc/api/lib/dns/index.md +0 -27
- package/doc/sc/api/lib/dns/interfaces/IAddDomainRecord.md +0 -27
- package/doc/sc/api/lib/dns/interfaces/IDomainList.md +0 -43
- package/doc/sc/api/lib/dns/interfaces/IOptions.md +0 -41
- package/doc/sc/api/lib/fs/functions/chmod.md +0 -31
- package/doc/sc/api/lib/fs/functions/copyFile.md +0 -31
- package/doc/sc/api/lib/fs/functions/copyFolder.md +0 -37
- package/doc/sc/api/lib/fs/functions/createReadStream.md +0 -31
- package/doc/sc/api/lib/fs/functions/createWriteStream.md +0 -31
- package/doc/sc/api/lib/fs/functions/getContent.md +0 -63
- package/doc/sc/api/lib/fs/functions/isDir.md +0 -25
- package/doc/sc/api/lib/fs/functions/isFile.md +0 -25
- package/doc/sc/api/lib/fs/functions/mkdir.md +0 -31
- package/doc/sc/api/lib/fs/functions/pipe.md +0 -39
- package/doc/sc/api/lib/fs/functions/putContent.md +0 -47
- package/doc/sc/api/lib/fs/functions/readDir.md +0 -29
- package/doc/sc/api/lib/fs/functions/readLink.md +0 -31
- package/doc/sc/api/lib/fs/functions/readToResponse.md +0 -43
- package/doc/sc/api/lib/fs/functions/rename.md +0 -31
- package/doc/sc/api/lib/fs/functions/rmdir.md +0 -25
- package/doc/sc/api/lib/fs/functions/rmdirDeep.md +0 -25
- package/doc/sc/api/lib/fs/functions/stats.md +0 -25
- package/doc/sc/api/lib/fs/functions/symlink.md +0 -37
- package/doc/sc/api/lib/fs/functions/unlink.md +0 -25
- package/doc/sc/api/lib/fs/index.md +0 -30
- package/doc/sc/api/lib/kv/classes/Kv.md +0 -1161
- package/doc/sc/api/lib/kv/functions/get.md +0 -41
- package/doc/sc/api/lib/kv/index.md +0 -20
- package/doc/sc/api/lib/kv/interfaces/IConnectionInfo.md +0 -43
- package/doc/sc/api/lib/kv/interfaces/IZRangeOptions.md +0 -52
- package/doc/sc/api/lib/lan/functions/card.md +0 -17
- package/doc/sc/api/lib/lan/functions/scan.md +0 -17
- package/doc/sc/api/lib/lan/index.md +0 -12
- package/doc/sc/api/lib/lang/functions/getCodeByAccept.md +0 -25
- package/doc/sc/api/lib/lang/index.md +0 -17
- package/doc/sc/api/lib/lang/variables/codes.md +0 -13
- package/doc/sc/api/lib/lang/variables/map.md +0 -13
- package/doc/sc/api/lib/lang/variables/names.md +0 -11
- package/doc/sc/api/lib/net/formdata/classes/FormData.md +0 -157
- package/doc/sc/api/lib/net/formdata/index.md +0 -15
- package/doc/sc/api/lib/net/formdata/interfaces/IItem.md +0 -55
- package/doc/sc/api/lib/net/functions/buildCookieQuery.md +0 -31
- package/doc/sc/api/lib/net/functions/fetch.md +0 -31
- package/doc/sc/api/lib/net/functions/filterHeaders.md +0 -37
- package/doc/sc/api/lib/net/functions/get.md +0 -31
- package/doc/sc/api/lib/net/functions/getCa.md +0 -17
- package/doc/sc/api/lib/net/functions/getFormData.md +0 -17
- package/doc/sc/api/lib/net/functions/mproxy.md +0 -38
- package/doc/sc/api/lib/net/functions/mproxyData.md +0 -25
- package/doc/sc/api/lib/net/functions/open.md +0 -23
- package/doc/sc/api/lib/net/functions/post.md +0 -37
- package/doc/sc/api/lib/net/functions/postJson.md +0 -37
- package/doc/sc/api/lib/net/functions/postJsonResponseJson.md +0 -39
- package/doc/sc/api/lib/net/functions/request.md +0 -33
- package/doc/sc/api/lib/net/functions/resetCookieSession.md +0 -25
- package/doc/sc/api/lib/net/functions/rproxy.md +0 -37
- package/doc/sc/api/lib/net/functions/setCookie.md +0 -63
- package/doc/sc/api/lib/net/index.md +0 -37
- package/doc/sc/api/lib/net/interfaces/ICookie.md +0 -69
- package/doc/sc/api/lib/net/interfaces/IMproxyOptions.md +0 -85
- package/doc/sc/api/lib/net/interfaces/IRequestOptions.md +0 -133
- package/doc/sc/api/lib/net/interfaces/IRproxyOptions.md +0 -107
- package/doc/sc/api/lib/net/request/classes/Request.md +0 -297
- package/doc/sc/api/lib/net/request/index.md +0 -11
- package/doc/sc/api/lib/net/response/classes/Response.md +0 -109
- package/doc/sc/api/lib/net/response/index.md +0 -11
- package/doc/sc/api/lib/net/type-aliases/THttpHeaders.md +0 -27
- package/doc/sc/api/lib/s3/classes/S3.md +0 -220
- package/doc/sc/api/lib/s3/enumerations/ESERVICE.md +0 -43
- package/doc/sc/api/lib/s3/functions/get.md +0 -29
- package/doc/sc/api/lib/s3/index.md +0 -23
- package/doc/sc/api/lib/s3/interfaces/IOptions.md +0 -71
- package/doc/sc/api/lib/scan/classes/Scan.md +0 -127
- package/doc/sc/api/lib/scan/functions/get.md +0 -33
- package/doc/sc/api/lib/scan/functions/scanned.md +0 -37
- package/doc/sc/api/lib/scan/functions/setData.md +0 -35
- package/doc/sc/api/lib/scan/index.md +0 -22
- package/doc/sc/api/lib/scan/interfaces/IOptions.md +0 -43
- package/doc/sc/api/lib/scan/interfaces/IStaticOptions.md +0 -35
- package/doc/sc/api/lib/session/classes/Session.md +0 -103
- package/doc/sc/api/lib/session/index.md +0 -15
- package/doc/sc/api/lib/session/interfaces/IOptions.md +0 -41
- package/doc/sc/api/lib/socket/functions/rwebsocket.md +0 -37
- package/doc/sc/api/lib/socket/index.md +0 -15
- package/doc/sc/api/lib/socket/interfaces/IRwebsocketOptions.md +0 -91
- package/doc/sc/api/lib/sql/classes/Sql.md +0 -791
- package/doc/sc/api/lib/sql/enumerations/EJSON.md +0 -61
- package/doc/sc/api/lib/sql/enumerations/ESERVICE.md +0 -27
- package/doc/sc/api/lib/sql/functions/aoMix.md +0 -25
- package/doc/sc/api/lib/sql/functions/column.md +0 -35
- package/doc/sc/api/lib/sql/functions/format.md +0 -37
- package/doc/sc/api/lib/sql/functions/get.md +0 -43
- package/doc/sc/api/lib/sql/index.md +0 -23
- package/doc/sc/api/lib/ssh/classes/Connection.md +0 -123
- package/doc/sc/api/lib/ssh/functions/get.md +0 -25
- package/doc/sc/api/lib/ssh/index.md +0 -19
- package/doc/sc/api/lib/ssh/interfaces/IExtOptions.md +0 -33
- package/doc/sc/api/lib/ssh/sftp/classes/Connection.md +0 -628
- package/doc/sc/api/lib/ssh/sftp/index.md +0 -11
- package/doc/sc/api/lib/ssh/shell/classes/Connection.md +0 -189
- package/doc/sc/api/lib/ssh/shell/index.md +0 -11
- package/doc/sc/api/lib/text/functions/getFilename.md +0 -25
- package/doc/sc/api/lib/text/functions/htmlescape.md +0 -25
- package/doc/sc/api/lib/text/functions/int2str.md +0 -42
- package/doc/sc/api/lib/text/functions/isAscii.md +0 -25
- package/doc/sc/api/lib/text/functions/isDomain.md +0 -27
- package/doc/sc/api/lib/text/functions/isEMail.md +0 -23
- package/doc/sc/api/lib/text/functions/isFalsy.md +0 -25
- package/doc/sc/api/lib/text/functions/isIPv4.md +0 -23
- package/doc/sc/api/lib/text/functions/isIPv6.md +0 -23
- package/doc/sc/api/lib/text/functions/isIdCardCN.md +0 -25
- package/doc/sc/api/lib/text/functions/isPhoneCN.md +0 -25
- package/doc/sc/api/lib/text/functions/isRealPath.md +0 -25
- package/doc/sc/api/lib/text/functions/isTruthy.md +0 -31
- package/doc/sc/api/lib/text/functions/logicalOr.md +0 -41
- package/doc/sc/api/lib/text/functions/match.md +0 -31
- package/doc/sc/api/lib/text/functions/nlReplace.md +0 -31
- package/doc/sc/api/lib/text/functions/parseDomain.md +0 -25
- package/doc/sc/api/lib/text/functions/parseJson.md +0 -25
- package/doc/sc/api/lib/text/functions/parseUrl.md +0 -23
- package/doc/sc/api/lib/text/functions/queryParse.md +0 -25
- package/doc/sc/api/lib/text/functions/queryStringify.md +0 -69
- package/doc/sc/api/lib/text/functions/sizeFormat.md +0 -31
- package/doc/sc/api/lib/text/functions/str2int.md +0 -36
- package/doc/sc/api/lib/text/functions/stringifyBuffer.md +0 -25
- package/doc/sc/api/lib/text/functions/stringifyJson.md +0 -31
- package/doc/sc/api/lib/text/functions/stringifyResult.md +0 -25
- package/doc/sc/api/lib/text/functions/trimJson.md +0 -23
- package/doc/sc/api/lib/text/functions/urlAtom.md +0 -25
- package/doc/sc/api/lib/text/functions/urlResolve.md +0 -31
- package/doc/sc/api/lib/text/index.md +0 -55
- package/doc/sc/api/lib/text/interfaces/IDomain.md +0 -43
- package/doc/sc/api/lib/text/type-aliases/TFalsy.md +0 -13
- package/doc/sc/api/lib/text/variables/REGEXP_ASCII.md +0 -13
- package/doc/sc/api/lib/text/variables/REGEXP_DOMAIN.md +0 -11
- package/doc/sc/api/lib/text/variables/REGEXP_EMAIL.md +0 -11
- package/doc/sc/api/lib/text/variables/REGEXP_IPV4.md +0 -11
- package/doc/sc/api/lib/text/variables/REGEXP_IPV6.md +0 -11
- package/doc/sc/api/lib/time/classes/Time.md +0 -125
- package/doc/sc/api/lib/time/functions/format.md +0 -37
- package/doc/sc/api/lib/time/functions/get.md +0 -27
- package/doc/sc/api/lib/time/functions/isMs.md +0 -25
- package/doc/sc/api/lib/time/functions/stamp.md +0 -31
- package/doc/sc/api/lib/time/index.md +0 -28
- package/doc/sc/api/lib/time/interfaces/IOptions.md +0 -29
- package/doc/sc/api/lib/time/variables/DAY.md +0 -13
- package/doc/sc/api/lib/time/variables/HOUR.md +0 -13
- package/doc/sc/api/lib/time/variables/YEAR.md +0 -13
- package/doc/sc/api/lib/turnstile/enumerations/EFACTORY.md +0 -27
- package/doc/sc/api/lib/turnstile/functions/verify.md +0 -35
- package/doc/sc/api/lib/turnstile/index.md +0 -15
- package/doc/sc/api/lib/vector/classes/Vector.md +0 -141
- package/doc/sc/api/lib/vector/functions/get.md +0 -25
- package/doc/sc/api/lib/vector/index.md +0 -19
- package/doc/sc/api/lib/vector/interfaces/IOptions.md +0 -61
- package/doc/sc/api/lib/ws/classes/Socket.md +0 -331
- package/doc/sc/api/lib/ws/enumerations/EFrameReceiveMode.md +0 -35
- package/doc/sc/api/lib/ws/enumerations/EOpcode.md +0 -59
- package/doc/sc/api/lib/ws/functions/connect.md +0 -31
- package/doc/sc/api/lib/ws/functions/createServer.md +0 -45
- package/doc/sc/api/lib/ws/functions/mproxy.md +0 -38
- package/doc/sc/api/lib/ws/functions/rproxy.md +0 -37
- package/doc/sc/api/lib/ws/functions/rsocket.md +0 -37
- package/doc/sc/api/lib/ws/index.md +0 -30
- package/doc/sc/api/lib/ws/interfaces/IConnectOptions.md +0 -95
- package/doc/sc/api/lib/ws/interfaces/IMproxyOptions.md +0 -87
- package/doc/sc/api/lib/ws/interfaces/IRproxyOptions.md +0 -105
- package/doc/sc/api/lib/zip/classes/Zip.md +0 -392
- package/doc/sc/api/lib/zip/functions/get.md +0 -25
- package/doc/sc/api/lib/zip/index.md +0 -29
- package/doc/sc/api/lib/zip/interfaces/IZipInputByType.md +0 -81
- package/doc/sc/api/lib/zip/interfaces/IZipItem.md +0 -65
- package/doc/sc/api/lib/zip/interfaces/IZipMetadata.md +0 -25
- package/doc/sc/api/lib/zip/interfaces/IZipOutputByType.md +0 -81
- package/doc/sc/api/lib/zip/interfaces/IZipStats.md +0 -49
- package/doc/sc/api/lib/zip/type-aliases/TZipInputFileFormat.md +0 -11
- package/doc/sc/api/lib/zip/type-aliases/TZipInputType.md +0 -11
- package/doc/sc/api/lib/zip/type-aliases/TZipOutputType.md +0 -11
- package/doc/sc/api/lib/zlib/functions/brotliCompress.md +0 -31
- package/doc/sc/api/lib/zlib/functions/brotliDecompress.md +0 -25
- package/doc/sc/api/lib/zlib/functions/compress.md +0 -37
- package/doc/sc/api/lib/zlib/functions/createBrotliCompress.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createBrotliDecompress.md +0 -17
- package/doc/sc/api/lib/zlib/functions/createCompress.md +0 -31
- package/doc/sc/api/lib/zlib/functions/createDecompress.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createDeflate.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createGunzip.md +0 -17
- package/doc/sc/api/lib/zlib/functions/createGzip.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createInflate.md +0 -17
- package/doc/sc/api/lib/zlib/functions/decompress.md +0 -31
- package/doc/sc/api/lib/zlib/functions/deflate.md +0 -31
- package/doc/sc/api/lib/zlib/functions/gunzip.md +0 -25
- package/doc/sc/api/lib/zlib/functions/gzip.md +0 -31
- package/doc/sc/api/lib/zlib/functions/inflate.md +0 -25
- package/doc/sc/api/lib/zlib/index.md +0 -31
- package/doc/sc/api/lib/zlib/interfaces/ICompress.md +0 -27
- package/doc/sc/api/lib/zlib/interfaces/ICompressBuffer.md +0 -27
- package/doc/sc/api/main/index.md +0 -7
- package/doc/sc/api/sys/ctr/classes/Ctr.md +0 -1242
- package/doc/sc/api/sys/ctr/functions/clearLocaleData.md +0 -17
- package/doc/sc/api/sys/ctr/index.md +0 -15
- package/doc/sc/api/sys/mod/classes/Rows.md +0 -165
- package/doc/sc/api/sys/mod/classes/default.md +0 -2175
- package/doc/sc/api/sys/mod/index.md +0 -21
- package/doc/sc/api/sys/mod/interfaces/IModUnionItem.md +0 -25
- package/doc/sc/api/sys/mod/interfaces/IRows.md +0 -57
- package/doc/sc/api/sys/mod/type-aliases/TOnlyProperties.md +0 -19
- package/doc/sc/api/sys/route/functions/clearKebabConfigs.md +0 -17
- package/doc/sc/api/sys/route/functions/getFormData.md +0 -47
- package/doc/sc/api/sys/route/functions/getPost.md +0 -25
- package/doc/sc/api/sys/route/functions/run.md +0 -83
- package/doc/sc/api/sys/route/functions/unlinkUploadFiles.md +0 -25
- package/doc/sc/api/sys/route/functions/waitCtr.md +0 -26
- package/doc/sc/api/sys/route/index.md +0 -16
- package/doc/sc/quick-start.md +0 -30
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/buffer](../index.md) / Reader
|
|
6
|
-
|
|
7
|
-
# Class: Reader
|
|
8
|
-
|
|
9
|
-
Defined in: [lib/buffer.ts:2](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L2)
|
|
10
|
-
|
|
11
|
-
读对象
|
|
12
|
-
|
|
13
|
-
## Constructors
|
|
14
|
-
|
|
15
|
-
### Constructor
|
|
16
|
-
|
|
17
|
-
> **new Reader**(`buffer`): `Reader`
|
|
18
|
-
|
|
19
|
-
Defined in: [lib/buffer.ts:9](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L9)
|
|
20
|
-
|
|
21
|
-
#### Parameters
|
|
22
|
-
|
|
23
|
-
##### buffer
|
|
24
|
-
|
|
25
|
-
`Buffer`
|
|
26
|
-
|
|
27
|
-
#### Returns
|
|
28
|
-
|
|
29
|
-
`Reader`
|
|
30
|
-
|
|
31
|
-
## Methods
|
|
32
|
-
|
|
33
|
-
### length()
|
|
34
|
-
|
|
35
|
-
> **length**(): `number`
|
|
36
|
-
|
|
37
|
-
Defined in: [lib/buffer.ts:83](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L83)
|
|
38
|
-
|
|
39
|
-
获取完整的 buffer 长度
|
|
40
|
-
|
|
41
|
-
#### Returns
|
|
42
|
-
|
|
43
|
-
`number`
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
|
-
### readBCDString()
|
|
48
|
-
|
|
49
|
-
> **readBCDString**(`length?`): `string`
|
|
50
|
-
|
|
51
|
-
Defined in: [lib/buffer.ts:49](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L49)
|
|
52
|
-
|
|
53
|
-
读取一个 BCD 编码的字符串(每个字节表示两个数字)
|
|
54
|
-
|
|
55
|
-
#### Parameters
|
|
56
|
-
|
|
57
|
-
##### length?
|
|
58
|
-
|
|
59
|
-
`number`
|
|
60
|
-
|
|
61
|
-
#### Returns
|
|
62
|
-
|
|
63
|
-
`string`
|
|
64
|
-
|
|
65
|
-
***
|
|
66
|
-
|
|
67
|
-
### readBuffer()
|
|
68
|
-
|
|
69
|
-
> **readBuffer**(`length?`): `Buffer`
|
|
70
|
-
|
|
71
|
-
Defined in: [lib/buffer.ts:77](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L77)
|
|
72
|
-
|
|
73
|
-
读取 Buffer
|
|
74
|
-
|
|
75
|
-
#### Parameters
|
|
76
|
-
|
|
77
|
-
##### length?
|
|
78
|
-
|
|
79
|
-
`number`
|
|
80
|
-
|
|
81
|
-
#### Returns
|
|
82
|
-
|
|
83
|
-
`Buffer`
|
|
84
|
-
|
|
85
|
-
***
|
|
86
|
-
|
|
87
|
-
### readString()
|
|
88
|
-
|
|
89
|
-
> **readString**(`length?`, `encoding?`): `string`
|
|
90
|
-
|
|
91
|
-
Defined in: [lib/buffer.ts:62](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L62)
|
|
92
|
-
|
|
93
|
-
读取普通 string
|
|
94
|
-
|
|
95
|
-
#### Parameters
|
|
96
|
-
|
|
97
|
-
##### length?
|
|
98
|
-
|
|
99
|
-
`number`
|
|
100
|
-
|
|
101
|
-
##### encoding?
|
|
102
|
-
|
|
103
|
-
`BufferEncoding` = `'utf8'`
|
|
104
|
-
|
|
105
|
-
#### Returns
|
|
106
|
-
|
|
107
|
-
`string`
|
|
108
|
-
|
|
109
|
-
***
|
|
110
|
-
|
|
111
|
-
### readUInt16BE()
|
|
112
|
-
|
|
113
|
-
> **readUInt16BE**(): `number`
|
|
114
|
-
|
|
115
|
-
Defined in: [lib/buffer.ts:21](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L21)
|
|
116
|
-
|
|
117
|
-
读取一个无符号 16 位整数(大端模式),WORD
|
|
118
|
-
|
|
119
|
-
#### Returns
|
|
120
|
-
|
|
121
|
-
`number`
|
|
122
|
-
|
|
123
|
-
***
|
|
124
|
-
|
|
125
|
-
### readUInt16LE()
|
|
126
|
-
|
|
127
|
-
> **readUInt16LE**(): `number`
|
|
128
|
-
|
|
129
|
-
Defined in: [lib/buffer.ts:28](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L28)
|
|
130
|
-
|
|
131
|
-
读取一个无符号 16 位整数(小端模式)
|
|
132
|
-
|
|
133
|
-
#### Returns
|
|
134
|
-
|
|
135
|
-
`number`
|
|
136
|
-
|
|
137
|
-
***
|
|
138
|
-
|
|
139
|
-
### readUInt32BE()
|
|
140
|
-
|
|
141
|
-
> **readUInt32BE**(): `number`
|
|
142
|
-
|
|
143
|
-
Defined in: [lib/buffer.ts:35](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L35)
|
|
144
|
-
|
|
145
|
-
读取一个无符号 32 位整数(大端模式), DWORD
|
|
146
|
-
|
|
147
|
-
#### Returns
|
|
148
|
-
|
|
149
|
-
`number`
|
|
150
|
-
|
|
151
|
-
***
|
|
152
|
-
|
|
153
|
-
### readUInt32LE()
|
|
154
|
-
|
|
155
|
-
> **readUInt32LE**(): `number`
|
|
156
|
-
|
|
157
|
-
Defined in: [lib/buffer.ts:42](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L42)
|
|
158
|
-
|
|
159
|
-
读取一个无符号 32 位整数(小端模式)
|
|
160
|
-
|
|
161
|
-
#### Returns
|
|
162
|
-
|
|
163
|
-
`number`
|
|
164
|
-
|
|
165
|
-
***
|
|
166
|
-
|
|
167
|
-
### readUInt8()
|
|
168
|
-
|
|
169
|
-
> **readUInt8**(): `number`
|
|
170
|
-
|
|
171
|
-
Defined in: [lib/buffer.ts:14](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L14)
|
|
172
|
-
|
|
173
|
-
读取一个无符号 8 位整数, BYTE
|
|
174
|
-
|
|
175
|
-
#### Returns
|
|
176
|
-
|
|
177
|
-
`number`
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/buffer](../index.md) / Writer
|
|
6
|
-
|
|
7
|
-
# Class: Writer
|
|
8
|
-
|
|
9
|
-
Defined in: [lib/buffer.ts:90](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L90)
|
|
10
|
-
|
|
11
|
-
写对象
|
|
12
|
-
|
|
13
|
-
## Constructors
|
|
14
|
-
|
|
15
|
-
### Constructor
|
|
16
|
-
|
|
17
|
-
> **new Writer**(`size`): `Writer`
|
|
18
|
-
|
|
19
|
-
Defined in: [lib/buffer.ts:97](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L97)
|
|
20
|
-
|
|
21
|
-
#### Parameters
|
|
22
|
-
|
|
23
|
-
##### size
|
|
24
|
-
|
|
25
|
-
`number`
|
|
26
|
-
|
|
27
|
-
#### Returns
|
|
28
|
-
|
|
29
|
-
`Writer`
|
|
30
|
-
|
|
31
|
-
## Methods
|
|
32
|
-
|
|
33
|
-
### get()
|
|
34
|
-
|
|
35
|
-
> **get**(): `Buffer`
|
|
36
|
-
|
|
37
|
-
Defined in: [lib/buffer.ts:140](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L140)
|
|
38
|
-
|
|
39
|
-
返回 Buffer 对象
|
|
40
|
-
|
|
41
|
-
#### Returns
|
|
42
|
-
|
|
43
|
-
`Buffer`
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
|
-
### writeBCDString()
|
|
48
|
-
|
|
49
|
-
> **writeBCDString**(`value`): `void`
|
|
50
|
-
|
|
51
|
-
Defined in: [lib/buffer.ts:120](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L120)
|
|
52
|
-
|
|
53
|
-
[每字节 2 数字] 写入一个 BCD 编码的字符串(仅支持数字)
|
|
54
|
-
|
|
55
|
-
#### Parameters
|
|
56
|
-
|
|
57
|
-
##### value
|
|
58
|
-
|
|
59
|
-
`string`
|
|
60
|
-
|
|
61
|
-
#### Returns
|
|
62
|
-
|
|
63
|
-
`void`
|
|
64
|
-
|
|
65
|
-
***
|
|
66
|
-
|
|
67
|
-
### writeString()
|
|
68
|
-
|
|
69
|
-
> **writeString**(`value`, `encoding`): `number`
|
|
70
|
-
|
|
71
|
-
Defined in: [lib/buffer.ts:130](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L130)
|
|
72
|
-
|
|
73
|
-
写入普通字符串,返回写入的长度
|
|
74
|
-
|
|
75
|
-
#### Parameters
|
|
76
|
-
|
|
77
|
-
##### value
|
|
78
|
-
|
|
79
|
-
`string`
|
|
80
|
-
|
|
81
|
-
##### encoding
|
|
82
|
-
|
|
83
|
-
`BufferEncoding` = `'utf8'`
|
|
84
|
-
|
|
85
|
-
#### Returns
|
|
86
|
-
|
|
87
|
-
`number`
|
|
88
|
-
|
|
89
|
-
***
|
|
90
|
-
|
|
91
|
-
### writeUInt16BE()
|
|
92
|
-
|
|
93
|
-
> **writeUInt16BE**(`value`): `void`
|
|
94
|
-
|
|
95
|
-
Defined in: [lib/buffer.ts:108](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L108)
|
|
96
|
-
|
|
97
|
-
[2 字节] 写入一个无符号 16 位整数(大端模式)
|
|
98
|
-
|
|
99
|
-
#### Parameters
|
|
100
|
-
|
|
101
|
-
##### value
|
|
102
|
-
|
|
103
|
-
`number`
|
|
104
|
-
|
|
105
|
-
#### Returns
|
|
106
|
-
|
|
107
|
-
`void`
|
|
108
|
-
|
|
109
|
-
***
|
|
110
|
-
|
|
111
|
-
### writeUInt32BE()
|
|
112
|
-
|
|
113
|
-
> **writeUInt32BE**(`value`): `void`
|
|
114
|
-
|
|
115
|
-
Defined in: [lib/buffer.ts:114](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L114)
|
|
116
|
-
|
|
117
|
-
[4 字节] 写入一个无符号 32 位整数(大端模式)
|
|
118
|
-
|
|
119
|
-
#### Parameters
|
|
120
|
-
|
|
121
|
-
##### value
|
|
122
|
-
|
|
123
|
-
`number`
|
|
124
|
-
|
|
125
|
-
#### Returns
|
|
126
|
-
|
|
127
|
-
`void`
|
|
128
|
-
|
|
129
|
-
***
|
|
130
|
-
|
|
131
|
-
### writeUInt8()
|
|
132
|
-
|
|
133
|
-
> **writeUInt8**(`value`): `void`
|
|
134
|
-
|
|
135
|
-
Defined in: [lib/buffer.ts:102](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L102)
|
|
136
|
-
|
|
137
|
-
[1 字节] 写入一个无符号 8 位整数
|
|
138
|
-
|
|
139
|
-
#### Parameters
|
|
140
|
-
|
|
141
|
-
##### value
|
|
142
|
-
|
|
143
|
-
`number`
|
|
144
|
-
|
|
145
|
-
#### Returns
|
|
146
|
-
|
|
147
|
-
`void`
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/buffer](../index.md) / getReader
|
|
6
|
-
|
|
7
|
-
# Function: getReader()
|
|
8
|
-
|
|
9
|
-
> **getReader**(`buffer`): [`Reader`](../classes/Reader.md)
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/buffer.ts:150](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L150)
|
|
12
|
-
|
|
13
|
-
Buffer Reader 对象
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### buffer
|
|
18
|
-
|
|
19
|
-
`Buffer`
|
|
20
|
-
|
|
21
|
-
要读取的 buffer
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
[`Reader`](../classes/Reader.md)
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/buffer](../index.md) / getWriter
|
|
6
|
-
|
|
7
|
-
# Function: getWriter()
|
|
8
|
-
|
|
9
|
-
> **getWriter**(`size`): [`Writer`](../classes/Writer.md)
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/buffer.ts:158](https://github.com/maiyunnet/kebab/blob/master/lib/buffer.ts#L158)
|
|
12
|
-
|
|
13
|
-
Buffer Writer 对象
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### size
|
|
18
|
-
|
|
19
|
-
`number`
|
|
20
|
-
|
|
21
|
-
缓冲区大小
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
[`Writer`](../classes/Writer.md)
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../index.md) / lib/buffer
|
|
6
|
-
|
|
7
|
-
# lib/buffer
|
|
8
|
-
|
|
9
|
-
## Classes
|
|
10
|
-
|
|
11
|
-
- [Reader](classes/Reader.md)
|
|
12
|
-
- [Writer](classes/Writer.md)
|
|
13
|
-
|
|
14
|
-
## Functions
|
|
15
|
-
|
|
16
|
-
- [getReader](functions/getReader.md)
|
|
17
|
-
- [getWriter](functions/getWriter.md)
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/captcha](../index.md) / Captcha
|
|
6
|
-
|
|
7
|
-
# Class: Captcha
|
|
8
|
-
|
|
9
|
-
Defined in: [lib/captcha.ts:13](https://github.com/maiyunnet/kebab/blob/master/lib/captcha.ts#L13)
|
|
10
|
-
|
|
11
|
-
## Constructors
|
|
12
|
-
|
|
13
|
-
### Constructor
|
|
14
|
-
|
|
15
|
-
> **new Captcha**(`opt`): `Captcha`
|
|
16
|
-
|
|
17
|
-
Defined in: [lib/captcha.ts:17](https://github.com/maiyunnet/kebab/blob/master/lib/captcha.ts#L17)
|
|
18
|
-
|
|
19
|
-
#### Parameters
|
|
20
|
-
|
|
21
|
-
##### opt
|
|
22
|
-
|
|
23
|
-
###### height
|
|
24
|
-
|
|
25
|
-
`number`
|
|
26
|
-
|
|
27
|
-
###### length
|
|
28
|
-
|
|
29
|
-
`number`
|
|
30
|
-
|
|
31
|
-
###### width
|
|
32
|
-
|
|
33
|
-
`number`
|
|
34
|
-
|
|
35
|
-
#### Returns
|
|
36
|
-
|
|
37
|
-
`Captcha`
|
|
38
|
-
|
|
39
|
-
## Methods
|
|
40
|
-
|
|
41
|
-
### getBase64()
|
|
42
|
-
|
|
43
|
-
> **getBase64**(): `string`
|
|
44
|
-
|
|
45
|
-
Defined in: [lib/captcha.ts:38](https://github.com/maiyunnet/kebab/blob/master/lib/captcha.ts#L38)
|
|
46
|
-
|
|
47
|
-
获取 base64 格式图片
|
|
48
|
-
|
|
49
|
-
#### Returns
|
|
50
|
-
|
|
51
|
-
`string`
|
|
52
|
-
|
|
53
|
-
***
|
|
54
|
-
|
|
55
|
-
### getBuffer()
|
|
56
|
-
|
|
57
|
-
> **getBuffer**(): `string`
|
|
58
|
-
|
|
59
|
-
Defined in: [lib/captcha.ts:31](https://github.com/maiyunnet/kebab/blob/master/lib/captcha.ts#L31)
|
|
60
|
-
|
|
61
|
-
获取图片 Buffer
|
|
62
|
-
|
|
63
|
-
#### Returns
|
|
64
|
-
|
|
65
|
-
`string`
|
|
66
|
-
|
|
67
|
-
***
|
|
68
|
-
|
|
69
|
-
### getPhrase()
|
|
70
|
-
|
|
71
|
-
> **getPhrase**(): `string`
|
|
72
|
-
|
|
73
|
-
Defined in: [lib/captcha.ts:45](https://github.com/maiyunnet/kebab/blob/master/lib/captcha.ts#L45)
|
|
74
|
-
|
|
75
|
-
获取当前随机码
|
|
76
|
-
|
|
77
|
-
#### Returns
|
|
78
|
-
|
|
79
|
-
`string`
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/captcha](../index.md) / get
|
|
6
|
-
|
|
7
|
-
# Function: get()
|
|
8
|
-
|
|
9
|
-
> **get**(`width`, `height`, `length`): [`Captcha`](../classes/Captcha.md)
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/captcha.ts:57](https://github.com/maiyunnet/kebab/blob/master/lib/captcha.ts#L57)
|
|
12
|
-
|
|
13
|
-
获取验证码对象
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### width
|
|
18
|
-
|
|
19
|
-
`number`
|
|
20
|
-
|
|
21
|
-
宽度
|
|
22
|
-
|
|
23
|
-
### height
|
|
24
|
-
|
|
25
|
-
`number`
|
|
26
|
-
|
|
27
|
-
高度
|
|
28
|
-
|
|
29
|
-
### length
|
|
30
|
-
|
|
31
|
-
`number` = `4`
|
|
32
|
-
|
|
33
|
-
字符个数
|
|
34
|
-
|
|
35
|
-
## Returns
|
|
36
|
-
|
|
37
|
-
[`Captcha`](../classes/Captcha.md)
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/consistent](../index.md) / Consistent
|
|
6
|
-
|
|
7
|
-
# Class: Consistent
|
|
8
|
-
|
|
9
|
-
Defined in: [lib/consistent.ts:8](https://github.com/maiyunnet/kebab/blob/master/lib/consistent.ts#L8)
|
|
10
|
-
|
|
11
|
-
## Constructors
|
|
12
|
-
|
|
13
|
-
### Constructor
|
|
14
|
-
|
|
15
|
-
> **new Consistent**(`vcount`): `Consistent`
|
|
16
|
-
|
|
17
|
-
Defined in: [lib/consistent.ts:19](https://github.com/maiyunnet/kebab/blob/master/lib/consistent.ts#L19)
|
|
18
|
-
|
|
19
|
-
#### Parameters
|
|
20
|
-
|
|
21
|
-
##### vcount
|
|
22
|
-
|
|
23
|
-
`number`
|
|
24
|
-
|
|
25
|
-
#### Returns
|
|
26
|
-
|
|
27
|
-
`Consistent`
|
|
28
|
-
|
|
29
|
-
## Methods
|
|
30
|
-
|
|
31
|
-
### add()
|
|
32
|
-
|
|
33
|
-
> **add**(`node`): `void`
|
|
34
|
-
|
|
35
|
-
Defined in: [lib/consistent.ts:34](https://github.com/maiyunnet/kebab/blob/master/lib/consistent.ts#L34)
|
|
36
|
-
|
|
37
|
-
添加节点
|
|
38
|
-
|
|
39
|
-
#### Parameters
|
|
40
|
-
|
|
41
|
-
##### node
|
|
42
|
-
|
|
43
|
-
node 节点名一个或多个
|
|
44
|
-
|
|
45
|
-
`string` | `string`[]
|
|
46
|
-
|
|
47
|
-
#### Returns
|
|
48
|
-
|
|
49
|
-
`void`
|
|
50
|
-
|
|
51
|
-
***
|
|
52
|
-
|
|
53
|
-
### find()
|
|
54
|
-
|
|
55
|
-
> **find**(`key`): `string` \| `null`
|
|
56
|
-
|
|
57
|
-
Defined in: [lib/consistent.ts:59](https://github.com/maiyunnet/kebab/blob/master/lib/consistent.ts#L59)
|
|
58
|
-
|
|
59
|
-
获得一个最近的顺时针节点
|
|
60
|
-
|
|
61
|
-
#### Parameters
|
|
62
|
-
|
|
63
|
-
##### key
|
|
64
|
-
|
|
65
|
-
为给定键取 Hash,取得顺时针方向上最近的一个虚拟节点对应的实际节点
|
|
66
|
-
|
|
67
|
-
`string` | `number`
|
|
68
|
-
|
|
69
|
-
#### Returns
|
|
70
|
-
|
|
71
|
-
`string` \| `null`
|
|
72
|
-
|
|
73
|
-
***
|
|
74
|
-
|
|
75
|
-
### getVcount()
|
|
76
|
-
|
|
77
|
-
> **getVcount**(): `number`
|
|
78
|
-
|
|
79
|
-
Defined in: [lib/consistent.ts:26](https://github.com/maiyunnet/kebab/blob/master/lib/consistent.ts#L26)
|
|
80
|
-
|
|
81
|
-
获取当前的虚拟节点数量
|
|
82
|
-
|
|
83
|
-
#### Returns
|
|
84
|
-
|
|
85
|
-
`number`
|
|
86
|
-
|
|
87
|
-
***
|
|
88
|
-
|
|
89
|
-
### migration()
|
|
90
|
-
|
|
91
|
-
> **migration**(`keys`, `node`): `Record`\<`string`, \{ `new`: `string`; `old`: `string`; \}\>
|
|
92
|
-
|
|
93
|
-
Defined in: [lib/consistent.ts:74](https://github.com/maiyunnet/kebab/blob/master/lib/consistent.ts#L74)
|
|
94
|
-
|
|
95
|
-
原数据迁移到新地址
|
|
96
|
-
|
|
97
|
-
#### Parameters
|
|
98
|
-
|
|
99
|
-
##### keys
|
|
100
|
-
|
|
101
|
-
原始数据 key 集
|
|
102
|
-
|
|
103
|
-
`string` | `number` | (`string` \| `number`)[]
|
|
104
|
-
|
|
105
|
-
##### node
|
|
106
|
-
|
|
107
|
-
新增的节点一个或多个
|
|
108
|
-
|
|
109
|
-
`string` | `string`[]
|
|
110
|
-
|
|
111
|
-
#### Returns
|
|
112
|
-
|
|
113
|
-
`Record`\<`string`, \{ `new`: `string`; `old`: `string`; \}\>
|
|
114
|
-
|
|
115
|
-
***
|
|
116
|
-
|
|
117
|
-
### remove()
|
|
118
|
-
|
|
119
|
-
> **remove**(`node`): `void`
|
|
120
|
-
|
|
121
|
-
Defined in: [lib/consistent.ts:43](https://github.com/maiyunnet/kebab/blob/master/lib/consistent.ts#L43)
|
|
122
|
-
|
|
123
|
-
移除节点
|
|
124
|
-
|
|
125
|
-
#### Parameters
|
|
126
|
-
|
|
127
|
-
##### node
|
|
128
|
-
|
|
129
|
-
node 节点名
|
|
130
|
-
|
|
131
|
-
`string` | `string`[]
|
|
132
|
-
|
|
133
|
-
#### Returns
|
|
134
|
-
|
|
135
|
-
`void`
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/consistent](../index.md) / addToCircle
|
|
6
|
-
|
|
7
|
-
# Function: addToCircle()
|
|
8
|
-
|
|
9
|
-
> **addToCircle**(`circle`, `node`, `vcount`): `void`
|
|
10
|
-
|
|
11
|
-
Defined in: [lib/consistent.ts:167](https://github.com/maiyunnet/kebab/blob/master/lib/consistent.ts#L167)
|
|
12
|
-
|
|
13
|
-
添加到圆环
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### circle
|
|
18
|
-
|
|
19
|
-
`Record`\<`string`, `string`\>
|
|
20
|
-
|
|
21
|
-
圆环
|
|
22
|
-
|
|
23
|
-
### node
|
|
24
|
-
|
|
25
|
-
node 节点名一个或多个
|
|
26
|
-
|
|
27
|
-
`string` | `string`[]
|
|
28
|
-
|
|
29
|
-
### vcount
|
|
30
|
-
|
|
31
|
-
`number` = `300`
|
|
32
|
-
|
|
33
|
-
虚拟节点数量
|
|
34
|
-
|
|
35
|
-
## Returns
|
|
36
|
-
|
|
37
|
-
`void`
|