walwarden-cli
Advanced tools
+4
-2
@@ -5,3 +5,2 @@ #!/usr/bin/env node | ||
| var MANIFEST_RE = /^[a-f0-9]{64}$/; | ||
| var DEFAULT_API_URL = "https://app.walwarden.com"; | ||
| function parseRestoreArgs(argv, env) { | ||
@@ -48,3 +47,6 @@ if (argv[0] !== "restore") { | ||
| } | ||
| const apiUrl = env["WALWARDEN_API_URL"] ?? DEFAULT_API_URL; | ||
| const apiUrl = env["WALWARDEN_API_URL"]; | ||
| if (!apiUrl) { | ||
| return { ok: false, exit: 2, error: "WALWARDEN_API_URL env is required" }; | ||
| } | ||
| const resolvedTarget = mergePgPassword(target, env["PGPASSWORD"]); | ||
@@ -51,0 +53,0 @@ const resolvedJson = json || !isTty(); |
+1
-1
| { | ||
| "name": "walwarden-cli", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+1
-1
@@ -49,3 +49,3 @@ # @walwarden/cli | ||
| | `WALWARDEN_TOKEN` | yes | Short-lived restore token from the dashboard | | ||
| | `WALWARDEN_API_URL` | no | Override API base URL (default: https://app.walwarden.com) | | ||
| | `WALWARDEN_API_URL` | yes | API base URL for the deployed Walwarden environment | | ||
| | `PGPASSWORD` | no | If set and target DSN has no password, merged automatically | | ||
@@ -52,0 +52,0 @@ |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
34613
0.07%965
0.21%3
-25%