locadot 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
File without changes
package/dist/server.js CHANGED
@@ -22,8 +22,8 @@ class ProxyHandler {
22
22
  locadot_file_1.default.updateLogs("🔄 Updated domain mappings.");
23
23
  domainMap = await locadot_file_1.default.getRegistry();
24
24
  });
25
- process.on("SIGINT", async () => await locadot_file_1.default.destroy(watcher));
26
- process.on("SIGTERM", async () => await locadot_file_1.default.destroy(watcher));
25
+ process.on("SIGINT", async () => await locadot_file_1.default.softDestroy(watcher));
26
+ process.on("SIGTERM", async () => await locadot_file_1.default.softDestroy(watcher));
27
27
  const requestHandler = (req, res) => {
28
28
  const host = req.headers.host?.split(":")[0];
29
29
  locadot_file_1.default.updateLogs(host || "", "log");
package/package.json CHANGED
@@ -1,16 +1,12 @@
1
1
  {
2
2
  "name": "locadot",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Secure your local development environment with HTTPS and custom domains like dev.localhost.",
5
5
  "homepage": "https://www.npmjs.com/package/locadot",
6
6
  "main": "dist/index.js",
7
7
  "bin": {
8
8
  "locadot": "./dist/index.js"
9
9
  },
10
- "scripts": {
11
- "dev": "tsx --watch src/index.ts",
12
- "build": "tsc"
13
- },
14
10
  "repository": {
15
11
  "type": "git",
16
12
  "url": "git+https://github.com/avinashid/locadot.git"
@@ -42,5 +38,9 @@
42
38
  "devDependencies": {
43
39
  "tsx": "^4.19.3",
44
40
  "typescript": "^5.8.3"
41
+ },
42
+ "scripts": {
43
+ "dev": "tsx --watch src/index.ts",
44
+ "build": "tsc"
45
45
  }
46
- }
46
+ }