Skip to content

Commit 202c6bb

Browse files
authored
Merge pull request #627 from internxt/fix/download-using-bucket-from-file
[_]: fix/download-using-bucket-from-file
2 parents a16817b + da57c50 commit 202c6bb

6 files changed

Lines changed: 39 additions & 39 deletions

File tree

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $ npm install -g @internxt/cli
5252
$ internxt COMMAND
5353
running command...
5454
$ internxt (--version)
55-
@internxt/cli/1.6.7 win32-x64 node-v24.15.0
55+
@internxt/cli/1.6.8 win32-x64 node-v24.15.0
5656
$ internxt --help [COMMAND]
5757
USAGE
5858
$ internxt COMMAND
@@ -145,7 +145,7 @@ EXAMPLES
145145
$ internxt add-cert
146146
```
147147

148-
_See code: [src/commands/add-cert.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/add-cert.ts)_
148+
_See code: [src/commands/add-cert.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/add-cert.ts)_
149149

150150
## `internxt add cert`
151151

@@ -232,7 +232,7 @@ EXAMPLES
232232
$ internxt config
233233
```
234234

235-
_See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/config.ts)_
235+
_See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/config.ts)_
236236

237237
## `internxt create-folder`
238238

@@ -266,7 +266,7 @@ EXAMPLES
266266
$ internxt create-folder
267267
```
268268

269-
_See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/create-folder.ts)_
269+
_See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/create-folder.ts)_
270270

271271
## `internxt create folder`
272272

@@ -330,7 +330,7 @@ EXAMPLES
330330
$ internxt delete-permanently-file
331331
```
332332

333-
_See code: [src/commands/delete-permanently-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/delete-permanently-file.ts)_
333+
_See code: [src/commands/delete-permanently-file.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/delete-permanently-file.ts)_
334334

335335
## `internxt delete-permanently-folder`
336336

@@ -362,7 +362,7 @@ EXAMPLES
362362
$ internxt delete-permanently-folder
363363
```
364364

365-
_See code: [src/commands/delete-permanently-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/delete-permanently-folder.ts)_
365+
_See code: [src/commands/delete-permanently-folder.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/delete-permanently-folder.ts)_
366366

367367
## `internxt delete permanently file`
368368

@@ -457,7 +457,7 @@ EXAMPLES
457457
$ internxt download-file
458458
```
459459

460-
_See code: [src/commands/download-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/download-file.ts)_
460+
_See code: [src/commands/download-file.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/download-file.ts)_
461461

462462
## `internxt download file`
463463

@@ -520,7 +520,7 @@ EXAMPLES
520520
$ internxt list
521521
```
522522

523-
_See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/list.ts)_
523+
_See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/list.ts)_
524524

525525
## `internxt login`
526526

@@ -554,7 +554,7 @@ EXAMPLES
554554
$ internxt login
555555
```
556556

557-
_See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/login.ts)_
557+
_See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/login.ts)_
558558

559559
## `internxt login-legacy`
560560

@@ -588,7 +588,7 @@ EXAMPLES
588588
$ internxt login-legacy
589589
```
590590

591-
_See code: [src/commands/login-legacy.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/login-legacy.ts)_
591+
_See code: [src/commands/login-legacy.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/login-legacy.ts)_
592592

593593
## `internxt logout`
594594

@@ -614,7 +614,7 @@ EXAMPLES
614614
$ internxt logout
615615
```
616616

617-
_See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/logout.ts)_
617+
_See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/logout.ts)_
618618

619619
## `internxt logs`
620620

@@ -640,7 +640,7 @@ EXAMPLES
640640
$ internxt logs
641641
```
642642

643-
_See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/logs.ts)_
643+
_See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/logs.ts)_
644644

645645
## `internxt move-file`
646646

@@ -674,7 +674,7 @@ EXAMPLES
674674
$ internxt move-file
675675
```
676676

677-
_See code: [src/commands/move-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/move-file.ts)_
677+
_See code: [src/commands/move-file.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/move-file.ts)_
678678

679679
## `internxt move-folder`
680680

