nodebb-plugin-openai 1.4.1 → 1.4.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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "error.need-x-reputation-to-mention": "提及 chatgpt 至少需要 %1 声望值",
3
+ "summarize-topic": "总结主题",
4
+ "topic-summary": "主题摘要"
5
+ }
package/library.js CHANGED
@@ -203,7 +203,7 @@ async function checkReputation(uid, settings, silent) {
203
203
  }
204
204
 
205
205
  async function checkGroupMembership(uid, settings, silent) {
206
- let allowedGroups = [];
206
+ let allowedGroups;
207
207
  try {
208
208
  allowedGroups = JSON.parse(settings.allowedGroups) || [];
209
209
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-openai",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "A NodeBB OpenAI plugin",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -41,8 +41,8 @@
41
41
  "devDependencies": {
42
42
  "@commitlint/cli": "19.3.0",
43
43
  "@commitlint/config-angular": "19.3.0",
44
- "eslint": "9.26.0",
45
- "eslint-config-nodebb": "^1.1.4",
44
+ "eslint": "10.5.0",
45
+ "eslint-config-nodebb": "^2.0.3",
46
46
  "husky": "9.0.11",
47
47
  "lint-staged": "15.2.7"
48
48
  }