@satorijs/core
Advanced tools
Comparing version 3.1.2 to 3.1.4
{ | ||
"name": "@satorijs/core", | ||
"description": "Core components of Satorijs", | ||
"version": "3.1.2", | ||
"version": "3.1.4", | ||
"main": "lib/index.cjs", | ||
@@ -30,4 +30,4 @@ "module": "lib/index.mjs", | ||
"scripts": { | ||
"compile:cjs": "esbuild src/index.ts --outfile=lib/index.cjs --bundle --sourcemap --sources-content=false --platform=node --external:cosmokit --external:cordis --target=es2019", | ||
"compile:esm": "esbuild src/index.ts --outfile=lib/index.mjs --bundle --sourcemap --sources-content=false --platform=neutral --external:cosmokit --external:cordis --target=esnext", | ||
"compile:cjs": "esbuild src/index.ts --outfile=lib/index.cjs --bundle --sourcemap --sources-content=false --platform=node --external:cosmokit --external:cordis --target=es2022", | ||
"compile:esm": "esbuild src/index.ts --outfile=lib/index.mjs --bundle --sourcemap --sources-content=false --platform=neutral --external:cosmokit --external:cordis --target=es2022", | ||
"build": "yarn compile:cjs && yarn compile:esm && yarn dtsc" | ||
@@ -41,3 +41,3 @@ }, | ||
"@satorijs/protocol": "^1.1.1", | ||
"cordis": "^3.1.2", | ||
"cordis": "^3.2.1", | ||
"cordis-axios": "^4.0.1", | ||
@@ -44,0 +44,0 @@ "cosmokit": "^1.5.1", |
@@ -49,3 +49,3 @@ import { Bot } from './bot' | ||
for (const btn of btns) { | ||
const r = (Math.random() + 1).toString(36).substring(7) | ||
const r = Math.random().toString(36).slice(2) | ||
btn.attrs.id ||= r | ||
@@ -52,0 +52,0 @@ if (typeof btn.attrs.action === 'function') this.bot.callbacks[btn.attrs.id] = btn.attrs.action |
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
108632
Updatedcordis@^3.2.1