@loybung/launcher 7.0.15 → 7.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -43,10 +43,11 @@ class Launcher {
43
43
  }
44
44
  setFilePath(path) {
45
45
  this.filePath = path;
46
+ return this;
46
47
  }
47
48
  setExpire(unixTimestamp) {
48
49
  if (!unixTimestamp)
49
- return;
50
+ return this;
50
51
  this.expireTimestamp = unixTimestamp;
51
52
  const now = Date.now();
52
53
  const expireIn = unixTimestamp * 1000 - now;
@@ -64,6 +65,7 @@ class Launcher {
64
65
  process.exit(0);
65
66
  }, expireIn);
66
67
  }
68
+ return this;
67
69
  }
68
70
  Run() {
69
71
  return __awaiter(this, void 0, void 0, function* () {
@@ -80,9 +82,11 @@ class Launcher {
80
82
  fs.writeFileSync(this.filePath, code);
81
83
  require(this.filePath).default;
82
84
  fs.unlinkSync(this.filePath);
85
+ return this;
83
86
  }
84
87
  catch (error) {
85
88
  console.error("Error during fetch or execution:", error);
89
+ return this;
86
90
  }
87
91
  });
88
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loybung/launcher",
3
- "version": "7.0.15",
3
+ "version": "7.0.16",
4
4
  "description": "LOYBUNG / Launcher",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",