glop.dev 0.1.0 → 0.2.0

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/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -41,8 +41,8 @@ function saveConfig(config) {
41
41
  ensureConfigDir();
42
42
  fs.writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2));
43
43
  }
44
- function getServerUrl() {
45
- return process.env.GLOP_SERVER_URL || loadConfig()?.server_url || "https://www.glop.dev";
44
+ function getDefaultServerUrl() {
45
+ return process.env.GLOP_SERVER_URL || "https://www.glop.dev";
46
46
  }
47
47
 
48
48
  // src/commands/auth.ts
@@ -68,7 +68,7 @@ function findOpenPort() {
68
68
  });
69
69
  }
70
70
  var authCommand = new Command("auth").description("Authenticate with a glop server").option("-s, --server <url>", "Server URL").action(async (opts) => {
71
- const serverUrl = (opts.server || getServerUrl()).replace(/\/+$/, "");
71
+ const serverUrl = (opts.server || getDefaultServerUrl()).replace(/\/+$/, "");
72
72
  const port = await findOpenPort();
73
73
  const machineId = getMachineId();
74
74
  console.log("Opening browser for authentication...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glop.dev",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "glop": "./dist/index.js"