@bitsocial/bitsocial-cli 0.19.48 → 0.19.49

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/README.md CHANGED
@@ -344,7 +344,7 @@ EXAMPLES
344
344
  $ bitsocial challenge install ./my-local-challenge
345
345
  ```
346
346
 
347
- _See code: [src/cli/commands/challenge/install.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/challenge/install.ts)_
347
+ _See code: [src/cli/commands/challenge/install.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/challenge/install.ts)_
348
348
 
349
349
  ## `bitsocial challenge list`
350
350
 
@@ -367,7 +367,7 @@ EXAMPLES
367
367
  $ bitsocial challenge list -q
368
368
  ```
369
369
 
370
- _See code: [src/cli/commands/challenge/list.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/challenge/list.ts)_
370
+ _See code: [src/cli/commands/challenge/list.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/challenge/list.ts)_
371
371
 
372
372
  ## `bitsocial challenge remove NAME`
373
373
 
@@ -392,7 +392,7 @@ EXAMPLES
392
392
  $ bitsocial challenge remove @scope/my-challenge
393
393
  ```
394
394
 
395
- _See code: [src/cli/commands/challenge/remove.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/challenge/remove.ts)_
395
+ _See code: [src/cli/commands/challenge/remove.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/challenge/remove.ts)_
396
396
 
397
397
  ## `bitsocial community create`
398
398
 
@@ -422,7 +422,7 @@ EXAMPLES
422
422
  $ bitsocial community create --jsonFile ./create-options.json
423
423
  ```
424
424
 
425
- _See code: [src/cli/commands/community/create.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/community/create.ts)_
425
+ _See code: [src/cli/commands/community/create.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/community/create.ts)_
426
426
 
427
427
  ## `bitsocial community delete ADDRESSES`
428
428
 
@@ -447,7 +447,7 @@ EXAMPLES
447
447
  $ bitsocial community delete 12D3KooWG3XbzoVyAE6Y9vHZKF64Yuuu4TjdgQKedk14iYmTEPWu
448
448
  ```
449
449
 
450
- _See code: [src/cli/commands/community/delete.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/community/delete.ts)_
450
+ _See code: [src/cli/commands/community/delete.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/community/delete.ts)_
451
451
 
452
452
  ## `bitsocial community edit ADDRESS`
453
453
 
@@ -517,7 +517,7 @@ EXAMPLES
517
517
  $ bitsocial community edit bitsocial.bso --jsonFile ./edit-options.json
518
518
  ```
519
519
 
520
- _See code: [src/cli/commands/community/edit.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/community/edit.ts)_
520
+ _See code: [src/cli/commands/community/edit.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/community/edit.ts)_
521
521
 
522
522
  ## `bitsocial community get [ADDRESS]`
523
523
 
@@ -548,7 +548,7 @@ EXAMPLES
548
548
  $ bitsocial community get --publicKey 12D3KooWG3XbzoVyAE6Y9vHZKF64Yuuu4TjdgQKedk14iYmTEPWu
549
549
  ```
550
550
 
551
- _See code: [src/cli/commands/community/get.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/community/get.ts)_
551
+ _See code: [src/cli/commands/community/get.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/community/get.ts)_
552
552
 
553
553
  ## `bitsocial community list`
554
554
 
@@ -571,7 +571,7 @@ EXAMPLES
571
571
  $ bitsocial community list
572
572
  ```
573
573
 
574
- _See code: [src/cli/commands/community/list.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/community/list.ts)_
574
+ _See code: [src/cli/commands/community/list.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/community/list.ts)_
575
575
 
576
576
  ## `bitsocial community start ADDRESSES`
577
577
 
@@ -605,7 +605,7 @@ EXAMPLES
605
605
  $ bitsocial community start $(bitsocial community list -q) --concurrency 1
606
606
  ```
607
607
 
608
- _See code: [src/cli/commands/community/start.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/community/start.ts)_
608
+ _See code: [src/cli/commands/community/start.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/community/start.ts)_
609
609
 
610
610
  ## `bitsocial community stop ADDRESSES`
611
611
 
@@ -630,7 +630,7 @@ EXAMPLES
630
630
  $ bitsocial community stop Qmb99crTbSUfKXamXwZBe829Vf6w5w5TktPkb6WstC9RFW
631
631
  ```
632
632
 
633
- _See code: [src/cli/commands/community/stop.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/community/stop.ts)_
633
+ _See code: [src/cli/commands/community/stop.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/community/stop.ts)_
634
634
 
635
635
  ## `bitsocial daemon`
636
636
 
@@ -671,7 +671,7 @@ EXAMPLES
671
671
  $ bitsocial daemon --chainProviderUrls https://mainnet.infura.io/v3/YOUR_KEY
