@ardrive/turbo-sdk 1.14.0-alpha.1 → 1.14.0-alpha.3

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 (50) hide show
  1. package/README.md +15 -0
  2. package/bundles/web.bundle.min.js +9721 -15515
  3. package/lib/cjs/cli/cli.js +4 -13
  4. package/lib/cjs/cli/commands.js +25 -12
  5. package/lib/cjs/cli/options.js +7 -2
  6. package/lib/cjs/cli/types.js +16 -0
  7. package/lib/cjs/cli/utils.js +17 -5
  8. package/lib/cjs/common/signer.js +1 -1
  9. package/lib/cjs/common/token/arweave.js +10 -5
  10. package/lib/cjs/common/token/kyve.js +1 -1
  11. package/lib/cjs/node/factory.js +1 -1
  12. package/lib/cjs/node/signer.js +1 -1
  13. package/lib/cjs/utils/common.js +1 -1
  14. package/lib/cjs/version.js +1 -1
  15. package/lib/cjs/web/factory.js +1 -1
  16. package/lib/cjs/web/signer.js +1 -1
  17. package/lib/esm/cli/cli.js +7 -16
  18. package/lib/esm/cli/commands.js +25 -13
  19. package/lib/esm/cli/options.js +6 -1
  20. package/lib/esm/cli/types.js +16 -0
  21. package/lib/esm/cli/utils.js +17 -6
  22. package/lib/esm/common/signer.js +1 -1
  23. package/lib/esm/common/token/arweave.js +10 -5
  24. package/lib/esm/common/token/kyve.js +1 -1
  25. package/lib/esm/node/factory.js +1 -1
  26. package/lib/esm/node/signer.js +1 -1
  27. package/lib/esm/utils/common.js +1 -1
  28. package/lib/esm/version.js +1 -1
  29. package/lib/esm/web/factory.js +1 -1
  30. package/lib/esm/web/signer.js +1 -1
  31. package/lib/types/cli/commands.d.ts +3 -9
  32. package/lib/types/cli/commands.d.ts.map +1 -1
  33. package/lib/types/cli/options.d.ts +19 -2
  34. package/lib/types/cli/options.d.ts.map +1 -1
  35. package/lib/types/cli/types.d.ts +8 -3
  36. package/lib/types/cli/types.d.ts.map +1 -1
  37. package/lib/types/cli/utils.d.ts +3 -2
  38. package/lib/types/cli/utils.d.ts.map +1 -1
  39. package/lib/types/common/token/arweave.d.ts +1 -1
  40. package/lib/types/common/token/arweave.d.ts.map +1 -1
  41. package/lib/types/node/signer.d.ts +1 -1
  42. package/lib/types/node/signer.d.ts.map +1 -1
  43. package/lib/types/types.d.ts +1 -1
  44. package/lib/types/types.d.ts.map +1 -1
  45. package/lib/types/utils/common.d.ts.map +1 -1
  46. package/lib/types/version.d.ts +1 -1
  47. package/lib/types/version.d.ts.map +1 -1
  48. package/lib/types/web/signer.d.ts +1 -1
  49. package/lib/types/web/signer.d.ts.map +1 -1
  50. package/package.json +4 -3
package/README.md CHANGED
@@ -70,6 +70,7 @@ Welcome to the `@ardrive/turbo-sdk`! This SDK provides functionality for interac
70
70
  - [`top-up`](#top-up)
71
71
  - [`crypto-fund`](#crypto-fund)
72
72
  - [`upload-folder`](#upload-folder)
73
+ - [`upload-file`](#upload-file)
73
74
  - [Developers](#developers)
74
75
  - [Requirements](#requirements)
75
76
  - [Setup & Build](#setup--build)
@@ -756,6 +757,20 @@ e.g:
756
757
  turbo upload-folder --folder-path '../path/to/my/folder' --token solana --wallet-file ../path/to/sol/sec/key.json
757
758
  ```
758
759
 
760
+ ##### `upload-file`
761
+
762
+ Upload a file to the Turbo Upload Service.
763
+
764
+ Command Options:
765
+
766
+ - `-f, --file-path <filePath>` - Path to the file to upload
767
+
768
+ e.g:
769
+
770
+ ```shell
771
+ turbo upload-file --file-path '../path/to/my/file.txt' --token ethereum --wallet-file ../path/to/eth/private/key.txt
772
+ ```
773
+
759
774
  ## Developers
760
775
 
761
776
  ### Requirements