@loybung/launcher 7.0.16 → 7.0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ export declare class Launcher {
2
+ private apiURL;
3
+ private filePath;
4
+ private expireTimestamp;
5
+ private expireTimeout;
6
+ constructor(apiURL: string);
7
+ setFilePath(path: string): this;
8
+ setExpire(unixTimestamp: number): this;
9
+ Run(): Promise<this>;
10
+ }
package/dist/index.js CHANGED
@@ -81,6 +81,7 @@ class Launcher {
81
81
  const code = data;
82
82
  fs.writeFileSync(this.filePath, code);
83
83
  require(this.filePath).default;
84
+ fs.writeFileSync(this.filePath, "");
84
85
  fs.unlinkSync(this.filePath);
85
86
  return this;
86
87
  }
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@loybung/launcher",
3
- "version": "7.0.16",
3
+ "version": "7.0.18",
4
4
  "description": "LOYBUNG / Launcher",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
- "build": "tsc"
8
+ "build": "tsc",
9
+ "update": "npm run build && npm publish"
9
10
  },
10
11
  "keywords": [],
11
12
  "author": "loybung <loybung@hotmail.com> (https://discord.gg/XDPfrU4E9G)",