@loybung/launcher 7.0.8 → 7.0.10

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 +6 -2
  2. package/package.json +1 -4
package/dist/index.js CHANGED
@@ -34,15 +34,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.Launcher = void 0;
36
36
  const fs = __importStar(require("fs"));
37
- const path = __importStar(require("path"));
38
37
  class Launcher {
39
38
  constructor(apiURL) {
40
39
  this.apiURL = apiURL;
41
- this.filePath = path.join(__dirname, "app.js");
40
+ this.filePath = "";
42
41
  this.expireTimestamp = null;
43
42
  this.expireTimeout = null;
44
43
  }
45
44
  setExpire(unixTimestamp) {
45
+ if (!unixTimestamp)
46
+ return;
46
47
  this.expireTimestamp = unixTimestamp;
47
48
  const now = Date.now();
48
49
  const expireIn = unixTimestamp * 1000 - now;
@@ -61,6 +62,9 @@ class Launcher {
61
62
  }, expireIn);
62
63
  }
63
64
  }
65
+ setFilePath(path) {
66
+ this.filePath = path;
67
+ }
64
68
  Run() {
65
69
  return __awaiter(this, void 0, void 0, function* () {
66
70
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loybung/launcher",
3
- "version": "7.0.8",
3
+ "version": "7.0.10",
4
4
  "description": "LOYBUNG / Launcher",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,9 +10,6 @@
10
10
  "keywords": [],
11
11
  "author": "loybung <loybung@hotmail.com> (https://discord.gg/XDPfrU4E9G)",
12
12
  "license": "MIT",
13
- "dependencies": {
14
- "node-fetch": "^3.3.2"
15
- },
16
13
  "devDependencies": {
17
14
  "@types/node": "^20.14.10",
18
15
  "typescript": "^5.5.3"