Skip to content

Commit ff1ea17

Browse files
authored
Merge pull request #10 from neftyblocks/bugfix/crypto-lib
Fix for undefined crypto lib
2 parents 2246f2a + 2255820 commit ff1ea17

File tree

4 files changed

+46
-39
lines changed

4 files changed

+46
-39
lines changed

README.md

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $ npm install -g @nefty/cli
4646
$ nefty COMMAND
4747
running command...
4848
$ nefty (--version)
49-
@nefty/cli/0.3.2 darwin-arm64 node-v18.20.5
49+
@nefty/cli/0.3.3 darwin-arm64 node-v18.20.4
5050
$ nefty --help [COMMAND]
5151
USAGE
5252
$ nefty COMMAND
@@ -279,7 +279,7 @@ DESCRIPTION
279279
Manages a collection's assets.
280280
```
281281

282-
_See code: [src/commands/assets/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/assets/index.ts)_
282+
_See code: [src/commands/assets/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/assets/index.ts)_
283283

284284
## `nefty assets mint INPUT`
285285

@@ -306,7 +306,7 @@ EXAMPLES
306306
$ nefty assets mint test.xls -c alpacaworlds
307307
```
308308

309-
_See code: [src/commands/assets/mint.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/assets/mint.ts)_
309+
_See code: [src/commands/assets/mint.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/assets/mint.ts)_
310310

311311
## `nefty config`
312312

@@ -320,7 +320,7 @@ DESCRIPTION
320320
Manages the configuration.
321321
```
322322

323-
_See code: [src/commands/config/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/config/index.ts)_
323+
_See code: [src/commands/config/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/config/index.ts)_
324324

325325
## `nefty config auth`
326326

@@ -339,7 +339,7 @@ EXAMPLES
339339
$ nefty config auth auth
340340
```
341341

342-
_See code: [src/commands/config/auth.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/config/auth.ts)_
342+
_See code: [src/commands/config/auth.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/config/auth.ts)_
343343

344344
## `nefty config get`
345345

@@ -356,7 +356,7 @@ EXAMPLES
356356
$ nefty config get
357357
```
358358

359-
_See code: [src/commands/config/get.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/config/get.ts)_
359+
_See code: [src/commands/config/get.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/config/get.ts)_
360360

361361
## `nefty config init`
362362

@@ -376,7 +376,7 @@ EXAMPLES
376376
$ nefty config init
377377
```
378378

379-
_See code: [src/commands/config/init.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/config/init.ts)_
379+
_See code: [src/commands/config/init.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/config/init.ts)_
380380

381381
## `nefty config set [PROPERTY] [VALUE]`
382382

@@ -399,7 +399,7 @@ EXAMPLES
399399
$ nefty config set explorerUrl https://waxblock.io
400400
```
401401

402-
_See code: [src/commands/config/set.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/config/set.ts)_
402+
_See code: [src/commands/config/set.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/config/set.ts)_
403403

404404
## `nefty generate`
405405

@@ -413,7 +413,7 @@ DESCRIPTION
413413
Generates excel files to use in other batch commands.
414414
```
415415

416-
_See code: [src/commands/generate/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/generate/index.ts)_
416+
_See code: [src/commands/generate/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/generate/index.ts)_
417417

418418
## `nefty generate create-liquidity-file OUTPUT`
419419

@@ -435,7 +435,7 @@ EXAMPLES
435435
$ nefty generate create-liquidity-file pools.xlsx
436436
```
437437

438-
_See code: [src/commands/generate/create-liquidity-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/generate/create-liquidity-file.ts)_
438+
_See code: [src/commands/generate/create-liquidity-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/generate/create-liquidity-file.ts)_
439439

440440
## `nefty generate mint-file OUTPUT`
441441

@@ -467,7 +467,7 @@ EXAMPLES
467467
$ nefty generate mint-file mints.xlsx -c alpacaworlds
468468
```
469469

470-
_See code: [src/commands/generate/mint-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/generate/mint-file.ts)_
470+
_See code: [src/commands/generate/mint-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/generate/mint-file.ts)_
471471

472472
## `nefty generate pfp-file OUTPUT`
473473

