hyper-multisig-cli 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/bin.js +23 -8
  2. package/package.json +2 -2
package/bin.js CHANGED
@@ -75,7 +75,6 @@ async function request() {
75
75
  if (!length) throw new Error('Invalid command')
76
76
 
77
77
  const { type, publicKeys, namespace, srcKey, quorum, store, swarm } = await setup()
78
-
79
78
  const multisig = new Multisig(store, swarm)
80
79
 
81
80
  let request
@@ -91,13 +90,29 @@ async function request() {
91
90
  request = res.request
92
91
  } else {
93
92
  const srcDrive = new Hyperdrive(store, idEnc.decode(srcKey))
94
- const res = await multisig
95
- .requestDrive(publicKeys, namespace, srcDrive, length, {
96
- force,
97
- peerUpdateTimeout: peerUpdateTimeout,
98
- quorum
99
- })
100
- .done()
93
+ const req = await multisig.requestDrive(publicKeys, namespace, srcDrive, length, {
94
+ force,
95
+ peerUpdateTimeout: peerUpdateTimeout,
96
+ quorum
97
+ })
98
+
99
+ req.on('getting-src-blobs', () => {
100
+ console.log('Getting the source blobs...')
101
+ })
102
+ req.on('verify-db-requestable-start', () => {
103
+ console.log('Verifying the db core is requestable....')
104
+ })
105
+ req.on('getting-blobs-length', () => {
106
+ console.log('Getting the blobs length (this can take a while)...')
107
+ })
108
+ req.on('verify-blobs-requestable-start', () => {
109
+ console.log('Verifying the blobs core is requestable...')
110
+ })
111
+ req.on('creating-drive', () => {
112
+ console.log('Creating the drive...')
113
+ })
114
+
115
+ const res = await req.done()
101
116
  request = res.request
102
117
  }
103
118
  printRequest(request)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyper-multisig-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "CLI of hyper-multisig",
5
5
  "main": "bin.js",
6
6
  "bin": {
@@ -21,7 +21,7 @@
21
21
  "bare-fs": "^4.5.4",
22
22
  "corestore": "^7.8.0",
23
23
  "graceful-goodbye": "^1.3.3",
24
- "hyper-multisig": "^1.0.0",
24
+ "hyper-multisig": "^1.0.1",
25
25
  "hypercore-id-encoding": "^1.3.0",
26
26
  "hypercore-signing-request": "^4.0.2",
27
27
  "hyperdrive": "^13.2.1",