@cl3tus/planum 1.0.1 → 1.0.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.
- package/dist/index.js +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -332,8 +332,8 @@ import { hostname } from "os";
|
|
|
332
332
|
import * as p3 from "@clack/prompts";
|
|
333
333
|
import { defineCommand as defineCommand2 } from "citty";
|
|
334
334
|
import open from "open";
|
|
335
|
-
var DEFAULT_API_URL = "
|
|
336
|
-
var DEFAULT_WEB_URL = "
|
|
335
|
+
var DEFAULT_API_URL = "https://api.planum.cl3tusdev.com";
|
|
336
|
+
var DEFAULT_WEB_URL = "https://planum.cl3tusdev.com";
|
|
337
337
|
var POLL_INTERVAL_MS = 2e3;
|
|
338
338
|
var TIMEOUT_MS = 5 * 60 * 1e3;
|
|
339
339
|
var sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
@@ -708,7 +708,7 @@ var pushCommand = defineCommand5({
|
|
|
708
708
|
// package.json
|
|
709
709
|
var package_default = {
|
|
710
710
|
name: "@cl3tus/planum",
|
|
711
|
-
version: "1.0.
|
|
711
|
+
version: "1.0.2",
|
|
712
712
|
description: "Sync .env files with your Planum vault",
|
|
713
713
|
type: "module",
|
|
714
714
|
license: "MIT",
|
|
@@ -773,6 +773,12 @@ var package_default = {
|
|
|
773
773
|
if (process.env.INIT_CWD && process.env.INIT_CWD !== process.cwd()) {
|
|
774
774
|
process.chdir(process.env.INIT_CWD);
|
|
775
775
|
}
|
|
776
|
+
var VERSION_FLAGS = /* @__PURE__ */ new Set(["-v", "--v", "--version", "version"]);
|
|
777
|
+
var firstArg = process.argv[2];
|
|
778
|
+
if (process.argv.length === 3 && firstArg && VERSION_FLAGS.has(firstArg)) {
|
|
779
|
+
console.log(package_default.version);
|
|
780
|
+
process.exit(0);
|
|
781
|
+
}
|
|
776
782
|
var main = defineCommand6({
|
|
777
783
|
meta: {
|
|
778
784
|
name: "planum",
|