@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.
- package/index.js +3 -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
|
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);
|