New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koishi-plugin-common

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koishi-plugin-common - npm Package Compare versions

Comparing version 4.0.0-beta.2 to 4.0.0-beta.3

15

dist/index.js

@@ -136,7 +136,12 @@ var __create = Object.create;

var _a;
const {$user} = session;
if (!name2) {
return `好的,${session.$username},请多指教!`;
} else if (name2 === session.$user.name) {
if ($user.name) {
return `好的呢,${session.$username}!`;
} else {
return "你还没有给自己起一个称呼呢~";
}
} else if (name2 === $user.name) {
return "称呼未发生变化。";
} else if (/^\s+$/.test(name2)) {
} else if (!(name2 = name2.trim())) {
return "称呼不能为空。";

@@ -150,4 +155,4 @@ } else if (name2.includes("[CQ:")) {

try {
session.$user.name = name2;
await session.$user._update();
$user.name = name2;
await $user._update();
return `好的,${session.$username},请多指教!`;

@@ -154,0 +159,0 @@ } catch (error) {

{
"name": "koishi-plugin-common",
"description": "Common plugins for Koishi",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.3",
"main": "dist/index.js",

@@ -33,3 +33,3 @@ "typings": "dist/index.d.ts",

"peerDependencies": {
"koishi-core": "^3.0.0-beta.2",
"koishi-core": "^3.0.0-beta.3",
"koishi-utils": "^3.2.2"

@@ -36,0 +36,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc