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 2.1.6 to 2.1.7

2

dist/contextify.js

@@ -19,3 +19,3 @@ "use strict";

if (!message)
return meta.$send('请输入要发送的文本。');
return meta.$send('请输入要触发的指令。');
if (options.member) {

@@ -22,0 +22,0 @@ if (meta.messageType === 'private') {

{
"name": "koishi-plugin-common",
"description": "Common plugins for Koishi",
"version": "2.1.6",
"version": "2.1.7",
"main": "dist/index.js",

@@ -31,9 +31,9 @@ "typings": "dist/index.d.ts",

"devDependencies": {
"koishi-database-memory": "^1.1.5",
"koishi-test-utils": "^3.1.4"
"koishi-database-memory": "^1.1.6",
"koishi-test-utils": "^3.2.1"
},
"dependencies": {
"koishi-core": "^1.11.0",
"koishi-core": "^1.11.1",
"koishi-utils": "^1.0.4"
}
}

@@ -17,3 +17,3 @@ import { Context, getTargetId, ContextType } from 'koishi-core'

.action(async ({ meta, options }, message) => {
if (!message) return meta.$send('请输入要发送的文本。')
if (!message) return meta.$send('请输入要触发的指令。')

@@ -20,0 +20,0 @@ if (options.member) {

@@ -24,3 +24,3 @@ import { MockedApp } from 'koishi-test-utils'

test('check input', async () => {
await session1.shouldHaveReply('ctxf -u 456', '请输入要发送的文本。')
await session1.shouldHaveReply('ctxf -u 456', '请输入要触发的指令。')
await session2.shouldHaveReply('ctxf -m foo show-context', '未指定目标。')

@@ -27,0 +27,0 @@ await session1.shouldHaveReply('ctxf show-context', '请提供新的上下文。')

@@ -22,2 +22,6 @@ import { MockedApp } from 'koishi-test-utils'

app.shouldHaveLastRequest('send_group_msg', { groupId: 123, message: `欢迎新大佬 [CQ:at,qq=456]!` })
app.receive({ ...shared, userId: app.selfId })
await sleep(0)
app.shouldHaveNoRequests()
})

@@ -24,0 +28,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