@koishijs/core
Advanced tools
Comparing version 4.15.7 to 4.16.0
{ | ||
"name": "@koishijs/core", | ||
"description": "Core Features for Koishi", | ||
"version": "4.15.7", | ||
"version": "4.16.0", | ||
"main": "lib/index.cjs", | ||
@@ -36,5 +36,5 @@ "module": "lib/index.mjs", | ||
"@koishijs/utils": "^7.1.1", | ||
"@minatojs/core": "^2.6.1", | ||
"@satorijs/core": "^3.2.3", | ||
"cordis": "^3.3.1", | ||
"@minatojs/core": "^2.7.0", | ||
"@satorijs/core": "^3.3.0", | ||
"cordis": "^3.4.0", | ||
"cosmokit": "^1.5.1", | ||
@@ -41,0 +41,0 @@ "fastest-levenshtein": "^1.0.16" |
@@ -148,3 +148,3 @@ import { Awaitable, defineProperty } from 'cosmokit' | ||
const result = Array.isArray(value) ? value : [value || ''] | ||
return result.map(source => h.escape(source)) | ||
return result.map(source => h.escape(source)).sort().reverse() | ||
} | ||
@@ -151,0 +151,0 @@ |
@@ -81,5 +81,5 @@ import * as utils from '@koishijs/utils' | ||
this.extend('user', { | ||
id: 'unsigned(20)', | ||
id: 'unsigned(8)', | ||
name: { type: 'string', length: 255 }, | ||
flag: 'unsigned(20)', | ||
flag: 'unsigned(8)', | ||
authority: 'unsigned(4)', | ||
@@ -94,4 +94,4 @@ locales: 'list(255)', | ||
this.extend('binding', { | ||
aid: 'unsigned(20)', | ||
bid: 'unsigned(20)', | ||
aid: 'unsigned(8)', | ||
bid: 'unsigned(8)', | ||
pid: 'string(255)', | ||
@@ -106,3 +106,3 @@ platform: 'string(255)', | ||
platform: 'string(255)', | ||
flag: 'unsigned(20)', | ||
flag: 'unsigned(8)', | ||
assignee: 'string(255)', | ||
@@ -109,0 +109,0 @@ guildId: 'string(255)', |
@@ -8,5 +8,2 @@ import { distance } from 'fastest-levenshtein' | ||
import enUS from './locales/en-US.yml' | ||
import jaJP from './locales/ja-JP.yml' | ||
import frFR from './locales/fr-FR.yml' | ||
import zhTW from './locales/zh-TW.yml' | ||
@@ -62,5 +59,2 @@ const logger = new Logger('i18n') | ||
this.define('en-US', enUS) | ||
this.define('ja-JP', jaJP) | ||
this.define('fr-FR', frFR) | ||
this.define('zh-TW', zhTW) | ||
} | ||
@@ -67,0 +61,0 @@ |
@@ -474,4 +474,5 @@ import { observe } from '@koishijs/utils' | ||
return this.prompt((session) => { | ||
const content = session.content.trim() | ||
if (!content || content === '.' || content === '。') { | ||
const { content, atSelf, hasAt } = session.stripped | ||
if (!atSelf && hasAt) return | ||
if (content === '.' || content === '。') { | ||
return expect[0] | ||
@@ -478,0 +479,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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
467136
8805
Updated@minatojs/core@^2.7.0
Updated@satorijs/core@^3.3.0
Updatedcordis@^3.4.0