@ledgerhq/vault-cli 2.1.8 → 2.2.1

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @ledgerhq/vault-cli@2.1.8 build /home/runner/work/vault-ts/vault-ts/apps/cli
2
+ > @ledgerhq/vault-cli@2.2.1 build /home/runner/work/vault-ts/vault-ts/apps/cli
3
3
  > tsup && chmod +x bin/index.js
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,9 +10,9 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- ESM bin/index.mjs 148.06 KB
14
- ESM bin/index.mjs.map 280.24 KB
15
- ESM ⚡️ Build success in 535ms
16
- CJS bin/index.js 150.00 KB
17
- CJS bin/index.js.map 243.45 KB
18
- CJS ⚡️ Build success in 656ms
13
+ ESM bin/index.mjs 148.11 KB
14
+ ESM bin/index.mjs.map 280.31 KB
15
+ ESM ⚡️ Build success in 653ms
16
+ CJS bin/index.js 150.05 KB
17
+ CJS bin/index.js.map 243.50 KB
18
+ CJS ⚡️ Build success in 657ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @ledgerhq/vault-cli
2
2
 
3
+ ## 2.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 50b6df6: fix: proper recipe of currency-less policies
8
+ - Updated dependencies [50b6df6]
9
+ - @ledgerhq/vault-common@2.2.1
10
+
11
+ ## 2.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - b19da60: feat(policy): allow creating currency-less policies
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [b19da60]
20
+ - Updated dependencies [702ad52]
21
+ - @ledgerhq/vault-common@2.2.0
22
+
3
23
  ## 2.1.8
4
24
 
5
25
  ### Patch Changes
package/bin/index.js 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.8",
12
+ version: "2.2.1",
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",