⬆️ upgrade babel and typescript packages caused by jest upgrade (#73)

This commit is contained in:
Anton Shepilov
2023-06-09 16:02:26 +02:00
committed by GitHub
parent dfd25a234a
commit adda7caf00
7 changed files with 3944 additions and 4623 deletions
+1237 -1409
View File
File diff suppressed because it is too large Load Diff
+14 -13
View File
@@ -57,11 +57,12 @@
"tdrive-cli": "bin/tdrive-cli" "tdrive-cli": "bin/tdrive-cli"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.11.6", "@babel/core": "^7.22.5",
"@babel/plugin-proposal-class-properties": "^7.10.4", "@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.10.5", "@babel/plugin-proposal-private-property-in-object": "^7.18.6",
"@babel/preset-env": "^7.11.5", "@babel/plugin-proposal-decorators": "^7.18.10",
"@babel/preset-typescript": "^7.10.4", "@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@types/amqp-connection-manager": "^2.0.10", "@types/amqp-connection-manager": "^2.0.10",
"@types/analytics-node": "^3.1.5", "@types/analytics-node": "^3.1.5",
"@types/archiver": "^5.3.1", "@types/archiver": "^5.3.1",
@@ -79,7 +80,7 @@
"@types/lodash": "^4.14.165", "@types/lodash": "^4.14.165",
"@types/minio": "^7.0.7", "@types/minio": "^7.0.7",
"@types/mongodb": "^4.0.7", "@types/mongodb": "^4.0.7",
"@types/node": "^14.11", "@types/node": "^18.11",
"@types/node-cron": "^3.0.0", "@types/node-cron": "^3.0.0",
"@types/node-fetch": "^2.5.12", "@types/node-fetch": "^2.5.12",
"@types/node-uuid": "^0.0.28", "@types/node-uuid": "^0.0.28",
@@ -92,15 +93,15 @@
"@types/supertest": "2.0.4", "@types/supertest": "2.0.4",
"@types/uuid": "^8.3.0", "@types/uuid": "^8.3.0",
"@types/ws": "^7.2.7", "@types/ws": "^7.2.7",
"@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^4.2.0", "@typescript-eslint/parser": "^5.59.9",
"babel-jest": "^29.1.0", "babel-jest": "^29.1.0",
"babel-plugin-parameter-decorator": "^1.0.16", "babel-plugin-parameter-decorator": "^1.0.16",
"chai": "^4.2.0", "chai": "^4.2.0",
"cpy-cli": "^4.2.0", "cpy-cli": "^4.2.0",
"eslint": "^7.10.0", "eslint": "^8.42.0",
"eslint-config-prettier": "^6.15.0", "eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^3.1.4", "eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-unused-imports": "^2.0.0", "eslint-plugin-unused-imports": "^2.0.0",
"form-auto-content": "^2.2.0", "form-auto-content": "^2.2.0",
"jest": "^29.1.0", "jest": "^29.1.0",
@@ -114,7 +115,7 @@
"ts-node": "^9.0.0", "ts-node": "^9.0.0",
"ts-node-dev": "^1.1.8", "ts-node-dev": "^1.1.8",
"tsc-watch": "^4.2.9", "tsc-watch": "^4.2.9",
"typescript": "^4.0.3", "typescript": "^4.9.5",
"tsconfig-paths": "^3.14.1" "tsconfig-paths": "^3.14.1"
}, },
"dependencies": { "dependencies": {
@@ -171,7 +172,7 @@
"match-all": "^1.2.6", "match-all": "^1.2.6",
"minio": "^7.0.18", "minio": "^7.0.18",
"moment": "^2.29.4", "moment": "^2.29.4",
"mongodb": "^4.1.0", "mongodb": "^5.6.0",
"multistream": "^4.1.0", "multistream": "^4.1.0",
"njwt": "^2.0.0", "njwt": "^2.0.0",
"node-abort-controller": "^3.1.1", "node-abort-controller": "^3.1.1",
@@ -56,7 +56,7 @@ const command: yargs.CommandModule<unknown, CLIArgs> = {
const company = await gr.services.companies.getCompany({ id: argv.id }); const company = await gr.services.companies.getCompany({ id: argv.id });
if (!company) { if (!company) {
return "No such company"; return;
} }
console.log(`Start export for company ${company.id}`); console.log(`Start export for company ${company.id}`);
@@ -103,7 +103,7 @@ const command: yargs.CommandModule<unknown, CLIArgs> = {
} }
writeFileSync(`${output}/users.json`, JSON.stringify(users)); writeFileSync(`${output}/users.json`, JSON.stringify(users));
await platform.stop(); await platform.stop().then(() => console.log("Platform stopped"));
}, },
}; };
@@ -106,7 +106,7 @@ const command: yargs.CommandModule<{}, CLIArgs> = {
return obsv$ return obsv$
.toPromise() .toPromise()
.then(() => platform.stop()) .then(() => platform.stop())
.finally(() => console.log("✅ Company users are now created")); .then(() => console.log("✅ Company users are now created"));
}, },
}; };
@@ -134,7 +134,9 @@ const command: yargs.CommandModule<unknown, unknown> = {
repository, repository,
}); });
return spinner.stop(); spinner.stop();
return;
}, },
}; };
@@ -56,7 +56,8 @@ const command: yargs.CommandModule<unknown, CLIArgs> = {
if (!user) { if (!user) {
console.error("Error: You need to provide User ID"); console.error("Error: You need to provide User ID");
return spinner.stop(); spinner.stop();
return;
} }
if (user) { if (user) {
@@ -79,6 +80,8 @@ const command: yargs.CommandModule<unknown, CLIArgs> = {
} }
exit(); exit();
return;
}, },
}; };
+2683 -3196
View File
File diff suppressed because it is too large Load Diff