@@ -708,7 +708,7 @@ EXAMPLES
708708
$ internxt move-folder
709709
```
710710

711-
_See code: [src/commands/move-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/move-folder.ts)_
711+
_See code: [src/commands/move-folder.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/move-folder.ts)_
712712

713713
## `internxt move file`
714714

@@ -805,7 +805,7 @@ EXAMPLES
805805
$ internxt rename-file
806806
```
807807

808-
_See code: [src/commands/rename-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/rename-file.ts)_
808+
_See code: [src/commands/rename-file.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/rename-file.ts)_
809809

810810
## `internxt rename-folder`
811811

@@ -838,7 +838,7 @@ EXAMPLES
838838
$ internxt rename-folder
839839
```
840840

841-
_See code: [src/commands/rename-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/rename-folder.ts)_
841+
_See code: [src/commands/rename-folder.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/rename-folder.ts)_
842842

843843
## `internxt rename file`
844844

@@ -932,7 +932,7 @@ EXAMPLES
932932
$ internxt trash-clear
933933
```
934934

935-
_See code: [src/commands/trash-clear.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-clear.ts)_
935+
_See code: [src/commands/trash-clear.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/trash-clear.ts)_
936936

937937
## `internxt trash-file`
938938

@@ -964,7 +964,7 @@ EXAMPLES
964964
$ internxt trash-file
965965
```
966966

967-
_See code: [src/commands/trash-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-file.ts)_
967+
_See code: [src/commands/trash-file.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/trash-file.ts)_
968968

969969
## `internxt trash-folder`
970970

@@ -996,7 +996,7 @@ EXAMPLES
996996
$ internxt trash-folder
997997
```
998998

999-
_See code: [src/commands/trash-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-folder.ts)_
999+
_See code: [src/commands/trash-folder.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/trash-folder.ts)_
10001000

10011001
## `internxt trash-list`
10021002

@@ -1028,7 +1028,7 @@ EXAMPLES
10281028
$ internxt trash-list
10291029
```
10301030

1031-
_See code: [src/commands/trash-list.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-list.ts)_
1031+
_See code: [src/commands/trash-list.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/trash-list.ts)_
10321032

10331033
## `internxt trash-restore-file`
10341034

@@ -1061,7 +1061,7 @@ EXAMPLES
10611061
$ internxt trash-restore-file
10621062
```
10631063

1064-
_See code: [src/commands/trash-restore-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-restore-file.ts)_
1064+
_See code: [src/commands/trash-restore-file.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/trash-restore-file.ts)_
10651065

10661066
## `internxt trash-restore-folder`
10671067

@@ -1094,7 +1094,7 @@ EXAMPLES
10941094
$ internxt trash-restore-folder
10951095
```
10961096

1097-
_See code: [src/commands/trash-restore-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/trash-restore-folder.ts)_
1097+
_See code: [src/commands/trash-restore-folder.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/trash-restore-folder.ts)_
10981098

10991099
## `internxt trash clear`
11001100

@@ -1309,7 +1309,7 @@ EXAMPLES
13091309
$ internxt upload-file
13101310
```
13111311

1312-
_See code: [src/commands/upload-file.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/upload-file.ts)_
1312+
_See code: [src/commands/upload-file.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/upload-file.ts)_
13131313

13141314
## `internxt upload-folder`
13151315

@@ -1342,7 +1342,7 @@ EXAMPLES
13421342
$ internxt upload-folder
13431343
```
13441344

1345-
_See code: [src/commands/upload-folder.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/upload-folder.ts)_
1345+
_See code: [src/commands/upload-folder.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/upload-folder.ts)_
13461346

13471347
## `internxt upload file`
13481348

@@ -1436,7 +1436,7 @@ EXAMPLES
14361436
$ internxt webdav status
14371437
```
14381438

1439-
_See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/webdav.ts)_
1439+
_See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/webdav.ts)_
14401440

14411441
## `internxt webdav-config`
14421442

@@ -1475,7 +1475,7 @@ EXAMPLES
14751475
$ internxt webdav-config
14761476
```
14771477

1478-
_See code: [src/commands/webdav-config.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/webdav-config.ts)_
1478+
_See code: [src/commands/webdav-config.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/webdav-config.ts)_
14791479

14801480
## `internxt whoami`
14811481

@@ -1501,7 +1501,7 @@ EXAMPLES
15011501
$ internxt whoami
15021502
```
15031503