@@ -499,7 +499,7 @@ EXAMPLES
499499
$ nefty generate pfp-file pfp-layers.xlsx -l Body -l Face -l Hair -a
500500
```
501501

502-
_See code: [src/commands/generate/pfp-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/generate/pfp-file.ts)_
502+
_See code: [src/commands/generate/pfp-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/generate/pfp-file.ts)_
503503

504504
## `nefty generate template-file OUTPUT`
505505

@@ -531,7 +531,7 @@ EXAMPLES
531531
$ nefty generate template-file templates.xlsx -c alpacaworlds
532532
```
533533

534-
_See code: [src/commands/generate/template-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/generate/template-file.ts)_
534+
_See code: [src/commands/generate/template-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/generate/template-file.ts)_
535535

536536
## `nefty generate token-transfer-file OUTPUT`
537537

@@ -553,7 +553,7 @@ EXAMPLES
553553
$ nefty generate token-transfer-file transfers.xlsx
554554
```
555555

556-
_See code: [src/commands/generate/token-transfer-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/generate/token-transfer-file.ts)_
556+
_See code: [src/commands/generate/token-transfer-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/generate/token-transfer-file.ts)_
557557

558558
## `nefty generate upgrade-file OUTPUT`
559559

@@ -570,18 +570,12 @@ DESCRIPTION
570570
Generates the file to generate a upgrade collection with the specified layers.
571571
572572
EXAMPLES
573-
Generates the file to create upgrades with the layers Body, Face and Hair and saves it in the current directory in a
574-
file called upgrade.xlsx.
573+
Generates the file to manage upgrades and saves it in the current directory in a file called upgrades.xlsx.
575574
576-
$ nefty generate upgrade-file upgrade.xlsx -l Body -l Face -l Hair
577-
578-
Generates the file to manage upgrades with the layers Body, Face and Hair with advanced headers and saves it in the
579-
current directory in a file called upgrade-layers.xlsx.
580-
581-
$ nefty generate upgrade-file upgrade-layers.xlsx -l Body -l Face -l Hair -a
575+
$ nefty generate upgrade-file upgrade-layers.xlsx
582576
```
583577

584-
_See code: [src/commands/generate/upgrade-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/generate/upgrade-file.ts)_
578+
_See code: [src/commands/generate/upgrade-file.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/generate/upgrade-file.ts)_
585579

586580
## `nefty help [COMMAND]`
587581

@@ -615,7 +609,7 @@ DESCRIPTION
615609
Commands to manage a PFP collection.
616610
```
617611

618-
_See code: [src/commands/pfps/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/pfps/index.ts)_
612+
_See code: [src/commands/pfps/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/pfps/index.ts)_
619613

620614
## `nefty pfps build INPUT`
621615

@@ -646,7 +640,7 @@ EXAMPLES
646640
$ nefty pfps build ./pfps-folder -c alpacaworls -t 11324 -a alpacaworlds -n "My NFT" -r
647641
```
648642

649-
_See code: [src/commands/pfps/build.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/pfps/build.ts)_
643+
_See code: [src/commands/pfps/build.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/pfps/build.ts)_
650644

651645
## `nefty pfps cover INPUT`
652646

@@ -678,7 +672,7 @@ EXAMPLES
678672
ff28ca1c5749e6a6369dae7fe7d334b5b5ca40e43f1c345e7f0b4b22b36c0c6b
679673
```
680674

681-
_See code: [src/commands/pfps/cover.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/pfps/cover.ts)_
675+
_See code: [src/commands/pfps/cover.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/pfps/cover.ts)_
682676

683677
## `nefty pfps generate INPUT OUTPUT`
684678

@@ -708,7 +702,7 @@ EXAMPLES
708702
$ nefty pfps generate pfps-specs.xlsx pfps
709703
```
710704

711-
_See code: [src/commands/pfps/generate.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/pfps/generate.ts)_
705+
_See code: [src/commands/pfps/generate.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/pfps/generate.ts)_
712706

713707
## `nefty pfps mint INPUT`
714708

@@ -734,7 +728,7 @@ EXAMPLES
734728
$ nefty pfps mint ./pfps-folder
735729
```
736730

737-
_See code: [src/commands/pfps/mint.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/pfps/mint.ts)_
731+
_See code: [src/commands/pfps/mint.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/pfps/mint.ts)_
738732

739733
## `nefty pfps mosaic INPUT`
740734

@@ -767,7 +761,7 @@ EXAMPLES
767761
ff28ca1c5749e6a6369dae7fe7d334b5b5ca40e43f1c345e7f0b4b22b36c0c6b
768762
```
769763

