Skip to content

Commit

Permalink
Merge pull request #289 from ardriveapp/dev
Browse files Browse the repository at this point in the history
PE-1682: Release ArDrive CLI v1.16.0
  • Loading branch information
fedellen authored Jun 8, 2022
2 parents 5528727 + 1302109 commit bd32822
Show file tree
Hide file tree
Showing 169 changed files with 2,628 additions and 720 deletions.
1,742 changes: 1,375 additions & 367 deletions .pnp.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/avsc-npm-5.7.3-da8a928334-302b5e30c3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ms-npm-2.0.0-9e1101a471-1a230340cc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
{
"name": "ardrive-cli",
"version": "1.15.0",
"version": "1.16.0",
"description": "The ArDrive Command Line Interface (CLI is a Node.js application for terminal-based ArDrive workflows. It also offers utility operations for securely interacting with Arweave wallets and inspecting various Arweave blockchain conditions.",
"main": "./lib/index.js",
"bin": {
"ardrive": "./lib/index.js"
},
"types": "./lib/index.d.ts",
"dependencies": {
"ardrive-core-js": "1.14.0",
"arweave": "1.10.18",
"ardrive-core-js": "1.15.1",
"arweave": "1.11.4",
"axios": "^0.21.1",
"bn.js": "^5.2.1",
"commander": "^8.2.0",
"lodash": "^4.17.21",
"prompts": "^2.4.0"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@types/bn.js": "^5",
"@types/chai": "^4.2.21",
"@types/jwk-to-pem": "^2.0.0",
"@types/lodash": "^4",
"@types/mocha": "^9.0.0",
"@types/node": "^14.14.32",
"@types/node-fetch": "^2.6.1",
"@types/prompts": "^2.0.9",
"@types/sinon": "^10.0.2",
"@types/source-map-support": "^0",
Expand Down
18 changes: 16 additions & 2 deletions src/commands/get_file_key.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { ArFSPrivateFileBuilder, deriveFileKey, DriveID, EID, EntityKey } from 'ardrive-core-js';
import {
ArFSPrivateFileBuilder,
deriveFileKey,
DriveID,
EID,
EntityKey,
GatewayAPI,
gatewayUrlForArweave
} from 'ardrive-core-js';
import { CLICommand, ParametersHelper } from '../CLICommand';
import { CLIAction } from '../CLICommand/action';
import {
Expand Down Expand Up @@ -41,7 +49,13 @@ new CLICommand({
const fileKey = await deriveFileKey(`${fileId}`, driveKey);
if (options.verify) {
const arweave = getArweaveFromURL(parameters.getGateway());
const file = await new ArFSPrivateFileBuilder(fileId, arweave, driveKey, undefined, fileKey).build();
const file = await new ArFSPrivateFileBuilder(
fileId,
new GatewayAPI({ gatewayUrl: gatewayUrlForArweave(arweave) }),
driveKey,
undefined,
fileKey
).build();
console.log(file.fileKey.toJSON());
} else {
console.log(fileKey.toJSON());
Expand Down
Loading

0 comments on commit bd32822

Please sign in to comment.