react-native-email-imap-smtp 0.3.7 → 0.3.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-email-imap-smtp",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "The best of imap and smtp client of react native",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
package/server/bin.mjs CHANGED
@@ -55,8 +55,4 @@ startEmailProxy({ port, silent, detach: !foreground }).then((handle) => {
55
55
  };
56
56
  process.on('SIGINT', cleanup);
57
57
  process.on('SIGTERM', cleanup);
58
-
59
- // 保持事件循环活跃
60
- const keepAlive = setInterval(() => {}, 2 ** 31 - 1);
61
- process.on('exit', () => clearInterval(keepAlive));
62
58
  });
package/server/proxy.mjs CHANGED
@@ -73,7 +73,7 @@ export async function startEmailProxy(options = {}) {
73
73
 
74
74
  const proc = spawn('node', [entryFile], {
75
75
  cwd: serverDir,
76
- stdio: ['ignore', silent ? 'ignore' : 'inherit', 'pipe'],
76
+ stdio: ['ignore', silent || detach ? 'ignore' : 'inherit', 'pipe'],
77
77
  env: { ...process.env, PROXY_PORT: String(port) },
78
78
  shell: false,
79
79
  detached: detach,