alemonjs 2.1.0-alpha.30 → 2.1.0-alpha.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { join } from 'path'
2
+ import {join} from 'path'
3
3
  import fs from 'fs'
4
4
  import YAML from 'yaml'
5
5
  const configPath = join(process.cwd(), 'alemon.config.yaml')
@@ -185,7 +185,6 @@ const connectionTestOne = (ws, _request) => {
185
185
  try {
186
186
  const messages = JSON.parse(readFileSync(messagePath, 'utf-8'));
187
187
  const updatedMessages = messages.filter((msg) => msg.CreateAt !== CreateAt);
188
- console.log('updatedMessages', updatedMessages);
189
188
  writeFile(messagePath, JSON.stringify(updatedMessages, null, 2), error => {
190
189
  if (error) {
191
190
  logger.error(`写入 ${type} 消息失败:`, error);
package/lib/main.js CHANGED
@@ -80,7 +80,6 @@ const start = async (options = {}) => {
80
80
  // 设置环境变量
81
81
  process.env.port = port;
82
82
  cbpServer(port, async () => {
83
- console.log(`ws://127.0.0.1:${port}`);
84
83
  const url = `ws://127.0.0.1:${port}`;
85
84
  const isFullReceive = options?.is_full_receive || cfg.argv?.is_full_receive || cfg.value?.is_full_receive || true;
86
85
  cbpClient(url, { isFullReceive });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alemonjs",
3
- "version": "2.1.0-alpha.30",
3
+ "version": "2.1.0-alpha.31",
4
4
  "description": "bot script",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",