locadot 1.1.1 → 1.1.2

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.
Files changed (2) hide show
  1. package/dist/server.js +4 -2
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -14,8 +14,10 @@ const http_1 = __importDefault(require("http"));
14
14
  const fs_1 = __importDefault(require("fs"));
15
15
  const utils_1 = require("./utils");
16
16
  const path_1 = __importDefault(require("path"));
17
- exports.LOCK_FILE = path_1.default.join(require("os").homedir(), ".locadot.lock");
18
- exports.REGISTRY_FILE = path_1.default.join(require("os").homedir(), ".locadot-registry.json");
17
+ const appdata_path_1 = __importDefault(require("appdata-path"));
18
+ const CERT_PATH = (0, appdata_path_1.default)("locadot");
19
+ exports.LOCK_FILE = path_1.default.join(CERT_PATH, ".locadot.lock");
20
+ exports.REGISTRY_FILE = path_1.default.join(CERT_PATH, ".locadot-registry.json");
19
21
  async function startCentralProxy() {
20
22
  if (await isProxyAlreadyRunning()) {
21
23
  console.log("🔌 Proxy is already running");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "locadot",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
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",