@satorijs/adapter-kook
Advanced tools
Comparing version 4.5.0 to 4.5.1
@@ -533,4 +533,5 @@ var __defProp = Object.defineProperty; | ||
let parsed; | ||
data = data.toString(); | ||
try { | ||
parsed = JSON.parse(data.toString()); | ||
parsed = JSON.parse(data); | ||
} catch (error) { | ||
@@ -537,0 +538,0 @@ return this.bot.logger.warn("cannot parse message", data); |
{ | ||
"name": "@satorijs/adapter-kook", | ||
"description": "KOOK (开黑啦) Adapter for Satorijs", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"main": "lib/index.js", | ||
@@ -35,4 +35,4 @@ "typings": "lib/index.d.ts", | ||
"peerDependencies": { | ||
"@satorijs/satori": "^3.6.0" | ||
"@satorijs/satori": "^3.6.1" | ||
} | ||
} |
@@ -42,4 +42,5 @@ import { Adapter, Context, Schema, Time, Universal } from '@satorijs/satori' | ||
let parsed: Payload | ||
data = data.toString() | ||
try { | ||
parsed = JSON.parse(data.toString()) | ||
parsed = JSON.parse(data) | ||
} catch (error) { | ||
@@ -46,0 +47,0 @@ return this.bot.logger.warn('cannot parse message', data) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152654
66
3549