Skip to content

Commit c10d960

Browse files
authored
Merge branch 'main' into dependabot-npm_and_yarn-internxt-sdk-1.17.22
2 parents 743e238 + c5b4848 commit c10d960

24 files changed

Lines changed: 337 additions & 290 deletions

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/commands/upload-file.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { EncryptionVersion } from '@internxt/sdk/dist/drive/storage/types';
1111
import { ThumbnailService } from '../services/thumbnail.service';
1212
import { AuthService } from '../services/auth.service';
1313
import { UploadUtils } from '../utils/upload.utils';
14-
import { BufferStream } from '../utils/stream.utils';
1514

1615
export default class UploadFile extends Command {
1716
static readonly args = {};
@@ -81,14 +80,11 @@ export default class UploadFile extends Command {
8180
progressBar?.start(100, 0);
8281

8382
let fileId: string | undefined;
84-
let thumbnailStream: BufferStream | undefined;
8583
const fileSize = stats.size ?? 0;
8684

8785
if (fileSize > 0) {
8886
// Upload file to the Network
8987
const readStream = createReadStream(filePath);
90-
const preparedStreams = UploadUtils.prepareUploadStreams(readStream, fileType);
91-
thumbnailStream = preparedStreams.thumbnailStream;
9288

9389
const progressCallback = (progress: number) => {
9490
progressBar?.update(progress * 100 * 0.99);
@@ -97,7 +93,7 @@ export default class UploadFile extends Command {
9793
const abortable = new AbortController();
9894

9995
fileId = await networkFacade.uploadFile({
100-
from: preparedStreams.fileStream,
96+
from: readStream,
10197
size: fileSize,
10298
bucketId: bucket,
10399
progressCallback,
@@ -128,7 +124,7 @@ export default class UploadFile extends Command {
128124

129125
const thumbnailTimer = CLIUtils.timer();
130126
await ThumbnailService.instance.tryUploadThumbnail({
131-
bufferStream: thumbnailStream,
127+
input: filePath,
132128
fileType,
133129
bucket,
134130
fileUuid: createdDriveFile.uuid,

0 commit comments

Comments
 (0)