1504-
_See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/whoami.ts)_
1504+
_See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/whoami.ts)_
15051505

15061506
## `internxt workspaces-list`
15071507

@@ -1533,7 +1533,7 @@ EXAMPLES
15331533
$ internxt workspaces-list
15341534
```
15351535

1536-
_See code: [src/commands/workspaces-list.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/workspaces-list.ts)_
1536+
_See code: [src/commands/workspaces-list.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/workspaces-list.ts)_
15371537

15381538
## `internxt workspaces-unset`
15391539

@@ -1563,7 +1563,7 @@ EXAMPLES
15631563
$ internxt workspaces-unset
15641564
```
15651565

1566-
_See code: [src/commands/workspaces-unset.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/workspaces-unset.ts)_
1566+
_See code: [src/commands/workspaces-unset.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/workspaces-unset.ts)_
15671567

15681568
## `internxt workspaces-use`
15691569

@@ -1599,7 +1599,7 @@ EXAMPLES
15991599
$ internxt workspaces-use
16001600
```
16011601

1602-
_See code: [src/commands/workspaces-use.ts](https://github.com/internxt/cli/blob/v1.6.7/src/commands/workspaces-use.ts)_
1602+
_See code: [src/commands/workspaces-use.ts](https://github.com/internxt/cli/blob/v1.6.8/src/commands/workspaces-use.ts)_
16031603

16041604
## `internxt workspaces list`
16051605

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"author": "Internxt <hello@internxt.com>",
3-
"version": "1.6.7",
3+
"version": "1.6.8",
44
"description": "Internxt CLI to manage your encrypted storage",
55
"scripts": {
66
"build": "npm run clean && tsc",

src/commands/download-file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ export default class DownloadFile extends Command {
7777
const { user } = await AuthService.instance.getAuthDetails();
7878

7979
CLIUtils.doing('Preparing Network', flags['json']);
80-
const { networkFacade, bucket, mnemonic } = await CLIUtils.prepareNetwork(user);
80+
const { networkFacade, mnemonic } = await CLIUtils.prepareNetwork(user);
8181
CLIUtils.done(flags['json']);
8282
// Download the file
8383
const fileWriteStream = createWriteStream(downloadPath);
8484

8585
const [executeDownload, abortable] = await networkFacade.downloadToStream(
86-
bucket,
86+
driveFile.bucket,
8787
mnemonic,
8888
driveFile.fileId,
8989
driveFile.size,

src/webdav/handlers/GET.handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ export class GETRequestHandler implements WebDavMethodHandler {
5757
throw new NotValidFileIdError();
5858
}
5959

60-
const { networkFacade, bucket, mnemonic } = await CLIUtils.prepareNetwork(user);
60+
const { networkFacade, mnemonic } = await CLIUtils.prepareNetwork(user);
6161

6262
const [executeDownload] = await networkFacade.downloadToStream(
63-
bucket,
63+
driveFile.bucket,
6464
mnemonic,
6565
driveFile.fileId,
6666
contentLength,

test/webdav/handlers/GET.handler.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('GET request handler', () => {
9696
expect(getFileMetadataStub).toHaveBeenCalledOnce();
9797
expect(authDetailsStub).toHaveBeenCalledOnce();
9898
expect(downloadStreamStub).toHaveBeenCalledWith(
99-
networkOptions.bucket,
99+
mockFile.bucket,
100100
mockAuthDetails.user.mnemonic,
101101
mockFile.fileId,
102102
mockFile.size,
@@ -151,7 +151,7 @@ describe('GET request handler', () => {
151151
expect(getFileMetadataStub).toHaveBeenCalledOnce();
152152
expect(authDetailsStub).toHaveBeenCalledOnce();
153153
expect(downloadStreamStub).toHaveBeenCalledWith(
154-
networkOptions.bucket,
154+
mockFile.bucket,
155155
mockAuthDetails.user.mnemonic,
156156
mockFile.fileId,
157157
mockSize - rangeStart,

0 commit comments

Comments
 (0)