mioki 0.8.1 → 0.8.2
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/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.mts +6 -2
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{package-CROM2KRT.cjs → package-CRcx0VP6.cjs} +2 -2
- package/dist/package-CRcx0VP6.cjs.map +1 -0
- package/dist/package-DpnA9qw3.mjs +6 -0
- package/dist/package-DpnA9qw3.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/package-CCa0t7n-.mjs +0 -6
- package/dist/package-CCa0t7n-.mjs.map +0 -1
- package/dist/package-CROM2KRT.cjs.map +0 -1
package/dist/cli.cjs
CHANGED
package/dist/cli.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_package = require('./package-
|
|
1
|
+
const require_package = require('./package-CRcx0VP6.cjs');
|
|
2
2
|
let node_fs = require("node:fs");
|
|
3
3
|
node_fs = require_package.__toESM(node_fs);
|
|
4
4
|
let node_util = require("node:util");
|
|
@@ -58,6 +58,7 @@ var utils_exports = /* @__PURE__ */ require_package.__export({
|
|
|
58
58
|
fs: () => node_fs.default,
|
|
59
59
|
getAuthCodeViaTicket: () => getAuthCodeViaTicket,
|
|
60
60
|
getBfaceUrl: () => getBfaceUrl,
|
|
61
|
+
getGTk: () => getGTk,
|
|
61
62
|
getGroupAvatarLink: () => getGroupAvatarLink,
|
|
62
63
|
getImage: () => getImage,
|
|
63
64
|
getImageUrl: () => getImageUrl,
|
|
@@ -770,6 +771,14 @@ async function getTerminalInput(inputTip = "请输入") {
|
|
|
770
771
|
* 当前 Node.js 进程的启动时间,常量,Date 类型
|
|
771
772
|
*/
|
|
772
773
|
const START_TIME = /* @__PURE__ */ new Date();
|
|
774
|
+
/**
|
|
775
|
+
* 计算 GTK 值
|
|
776
|
+
*/
|
|
777
|
+
function getGTk(pskey) {
|
|
778
|
+
let gkt = 5381;
|
|
779
|
+
for (let i = 0, len = pskey.length; i < len; ++i) gkt += (gkt << 5) + pskey.charCodeAt(i);
|
|
780
|
+
return gkt & 2147483647;
|
|
781
|
+
}
|
|
773
782
|
|
|
774
783
|
//#endregion
|
|
775
784
|
//#region src/config.ts
|
|
@@ -1934,6 +1943,7 @@ Object.defineProperty(exports, 'fs', {
|
|
|
1934
1943
|
exports.getAbsPluginDir = getAbsPluginDir;
|
|
1935
1944
|
exports.getAuthCodeViaTicket = getAuthCodeViaTicket;
|
|
1936
1945
|
exports.getBfaceUrl = getBfaceUrl;
|
|
1946
|
+
exports.getGTk = getGTk;
|
|
1937
1947
|
exports.getGroupAvatarLink = getGroupAvatarLink;
|
|
1938
1948
|
exports.getImage = getImage;
|
|
1939
1949
|
exports.getImageUrl = getImageUrl;
|