@ledgerhq/vault-cli 2.3.2 → 2.4.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @ledgerhq/vault-cli@2.3.2 build /home/runner/work/vault-ts/vault-ts/apps/cli
2
+ > @ledgerhq/vault-cli@2.4.0 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.30 KB
14
- ESM bin/index.mjs.map 280.66 KB
15
- ESM ⚡️ Build success in 684ms
16
- CJS bin/index.js 150.24 KB
17
- CJS bin/index.js.map 243.78 KB
18
- CJS ⚡️ Build success in 689ms
13
+ ESM bin/index.mjs 148.47 KB
14
+ ESM bin/index.mjs.map 280.99 KB
15
+ ESM ⚡️ Build success in 653ms
16
+ CJS bin/index.js 150.41 KB
17
+ CJS bin/index.js.map 244.06 KB
18
+ CJS ⚡️ Build success in 657ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @ledgerhq/vault-cli
2
2
 
3
+ ## 2.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a56f1db: feat: ability to specify CID on compartment init
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [a56f1db]
12
+ - @ledgerhq/vault-common@2.4.0
13
+
3
14
  ## 2.3.2
4
15
 
5
16
  ### 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.3.2",
12
+ version: "2.4.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",
@@ -4274,6 +4274,11 @@ var initCompartment_default = {
4274
4274
  description: "HSM certificate password {blue $VAULT_HSM_CLIENT_CERT_PWD}",
4275
4275
  defaultValue: process.env.VAULT_HSM_CLIENT_CERT_PWD,
4276
4276
  required: true
4277
+ },
4278
+ {
4279
+ name: "cid",
4280
+ type: Number,
4281
+ description: "Optional compartment ID to use"
4277
4282
  }
4278
4283
  ],
4279
4284
  run: async (options2) => {
@@ -4288,7 +4293,10 @@ var initCompartment_default = {
4288
4293
  hsmCertKey: cert.key,
4289
4294
  hsmEndpoint: options2.hsm
4290
4295
  });
4291
- await bridge2.initCompartment({ logger: logger_default });
4296
+ await bridge2.initCompartment({
4297
+ logger: logger_default,
4298
+ ..."cid" in options2 ? { cid: options2.cid } : {}
4299
+ });
4292
4300
  }
4293
4301
  };
4294
4302