@ledgerhq/vault-cli 2.1.7 → 2.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.
package/bin/index.mjs CHANGED
@@ -9,7 +9,7 @@ var require_package = __commonJS({
9
9
  "package.json"(exports, module) {
10
10
  module.exports = {
11
11
  name: "@ledgerhq/vault-cli",
12
- version: "2.1.7",
12
+ version: "2.2.0",
13
13
  description: "A various utility command-line for Vault development",
14
14
  homepage: "https://github.com/LedgerHQ/vault-ts",
15
15
  license: "BSD-2-Clause",
@@ -3279,7 +3279,7 @@ var createEntity = async (opts) => {
3279
3279
  policies: [
3280
3280
  {
3281
3281
  name,
3282
- currency,
3282
+ ...currency ? { currency } : {},
3283
3283
  rules
3284
3284
  }
3285
3285
  ]
@@ -3630,9 +3630,8 @@ var create_default = {
3630
3630
  },
3631
3631
  {
3632
3632
  name: "currency",
3633
- description: "Policy currency",
3634
- type: String,
3635
- required: true
3633
+ description: "Policy currency (don't pass the option to create a currency-less policy)",
3634
+ type: String
3636
3635
  },
3637
3636
  {
3638
3637
  name: "rules",