@karinjs/plugin-basic 1.0.6 → 1.0.8
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/apps/restart.js
CHANGED
package/dist/apps/status.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-UEURYWPB.js";
|
|
4
|
+
import "../chunk-FOHB2OK5.js";
|
|
5
5
|
|
|
6
6
|
// src/apps/status.ts
|
|
7
7
|
import moment from "node-karin/moment";
|
|
@@ -74,6 +74,13 @@ var uptime = () => {
|
|
|
74
74
|
next();
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
+
hooks.eventCall((e, _, next) => {
|
|
78
|
+
try {
|
|
79
|
+
redis.incr(`${EVENT_COUNT}:${createKey(e.contact)}`);
|
|
80
|
+
} finally {
|
|
81
|
+
next();
|
|
82
|
+
}
|
|
83
|
+
});
|
|
77
84
|
})();
|
|
78
85
|
export {
|
|
79
86
|
status
|
|
@@ -4,7 +4,7 @@ import path from "node:path";
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "@karinjs/plugin-basic",
|
|
7
|
-
version: "1.0.
|
|
7
|
+
version: "1.0.8",
|
|
8
8
|
description: "karin plugin for basic functions",
|
|
9
9
|
homepage: "https://github.com/KarinJS/karin-plugin-basic",
|
|
10
10
|
bugs: {
|
|
@@ -34,13 +34,13 @@ var package_default = {
|
|
|
34
34
|
karin: "karin"
|
|
35
35
|
},
|
|
36
36
|
devDependencies: {
|
|
37
|
-
"@types/node": "^20.17.
|
|
38
|
-
eslint: "^9.
|
|
37
|
+
"@types/node": "^20.17.30",
|
|
38
|
+
eslint: "^9.24.0",
|
|
39
39
|
neostandard: "^0.12.1",
|
|
40
|
-
"node-karin": "^1.
|
|
41
|
-
tsup: "^8.
|
|
42
|
-
tsx: "^4.19.
|
|
43
|
-
typescript: "^5.
|
|
40
|
+
"node-karin": "^1.7.14",
|
|
41
|
+
tsup: "^8.4.0",
|
|
42
|
+
tsx: "^4.19.3",
|
|
43
|
+
typescript: "^5.8.3"
|
|
44
44
|
},
|
|
45
45
|
publishConfig: {
|
|
46
46
|
access: "public",
|
package/dist/index.js
CHANGED
package/dist/web.config.js
CHANGED