foliko 1.0.61 → 1.0.62

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/plugins/email.js +4 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foliko",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "简约的插件化 Agent 框架",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/plugins/email.js CHANGED
@@ -196,12 +196,11 @@ class EmailPlugin extends Plugin {
196
196
  async _handleEmailWatch(args) {
197
197
  args={
198
198
  ...args,
199
- host: config.host || process.env.IMAP_HOST,
200
- port: config.port || parseInt(process.env.IMAP_PORT) || 993,
201
- user: config.user || process.env.IMAP_USER,
202
- password: config.password || process.env.IMAP_PASS
199
+ host: process.env.IMAP_HOST,
200
+ port: parseInt(process.env.IMAP_PORT) || 993,
201
+ user: process.env.IMAP_USER,
202
+ password: process.env.IMAP_PASS
203
203
  }
204
-
205
204
  const { action, interval, host, port, user, password, box } = args
206
205
 
207
206
  switch (action) {