@loybung/launcher 7.0.7 → 7.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -32,6 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
32
32
|
});
|
33
33
|
};
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
35
|
+
exports.Launcher = void 0;
|
35
36
|
const fs = __importStar(require("fs"));
|
36
37
|
const path = __importStar(require("path"));
|
37
38
|
class Launcher {
|
@@ -42,6 +43,8 @@ class Launcher {
|
|
42
43
|
this.expireTimeout = null;
|
43
44
|
}
|
44
45
|
setExpire(unixTimestamp) {
|
46
|
+
if (!unixTimestamp)
|
47
|
+
return;
|
45
48
|
this.expireTimestamp = unixTimestamp;
|
46
49
|
const now = Date.now();
|
47
50
|
const expireIn = unixTimestamp * 1000 - now;
|
@@ -81,4 +84,4 @@ class Launcher {
|
|
81
84
|
});
|
82
85
|
}
|
83
86
|
}
|
84
|
-
exports.
|
87
|
+
exports.Launcher = Launcher;
|