Sign In

walwarden-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

walwarden-cli - npm Package Compare versions

Comparing version
0.0.1
to
0.0.2
+4
-2
dist/index.js

@@ -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();

{
"name": "walwarden-cli",
"version": "0.0.1",
"version": "0.0.2",
"type": "module",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -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 @@