node-karin 1.1.4 → 1.1.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # 更新日志
2
2
 
3
+ ## [1.1.5](https://github.com/KarinJS/Karin/compare/core-v1.1.4...core-v1.1.5) (2025-01-17)
4
+
5
+
6
+ ### 🐛 Bug Fixes
7
+
8
+ * 好友事件启用 ([7109f61](https://github.com/KarinJS/Karin/commit/7109f61cefe16bddc3f791b4e6bb13092d7d6757))
9
+
3
10
  ## [1.1.4](https://github.com/KarinJS/Karin/compare/core-v1.1.3...core-v1.1.4) (2025-01-16)
4
11
 
5
12
 
package/dist/index.d.ts CHANGED
@@ -8957,8 +8957,6 @@ interface Config {
8957
8957
  admin: string[];
8958
8958
  /** 用户管理 */
8959
8959
  user: {
8960
- /** 是否启用用户事件 */
8961
- enable: boolean;
8962
8960
  /** 用户白名单 */
8963
8961
  enable_list: string[];
8964
8962
  /** 用户黑名单 */
package/dist/index.js CHANGED
@@ -5856,7 +5856,7 @@ var init_handler2 = __esm({
5856
5856
  privateFilterEvent = (ctx3, config2, friend, cd) => {
5857
5857
  var _a, _b, _c, _d, _e, _f, _g, _h;
5858
5858
  if (ctx3.isFriend) {
5859
- if (!((_a = config2 == null ? void 0 : config2.user) == null ? void 0 : _a.enable)) {
5859
+ if (!((_a = config2 == null ? void 0 : config2.friend) == null ? void 0 : _a.enable)) {
5860
5860
  log(ctx3.userId, `\u5F53\u524D\u597D\u53CB\u4E8B\u4EF6\u672A\u542F\u7528: ${ctx3.eventId}`);
5861
5861
  return false;
5862
5862
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Lightweight, efficient, concise, and stable robot framework.",
5
5
  "keywords": [
6
6
  "node",
@@ -61,7 +61,7 @@
61
61
  "pr": "node cli/pr.js all",
62
62
  "pub": "npm publish --access public",
63
63
  "pub-beta": "npm publish --access public --tag beta",
64
- "sort": "npx sort-package-json && sort-json tsconfig.json"
64
+ "sort": "sort-package-json && sort-json tsconfig.json"
65
65
  },
66
66
  "dependencies": {
67
67
  "@types/express": "^5.0.0",