770-
_See code: [src/commands/pfps/mosaic.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/pfps/mosaic.ts)_
764+
_See code: [src/commands/pfps/mosaic.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/pfps/mosaic.ts)_
771765

772766
## `nefty swap`
773767

@@ -781,7 +775,7 @@ DESCRIPTION
781775
Manages liquidity pools.
782776
```
783777

784-
_See code: [src/commands/swap/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/swap/index.ts)_
778+
_See code: [src/commands/swap/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/swap/index.ts)_
785779

786780
## `nefty swap create-pools INPUT`
787781

@@ -804,7 +798,7 @@ EXAMPLES
804798
$ nefty swap create-pools test.xls
805799
```
806800

807-
_See code: [src/commands/swap/create-pools.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/swap/create-pools.ts)_
801+
_See code: [src/commands/swap/create-pools.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/swap/create-pools.ts)_
808802

809803
## `nefty templates`
810804

@@ -818,7 +812,7 @@ DESCRIPTION
818812
Manages a collection's templates.
819813
```
820814

821-
_See code: [src/commands/templates/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/templates/index.ts)_
815+
_See code: [src/commands/templates/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/templates/index.ts)_
822816

823817
## `nefty templates create INPUT`
824818

@@ -842,7 +836,7 @@ EXAMPLES
842836
$ nefty templates create template.xls -c alpacaworlds
843837
```
844838

845-
_See code: [src/commands/templates/create.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/templates/create.ts)_
839+
_See code: [src/commands/templates/create.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/templates/create.ts)_
846840

847841
## `nefty templates export OUTPUT`
848842

@@ -874,7 +868,7 @@ EXAMPLES
874868
$ nefty templates export templates.xlsx -c alpacaworlds
875869
```
876870

877-
_See code: [src/commands/templates/export.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/templates/export.ts)_
871+
_See code: [src/commands/templates/export.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/templates/export.ts)_
878872

879873
## `nefty tokens`
880874

@@ -888,7 +882,7 @@ DESCRIPTION
888882
Manages an account's tokens
889883
```
890884

891-
_See code: [src/commands/tokens/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/tokens/index.ts)_
885+
_See code: [src/commands/tokens/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/tokens/index.ts)_
892886

893887
## `nefty tokens transfer INPUT`
894888

@@ -911,7 +905,7 @@ EXAMPLES
911905
$ nefty tokens transfer test.xls
912906
```
913907

914-
_See code: [src/commands/tokens/transfer.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/tokens/transfer.ts)_
908+
_See code: [src/commands/tokens/transfer.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/tokens/transfer.ts)_
915909

916910
## `nefty upgrade`
917911

@@ -925,7 +919,7 @@ DESCRIPTION
925919
Command to creates upgrades
926920
```
927921

928-
_See code: [src/commands/upgrade/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/upgrade/index.ts)_
922+
_See code: [src/commands/upgrade/index.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/upgrade/index.ts)_
929923

930924
## `nefty upgrade create INPUT`
931925

@@ -947,5 +941,5 @@ EXAMPLES
947941
$ nefty upgrade create upgrade-specs.xlsx upgrades
948942
```
949943

950-
_See code: [src/commands/upgrade/create.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.2/src/commands/upgrade/create.ts)_
944+
_See code: [src/commands/upgrade/create.ts](https://github.com/neftyblocks/neftyblocks-cli/blob/v0.3.3/src/commands/upgrade/create.ts)_
951945
<!-- commandsstop -->

bin/run.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env node
22

3+
import { webcrypto } from 'node:crypto';
4+
5+
if (!globalThis.crypto) {
6+
globalThis.crypto = webcrypto;
7+
}
8+
39
import {execute} from '@oclif/core'
410

511
await execute({dir: import.meta.url})

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nefty/cli",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "The NeftyBlocks cli will help you manage your collection with commands to create templates, mint assets, and more.",
55
"keywords": [
66
"oclif"
@@ -67,6 +67,7 @@
6767
},
6868
"dependencies": {
6969
"@inquirer/prompts": "^3.1.1",
70+
"@nefty/cli": "file:nefty-cli-0.3.3.tgz",
7071
"@oclif/core": "^3",
7172
"@oclif/plugin-help": "^6",
7273
"@oclif/plugin-not-found": "^3",

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
import { webcrypto } from 'node:crypto';
2+
3+
if (!globalThis.crypto) {
4+
globalThis.crypto = webcrypto as any;
5+
}
6+
17
export { run } from '@oclif/core';

0 commit comments

Comments
 (0)