Skip to content

Commit 529bd9e

Browse files
authored
Merge pull request #290 from internxt/feat/update-dependencies
[_]: feat/update-dependencies
2 parents 8533078 + 91b8599 commit 529bd9e

23 files changed

Lines changed: 1886 additions & 2106 deletions

.env.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
DRIVE_URL=https://drive.internxt.com
2-
DRIVE_API_URL=https://drive.internxt.com/api
32
DRIVE_NEW_API_URL=https://api.internxt.com/drive
43
PAYMENTS_API_URL=https://api.internxt.com/payments
54
NETWORK_URL=https://api.internxt.com

.github/workflows/commands-unit-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ on:
33
push:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: read
8+
pull-requests: read
9+
610
jobs:
7-
811
commands-unit-tests:
912
strategy:
1013
matrix:
@@ -14,7 +17,7 @@ jobs:
1417
- uses: actions/checkout@v4
1518
- uses: actions/setup-node@v4
1619
with:
17-
node-version: 20.12.1
20+
node-version: '22.x'
1821
cache: yarn
1922
# Generate a .npmrc file with the NPM_TOKEN
2023
- run: echo "registry=https://registry.yarnpkg.com/" > .npmrc

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: '20.x'
16+
node-version: '22.x'
1717

1818
- run: |
1919
echo "@internxt:registry=https://npm.pkg.github.com/" > .npmrc
@@ -24,7 +24,6 @@ jobs:
2424
- name: Add .env
2525
run: |
2626
echo "DRIVE_URL=https://drive.internxt.com" >> .env
27-
echo "DRIVE_API_URL=https://drive.internxt.com/api" >> .env
2827
echo "DRIVE_NEW_API_URL=https://api.internxt.com/drive" >> .env
2928
echo "PAYMENTS_API_URL=https://api.internxt.com/payments" >> .env
3029
echo "NETWORK_URL=https://api.internxt.com" >> .env

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 20.12.1
22+
node-version: '22.x'
2323
cache: yarn
2424
# Generate a .npmrc file with the NPM_TOKEN
2525
- run: echo "registry=https://registry.yarnpkg.com/" > .npmrc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A CLI tool to interact with your Internxt encrypted files
1717

1818
You can install the Internxt CLI by using NPM:
1919

20-
Requires Node >= 20.12.1
20+
Requires Node >= 22.12.0
2121

2222
`npm i -g @internxt/cli`
2323

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
"/oclif.manifest.json"
3636
],
3737
"dependencies": {
38-
"@inquirer/prompts": "7.5.0",
39-
"@internxt/inxt-js": "2.1.0",
40-
"@internxt/lib": "1.2.1",
41-
"@internxt/sdk": "1.7.0",
42-
"@oclif/core": "4.3.0",
43-
"@types/validator": "13.15.0",
38+
"@inquirer/prompts": "7.5.3",
39+
"@internxt/inxt-js": "2.2.1",
40+
"@internxt/lib": "1.3.1",
41+
"@internxt/sdk": "1.10.0",
42+
"@oclif/core": "4.4.0",
43+
"@types/validator": "13.15.2",
4444
"async": "3.2.6",
45-
"axios": "1.9.0",
45+
"axios": "1.10.0",
4646
"bip39": "3.1.0",
4747
"body-parser": "2.2.0",
4848
"cli-progress": "3.12.0",
@@ -51,45 +51,45 @@
5151
"express": "5.1.0",
5252
"express-async-handler": "1.2.0",
5353
"express-basic-auth": "1.2.1",
54-
"fast-xml-parser": "5.2.2",
54+
"fast-xml-parser": "5.2.5",
5555
"mime-types": "3.0.1",
56-
"openpgp": "5.11.2",
57-
"pm2": "6.0.5",
56+
"openpgp": "5.11.3",
57+
"pm2": "6.0.8",
5858
"range-parser": "1.2.1",
5959
"reflect-metadata": "0.2.2",
6060
"selfsigned": "2.4.1",
61-
"sharp": "0.34.1",
61+
"sharp": "0.34.2",
6262
"tty-table": "4.2.3",
6363
"winston": "3.17.0"
6464
},
6565
"devDependencies": {
6666
"@internxt/eslint-config-internxt": "2.0.0",
6767
"@internxt/prettier-config": "internxt/prettier-config#v1.0.2",
68-
"@oclif/test": "4.1.12",
68+
"@oclif/test": "4.1.13",
6969
"@openpgp/web-stream-tools": "0.0.11-patch-1",
7070
"@types/async": "3.2.24",
7171
"@types/cli-progress": "3.11.6",
72-
"@types/express": "5.0.1",
73-
"@types/mime-types": "2.1.4",
74-
"@types/node": "22.15.16",
72+
"@types/express": "5.0.3",
73+
"@types/mime-types": "3.0.1",
74+
"@types/node": "22.15.33",
7575
"@types/range-parser": "1.2.7",
76-
"@vitest/coverage-istanbul": "3.1.3",
77-
"@vitest/spy": "3.1.3",
78-
"eslint": "9.26.0",
76+
"@vitest/coverage-istanbul": "3.2.4",
77+
"@vitest/spy": "3.2.4",
78+
"eslint": "9.29.0",
7979
"husky": "9.1.7",
80-
"lint-staged": "15.5.2",
81-
"nock": "14.0.4",
80+
"lint-staged": "16.1.2",
81+
"nock": "14.0.5",
8282
"nodemon": "3.1.10",
83-
"oclif": "4.17.46",
84-
"prettier": "3.5.3",
83+
"oclif": "4.20.1",
84+
"prettier": "3.6.1",
8585
"rimraf": "6.0.1",
8686
"ts-node": "10.9.2",
8787
"typescript": "5.8.3",
88-
"vitest": "3.1.3",
88+
"vitest": "3.2.4",
8989
"vitest-mock-express": "2.2.0"
9090
},
9191
"engines": {
92-
"node": ">=20.12.1"
92+
"node": ">=22.12.0"
9393
},
9494
"bin": {
9595
"internxt": "./bin/run.js"

src/commands/delete-permanently-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default class DeletePermanentlyFile extends Command {
3535
throw new Error('File not found');
3636
}
3737

38-
await TrashService.instance.deleteFile({ fileId: driveFile.id, folderId: driveFile.folderId });
38+
await TrashService.instance.deleteFile(driveFile.uuid);
3939
const message = 'File permanently deleted successfully';
4040
CLIUtils.success(this.log.bind(this), message);
4141
return { success: true, message };

src/commands/delete-permanently-folder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default class DeletePermanentlyFolder extends Command {
3535
throw new Error('Folder not found');
3636
}
3737

38-
await TrashService.instance.deleteFolder(driveFolder.id);
38+
await TrashService.instance.deleteFolder(driveFolder.uuid);
3939
const message = 'Folder permanently deleted successfully';
4040
CLIUtils.success(this.log.bind(this), message);
4141
return { success: true, message };

src/commands/upload-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default class UploadFile extends Command {
151151
thumbnailBuffer,
152152
fileType,
153153
user.bucket,
154-
createdDriveFile.id,
154+
createdDriveFile.uuid,
155155
networkFacade,
156156
);
157157
}

src/services/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class AuthService {
117117
token: oldCreds.token,
118118
newToken: oldCreds.newToken,
119119
});
120-
const usersClient = SdkManager.instance.getUsers(true);
120+
const usersClient = SdkManager.instance.getUsers();
121121
const newCreds = await usersClient.getUserData({ userUuid: oldCreds.user.uuid });
122122

123123
const loginCreds = {

0 commit comments

Comments
 (0)