@loybung/launcher 4.2.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -20,12 +20,13 @@ async function launcher(
20
20
  return;
21
21
  }
22
22
 
23
- const app = path.resolve(__dirname, `../../../${filepath}`); // `../../../${filepath}`
24
- const { run } = require(app);
23
+ const { run } = require(filepath);
25
24
  callback(run, expire);
26
25
  });
27
26
 
28
27
  if (expire) {
28
+ if (expire < Math.floor(Date.now() / 1000)) process.exit();
29
+
29
30
  setInterval(() => {
30
31
  if (expire < Math.floor(Date.now() / 1000)) process.exit();
31
32
  }, 5000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loybung/launcher",
3
- "version": "4.2.0",
3
+ "version": "5.0.0",
4
4
  "description": "LOYBUNG / Launcher",
5
5
  "main": "index.js",
6
6
  "scripts": {