koishi-plugin-chatluna-character 0.0.113 → 0.0.115

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/lib/index.cjs CHANGED
@@ -366,11 +366,7 @@ function preprocessContent(content) {
366
366
  }
367
367
  __name(preprocessContent, "preprocessContent");
368
368
  function tryParseJSON(content) {
369
- try {
370
- return JSON.parse(content);
371
- } catch (e) {
372
- return null;
373
- }
369
+ return JSON.parse(content);
374
370
  }
375
371
  __name(tryParseJSON, "tryParseJSON");
376
372
  function attemptToFixJSON(content) {
package/lib/index.mjs CHANGED
@@ -334,11 +334,7 @@ function preprocessContent(content) {
334
334
  }
335
335
  __name(preprocessContent, "preprocessContent");
336
336
  function tryParseJSON(content) {
337
- try {
338
- return JSON.parse(content);
339
- } catch (e) {
340
- return null;
341
- }
337
+ return JSON.parse(content);
342
338
  }
343
339
  __name(tryParseJSON, "tryParseJSON");
344
340
  function attemptToFixJSON(content) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-chatluna-character",
3
3
  "description": "Let the large language model play a role, disguise as a group friend",
4
- "version": "0.0.113",
4
+ "version": "0.0.115",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
7
7
  "module": "lib/index.mjs",