672
672
  ```
673
673
 
674
- _See code: [src/cli/commands/daemon.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/daemon.ts)_
674
+ _See code: [src/cli/commands/daemon.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/daemon.ts)_
675
675
 
676
676
  ## `bitsocial help [COMMAND]`
677
677
 
@@ -737,7 +737,7 @@ EXAMPLES
737
737
  $ bitsocial logs --stdout -f
738
738
  ```
739
739
 
740
- _See code: [src/cli/commands/logs.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/logs.ts)_
740
+ _See code: [src/cli/commands/logs.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/logs.ts)_
741
741
 
742
742
  ## `bitsocial update check`
743
743
 
@@ -754,7 +754,7 @@ EXAMPLES
754
754
  $ bitsocial update check
755
755
  ```
756
756
 
757
- _See code: [src/cli/commands/update/check.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/update/check.ts)_
757
+ _See code: [src/cli/commands/update/check.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/update/check.ts)_
758
758
 
759
759
  ## `bitsocial update install [VERSION]`
760
760
 
@@ -786,7 +786,7 @@ EXAMPLES
786
786
  $ bitsocial update install --no-restart-daemons
787
787
  ```
788
788
 
789
- _See code: [src/cli/commands/update/install.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/update/install.ts)_
789
+ _See code: [src/cli/commands/update/install.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/update/install.ts)_
790
790
 
791
791
  ## `bitsocial update versions`
792
792
 
@@ -808,7 +808,7 @@ EXAMPLES
808
808
  $ bitsocial update versions --limit 5
809
809
  ```
810
810
 
811
- _See code: [src/cli/commands/update/versions.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.48/src/cli/commands/update/versions.ts)_
811
+ _See code: [src/cli/commands/update/versions.ts](https://github.com/bitsocialnet/bitsocial-cli/blob/v0.19.49/src/cli/commands/update/versions.ts)_
812
812
  <!-- commandsstop -->
813
813
 
814
814
  ## Contribution
@@ -170,13 +170,17 @@ export async function runNpmPack(packageSpec, destDir) {
170
170
  const npmCliPath = await getNpmCliPath();
171
171
  return new Promise((resolve, reject) => {
172
172
  const proc = spawn(process.execPath, [npmCliPath, "pack", packageSpec, "--pack-destination", destDir], {
173
- stdio: ["ignore", "pipe", "inherit"],
173
+ stdio: ["ignore", "pipe", "pipe"],
174
174
  env: getNpmEnv()
175
175
  });
176
176
  let stdout = "";
177
+ let stderr = "";
177
178
  proc.stdout.on("data", (data) => {
178
179
  stdout += data.toString();
179
180
  });
181
+ proc.stderr.on("data", (data) => {
182
+ stderr += data.toString();
183
+ });
180
184
  proc.on("error", (err) => {
181
185
  reject(new Error(`Failed to run npm pack: ${err.message}`));
182
186
  });
@@ -191,7 +195,7 @@ export async function runNpmPack(packageSpec, destDir) {
191
195
  resolve(path.join(destDir, filename));
192
196
  }
193
197
  else {
194
- reject(new Error(`npm pack exited with code ${code}`));
198
+ reject(new Error(`npm pack exited with code ${code}: ${stderr.trim()}`));
195
199
  }
196
200
  });
197
201
  });
@@ -51,8 +51,10 @@ export async function installGlobal(version) {
51
51
  stdio: ["ignore", "pipe", "pipe"],
52
52
  env: getNpmEnv()
53
53
  });
54
- proc.stdout?.pipe(process.stdout);
55
- proc.stderr?.pipe(process.stderr);
54
+ let stderr = "";
55
+ proc.stderr?.on("data", (data) => {
56
+ stderr += data.toString();
57
+ });
56
58
  proc.on("error", (err) => {
57
59
  reject(new Error(`Failed to run npm install: ${err.message}`));
58
60
  });
@@ -60,7 +62,7 @@ export async function installGlobal(version) {
60
62
  if (code === 0)
61
63
  resolve();
62
64
  else
63
- reject(new Error(`npm install -g exited with code ${code}`));
65
+ reject(new Error(`npm install -g exited with code ${code}: ${stderr.trim()}`));
64
66
  });
65
67
  });
66
68
  }
@@ -770,5 +770,5 @@
770
770
  ]
771
771
  }
772
772
  },
773
- "version": "0.19.48"
773
+ "version": "0.19.49"
774
774
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitsocial/bitsocial-cli",
3
- "version": "0.19.48",
3
+ "version": "0.19.49",
4
4
  "description": "Command line interface to Bitsocial API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "homepage": "https://github.com/bitsocialnet/bitsocial-cli",