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

koishi-core

Package Overview
Dependencies
Maintainers
1
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koishi-core - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

6

dist/app.js

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

.filter(([context]) => context.match(session))
.map(([_, middleware]) => middleware);
.map(([, middleware]) => middleware);
// execute middlewares

@@ -202,5 +202,5 @@ let index = 0, midStack = '', lastCall = '';

}
_parse(message, { $prefix, $appel, messageType }, builtin, terminator = '') {
_parse(message, { $reply, $prefix, $appel, messageType }, builtin, terminator = '') {
// group message should have prefix or appel to be interpreted as a command call
if (builtin && messageType !== 'private' && $prefix === null && !$appel)
if (builtin && ($reply || messageType !== 'private' && $prefix === null && !$appel))
return;

@@ -207,0 +207,0 @@ terminator = koishi_utils_1.escapeRegExp(terminator);

@@ -110,5 +110,5 @@ /// <reference types="node" />

stringify(args: readonly string[], options: any): string;
execute(argv: ParsedArgv<U, G, O>): Promise<void>;
execute(argv: ParsedArgv<U, G, O>): any;
dispose(): void;
}
export {};

@@ -40,3 +40,3 @@ import * as utils from 'koishi-utils';

export const fields: Field[];
export type Observed<K extends Field = Field> = utils.Observed<Pick<Group, K>>;
export type Observed<K extends Field = Field> = utils.Observed<Pick<Group, K>, Promise<void>>;
type Getter = (id: number, authority: number) => Partial<Group>;

@@ -43,0 +43,0 @@ export function extend(getter: Getter): void;

@@ -29,4 +29,4 @@ "use strict";

});
ctx.on('parse', (message, { $prefix, $appel }, builtin) => {
if (!builtin || $prefix)
ctx.on('parse', (message, { $reply, $prefix, $appel }, builtin) => {
if (!builtin || $prefix || $reply)
return;

@@ -33,0 +33,0 @@ for (const shortcut of ctx.app._shortcuts) {

{
"name": "koishi-core",
"description": "Core features for Koishi",
"version": "2.0.1",
"version": "2.0.2",
"main": "dist/index.js",

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

"@types/lru-cache": "^5.1.0",
"koishi-test-utils": "^4.0.0-beta.9"
"koishi-test-utils": "^4.0.0"
},

@@ -48,3 +48,3 @@ "dependencies": {

"koa-router": "^9.4.0",
"koishi-utils": "^3.1.1",
"koishi-utils": "^3.1.2",
"leven": "^3.1.0",

@@ -51,0 +51,0 @@ "lru-cache": "^6.0.0"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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