From c395e828c517774d1c76c7bc0b03b4b1296fabae Mon Sep 17 00:00:00 2001 From: Rakib Ansary Date: Sun, 26 Feb 2023 13:51:34 +0600 Subject: [PATCH 1/4] refactor: reduce cognitive complexity * extract functionality into separate methods Signed-off-by: Rakib Ansary --- src/domain/LegacyChallenge.ts | 290 +++++++++++------- src/domain/Prize.ts | 2 +- .../ChallengeQueryHelper.ts} | 24 +- .../UserQueryHelper.ts} | 2 +- 4 files changed, 194 insertions(+), 124 deletions(-) rename src/helper/{ChallengeHelper.ts => query-helper/ChallengeQueryHelper.ts} (88%) rename src/helper/{UserHelper.ts => query-helper/UserQueryHelper.ts} (90%) diff --git a/src/domain/LegacyChallenge.ts b/src/domain/LegacyChallenge.ts index 738d509..66a802b 100644 --- a/src/domain/LegacyChallenge.ts +++ b/src/domain/LegacyChallenge.ts @@ -1,6 +1,7 @@ import { Operator as RelationalOperator, QueryBuilder, + Transaction, } from "@topcoder-framework/client-relational"; import { CheckExistsResult, CreateResult, Operator } from "@topcoder-framework/lib-common"; import _ from "lodash"; @@ -9,15 +10,16 @@ import { PhaseStatusIds, PhaseTypeIds, ProjectCategories, - ResourceInfoTypeIds, ResourceRoleTypeIds, } from "../config/constants"; -import ChallengeHelper from "../helper/ChallengeHelper"; + +import ChallengeQueryHelper from "../helper/query-helper/ChallengeQueryHelper"; import { queryRunner } from "../helper/QueryRunner"; -import UserHelper from "../helper/UserHelper"; import { CloseChallengeInput, CreateChallengeInput, + CreateChallengeInput_Phase, + CreateChallengeInput_Prize, LegacyChallenge, LegacyChallengeId, UpdateChallengeInput, @@ -32,6 +34,53 @@ import LegacyReviewDomain from "./Review"; const TCWEBSERVICE = 22838965; class LegacyChallengeDomain { + public async create(input: CreateChallengeInput): Promise { + const transaction = queryRunner.beginTransaction(); + + const projectId = await this.createProject( + { + projectCategoryId: input.projectCategoryId, + projectStatusId: input.projectStatusId, + tcDirectProjectId: input.tcDirectProjectId, + }, + TCWEBSERVICE, + transaction + ); + + await this.createWinnerPrizes(projectId, input.winnerPrizes, TCWEBSERVICE, transaction); + await this.createProjectInfo(projectId, input.projectInfo, TCWEBSERVICE, transaction); + await this.createProjectPhases(projectId, input.phases, TCWEBSERVICE, transaction); + await this.createProjectResources( + projectId, + input.tcDirectProjectId, + TCWEBSERVICE, + transaction + ); + + transaction.commit(); + + return { + kind: { + $case: "integerId", + integerId: projectId, + }, + }; + } + + public async update(input: UpdateChallengeInput) { + await queryRunner.run( + new QueryBuilder(ProjectSchema) + .update({ projectStatusId: input.projectStatusId }) + .where(ProjectSchema.columns.projectId, RelationalOperator.OPERATOR_EQUAL, { + value: { + $case: "intValue", + intValue: input.projectId, + }, + }) + .build() + ); + } + public async activateChallenge(input: LegacyChallengeId) { // update challenge status await this.update({ @@ -396,17 +445,59 @@ class LegacyChallengeDomain { } } - public async create(input: CreateChallengeInput): Promise { - const transaction = queryRunner.beginTransaction(); + public async getLegacyChallenge(input: LegacyChallengeId): Promise { + const { rows } = await queryRunner.run( + new QueryBuilder(ProjectSchema) + .select(..._.map(ProjectSchema.columns)) + .where(ProjectSchema.columns.projectId, RelationalOperator.OPERATOR_EQUAL, { + value: { + $case: "intValue", + intValue: input.legacyChallengeId, + }, + }) + .build() + ); + if (!rows || rows.length === 0) + throw new Error(`Cannot find challenge with id: ${input.legacyChallengeId}`); + return LegacyChallenge.fromPartial(rows[0] as LegacyChallenge); + } - // insert record in project - const createProjectQuery = ChallengeHelper.getChallengeCreateQuery( + public async checkExists(legacyChallengeId: number): Promise { + const { projectId } = ProjectSchema.columns; + + const query = new QueryBuilder(ProjectSchema) + .select(projectId) + .where(projectId, RelationalOperator.OPERATOR_EQUAL, { + value: { + $case: "intValue", + intValue: legacyChallengeId, + }, + }) + .build(); + + const { rows } = await queryRunner.run(query); + + return { + exists: rows?.length == 1, + }; + } + + private async createProject( + { + projectCategoryId, + projectStatusId, + tcDirectProjectId, + }: { projectCategoryId: number; projectStatusId: number; tcDirectProjectId: number }, + userId: number, + transaction: Transaction + ): Promise { + const createProjectQuery = ChallengeQueryHelper.getChallengeCreateQuery( { - projectCategoryId: input.projectCategoryId, - projectStatusId: input.projectStatusId, - tcDirectProjectId: input.tcDirectProjectId, + projectCategoryId, + projectStatusId, + tcDirectProjectId, }, - TCWEBSERVICE + userId ); const createQueryResult = await transaction.add(createProjectQuery); @@ -416,73 +507,106 @@ class LegacyChallengeDomain { throw createQueryResult; } - const projectId = createQueryResult.lastInsertId!; + if (createQueryResult.lastInsertId == null) { + transaction.rollback(); + throw new Error("Failed to create project"); + } - // insert record(s) in prize - const createPrizeQueries = ChallengeHelper.getPrizeCreateQueries( + return createQueryResult.lastInsertId; + } + + private async createWinnerPrizes( + projectId: number, + winnerPrizes: CreateChallengeInput_Prize[], + userId: number, + transaction: Transaction + ) { + const createPrizeQueries = ChallengeQueryHelper.getPrizeCreateQueries( projectId, - input.winnerPrizes, - TCWEBSERVICE + winnerPrizes, + userId ); for (const q of createPrizeQueries) { await transaction.add(q); } + } - // insert record(s) in project_info - const createProjectInfoQueries = ChallengeHelper.getChallengeInfoCreateQueries( + private async createProjectInfo( + projectId: number, + projectInfo: { [key: number]: string }, + userId: number, + transaction: Transaction + ) { + const createProjectInfoQueries = ChallengeQueryHelper.getChallengeInfoCreateQueries( projectId, - input.projectInfo, - TCWEBSERVICE + projectInfo, + userId ); for (const q of createProjectInfoQueries) { await transaction.add(q); } + } - // insert record(s) in project_phase - for (const phase of input.phases) { - const createPhaseQuery = ChallengeHelper.getPhaseCreateQuery(projectId, phase, TCWEBSERVICE); + private async createProjectPhases( + projectId: number, + phases: CreateChallengeInput_Phase[], + userId: number, + transaction: Transaction + ) { + for (const phase of phases) { + const createPhaseQuery = ChallengeQueryHelper.getPhaseCreateQuery(projectId, phase, userId); const createPhaseResult = await transaction.add(createPhaseQuery); if (createPhaseResult instanceof Error) { transaction.rollback(); throw createPhaseResult; } - const projectPhaseId = createPhaseResult.lastInsertId!; - // insert record(s) into phase_criteria - const createPhaseCriteriaQueries = ChallengeHelper.getPhaseCriteriaCreateQueries( + + const projectPhaseId = createPhaseResult.lastInsertId; + if (projectPhaseId == null) { + transaction.rollback(); + throw new Error("Failed to create phase"); + } + + const createPhaseCriteriaQueries = ChallengeQueryHelper.getPhaseCriteriaCreateQueries( projectPhaseId, phase.phaseCriteria, - TCWEBSERVICE + userId ); for (const q of createPhaseCriteriaQueries) { await transaction.add(q); } } + } - const getObserversToAddQuery = ChallengeHelper.getDirectProjectListUserQuery( - input.tcDirectProjectId - ); + private async createProjectResources( + projectId: number, + directProjectId: number, + creatorId: number, + transaction: Transaction + ) { + const getObserversToAddQuery = + ChallengeQueryHelper.getDirectProjectListUserQuery(directProjectId); const getObserversToAddResult = await transaction.add(getObserversToAddQuery); + if (getObserversToAddResult instanceof Error) { transaction.rollback(); throw getObserversToAddResult; } - const adminsToAdd = getObserversToAddResult?.rows - ?.map((o) => ({ - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - userId: o["user_id"], - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - handle: o["handle"], + const adminsToAdd = ( + getObserversToAddResult?.rows?.map((o) => ({ + // Add Observers + userId: o["user_id"] as number, + handle: o["handle"] as string, role: ResourceRoleTypeIds.Observer, - })) - .concat([ - { userId: 22770213, handle: "Applications", role: ResourceRoleTypeIds.Manager }, - { userId: TCWEBSERVICE, handle: "tcwebservice", role: ResourceRoleTypeIds.Manager }, - ]); - - // const copilot = input.copilot; + })) ?? [] + ).concat([ + // Add Managers + { userId: 22770213, handle: "Applications", role: ResourceRoleTypeIds.Manager }, + { userId: TCWEBSERVICE, handle: "tcwebservice", role: ResourceRoleTypeIds.Manager }, + ]); // if (copilot != null) { // const getCopilotHandleQuery = UserHelper.getUserHandleQuery(copilot.userId); @@ -498,32 +622,38 @@ class LegacyChallengeDomain { // }); // } - for (const { userId, handle, role } of adminsToAdd!) { - const createResourceQuery = ChallengeHelper.getResourceCreateQuery( + for (const { userId, handle, role } of adminsToAdd) { + const createResourceQuery = ChallengeQueryHelper.getResourceCreateQuery( projectId, userId, role, undefined, - TCWEBSERVICE + creatorId ); const result = await transaction.add(createResourceQuery); if (result instanceof Error) { transaction.rollback(); throw result; } - const resourceId = result.lastInsertId!; - const createResourceInfoQueries = ChallengeHelper.getObserverResourceInfoCreateQueries( + const resourceId = result.lastInsertId; + + if (resourceId == null) { + transaction.rollback(); + throw new Error("Failed to create resource"); + } + + const createResourceInfoQueries = ChallengeQueryHelper.getObserverResourceInfoCreateQueries( resourceId, userId, handle, - TCWEBSERVICE + creatorId ); for (const q of createResourceInfoQueries) { await transaction.add(q); } // if (role === ResourceRoleTypeIds.Copilot && copilot != null) { - // const createCopilotResourceInfoQuery = ChallengeHelper.getResourceInfoCreateQuery( + // const createCopilotResourceInfoQuery = ChallengeQueryHelper.getResourceInfoCreateQuery( // resourceId, // ResourceInfoTypeIds.Payment, // "" + copilot.fee, @@ -532,66 +662,6 @@ class LegacyChallengeDomain { // await transaction.add(createCopilotResourceInfoQuery); // } } - - transaction.commit(); - - return { - kind: { - $case: "integerId", - integerId: projectId, - }, - }; - } - - public async update(input: UpdateChallengeInput) { - await queryRunner.run( - new QueryBuilder(ProjectSchema) - .update({ projectStatusId: input.projectStatusId }) - .where(ProjectSchema.columns.projectId, RelationalOperator.OPERATOR_EQUAL, { - value: { - $case: "intValue", - intValue: input.projectId, - }, - }) - .build() - ); - } - - public async getLegacyChallenge(input: LegacyChallengeId): Promise { - const { rows } = await queryRunner.run( - new QueryBuilder(ProjectSchema) - .select(..._.map(ProjectSchema.columns)) - .where(ProjectSchema.columns.projectId, RelationalOperator.OPERATOR_EQUAL, { - value: { - $case: "intValue", - intValue: input.legacyChallengeId, - }, - }) - .build() - ); - if (!rows || rows.length === 0) - throw new Error(`Cannot find challenge with id: ${input.legacyChallengeId}`); - return LegacyChallenge.fromPartial(rows[0] as LegacyChallenge); - } - - public async checkExists(legacyChallengeId: number): Promise { - const { projectId } = ProjectSchema.columns; - - const query = new QueryBuilder(ProjectSchema) - .select(projectId) - .where(projectId, RelationalOperator.OPERATOR_EQUAL, { - value: { - $case: "intValue", - intValue: legacyChallengeId, - }, - }) - .build(); - - const { rows } = await queryRunner.run(query); - - return { - exists: rows?.length == 1, - }; } } diff --git a/src/domain/Prize.ts b/src/domain/Prize.ts index 6bdb844..be51cd2 100644 --- a/src/domain/Prize.ts +++ b/src/domain/Prize.ts @@ -1,4 +1,4 @@ -import { Query, QueryBuilder, Operator } from "@topcoder-framework/client-relational"; +import { Operator, Query, QueryBuilder } from "@topcoder-framework/client-relational"; import { CreateResult, ScanRequest, UpdateResult } from "@topcoder-framework/lib-common"; import { Util } from "../common/Util"; import { queryRunner } from "../helper/QueryRunner"; diff --git a/src/helper/ChallengeHelper.ts b/src/helper/query-helper/ChallengeQueryHelper.ts similarity index 88% rename from src/helper/ChallengeHelper.ts rename to src/helper/query-helper/ChallengeQueryHelper.ts index 8e6e197..a82f29d 100644 --- a/src/helper/ChallengeHelper.ts +++ b/src/helper/query-helper/ChallengeQueryHelper.ts @@ -1,19 +1,19 @@ import { Query, QueryBuilder } from "@topcoder-framework/client-relational"; -import { Util } from "../common/Util"; -import { ObserverResourceInfoToAdd, ResourceInfoTypeIds } from "../config/constants"; import { CreateChallengeInput_Phase, CreateChallengeInput_Prize, -} from "../models/domain-layer/legacy/challenge"; -import { PhaseCriteriaSchema } from "../schema/project/PhaseCriteria"; -import { ProjectSchema } from "../schema/project/Project"; -import { ProjectInfoSchema } from "../schema/project/ProjectInfo"; -import { ProjectPhaseSchema } from "../schema/project/ProjectPhase"; -import { PrizeSchema } from "../schema/project_payment/Prize"; -import { ResourceSchema } from "../schema/resource/Resource"; -import { ResourceInfoSchema } from "../schema/resource/ResourceInfo"; +} from "../../../dist/models/domain-layer/legacy/challenge"; +import { Util } from "../../common/Util"; +import { ObserverResourceInfoToAdd, ResourceInfoTypeIds } from "../../config/constants"; +import { PhaseCriteriaSchema } from "../../schema/project/PhaseCriteria"; +import { ProjectSchema } from "../../schema/project/Project"; +import { ProjectInfoSchema } from "../../schema/project/ProjectInfo"; +import { ProjectPhaseSchema } from "../../schema/project/ProjectPhase"; +import { PrizeSchema } from "../../schema/project_payment/Prize"; +import { ResourceSchema } from "../../schema/resource/Resource"; +import { ResourceInfoSchema } from "../../schema/resource/ResourceInfo"; -class ChallengeHelper { +class ChallengeQueryHelper { public getChallengeCreateQuery( { projectStatusId, @@ -190,4 +190,4 @@ class ChallengeHelper { } } -export default new ChallengeHelper(); +export default new ChallengeQueryHelper(); diff --git a/src/helper/UserHelper.ts b/src/helper/query-helper/UserQueryHelper.ts similarity index 90% rename from src/helper/UserHelper.ts rename to src/helper/query-helper/UserQueryHelper.ts index 0164154..68f97d8 100644 --- a/src/helper/UserHelper.ts +++ b/src/helper/query-helper/UserQueryHelper.ts @@ -1,5 +1,5 @@ import { Operator, Query, QueryBuilder, Value } from "@topcoder-framework/client-relational"; -import { UserSchema } from "../schema/member/User"; +import { UserSchema } from "../../schema/member/User"; class UserHelper { public getUserHandleQuery(userId: number): Query { From 67872eacfc9b96c043141fd089f0982ab6a1cafa Mon Sep 17 00:00:00 2001 From: Rakib Ansary Date: Tue, 28 Feb 2023 06:27:33 +0600 Subject: [PATCH 2/4] chore: update package.json --- package.json | 7 +- yarn.lock | 195 +++++++++++++++++++++++++++------------------------ 2 files changed, 108 insertions(+), 94 deletions(-) diff --git a/package.json b/package.json index acd5868..485f9e3 100644 --- a/package.json +++ b/package.json @@ -23,15 +23,16 @@ "license": "ISC", "dependencies": { "@grpc/grpc-js": "^1.7.1", - "@topcoder-framework/client-relational": "^0.4.3", - "@topcoder-framework/lib-common": "^0.4.3", + "@topcoder-framework/client-relational": "^0.5.2", + "@topcoder-framework/domain-challenge": "^0.5.2", + "@topcoder-framework/lib-common": "^0.5.2", "dayjs": "^1.11.5", "dotenv": "^16.0.3", "grpc-server-reflection": "^0.1.5", "lodash": "^4.17.21", "moment": "^2.29.4", "source-map-support": "^0.5.21", - "topcoder-interface": "github:topcoder-platform/plat-interface-definition#v0.0.19", + "topcoder-interface": "github:topcoder-platform/plat-interface-definition#v0.0.20", "uuidv4": "^6.2.13" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 28b1f2b..3c8cb5f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -201,10 +201,10 @@ dependencies: "@jridgewell/trace-mapping" "0.3.9" -"@eslint/eslintrc@^1.4.1": - version "1.4.1" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.4.1.tgz#af58772019a2d271b7e2d4c23ff4ddcba3ccfb3e" - integrity sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA== +"@eslint/eslintrc@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.0.tgz#943309d8697c52fc82c076e90c1c74fbbe69dbff" + integrity sha512-fluIaaV+GyV24CCu/ggiHdV+j4RNh85yQnAYS/G2mZODZgGmmlrgCydjUcV3YvxCm9x8nMAfThsqTni4KiXT4A== dependencies: ajv "^6.12.4" debug "^4.3.2" @@ -216,10 +216,15 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" +"@eslint/js@8.35.0": + version "8.35.0" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.35.0.tgz#b7569632b0b788a0ca0e438235154e45d42813a7" + integrity sha512-JXdzbRiWclLVoD8sNUjR443VVlYqiYmDVT6rGUEIEHU5YJW0gaVZwV2xgM7D4arkvASqD0IlLUVjHiFuxaftRw== + "@grpc/grpc-js@^1.7.1", "@grpc/grpc-js@^1.8.0": - version "1.8.9" - resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.8.9.tgz#84e9167dc80b0c3a98608e14b839458bf0df684d" - integrity sha512-xzsl2HamhovnZddS/2pMF4Q+FgwINaBvxoFGQ+G54Lo7Xsge36VvfDO/TDkL7FofmrRK/X5weRvwlJh7rKwN4w== + version "1.8.11" + resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.8.11.tgz#f113f7bc197e8d6f3d3f0c6b02925c7a5da1aec4" + integrity sha512-f/xC+6Z2QKsRJ+VSSFlt4hA5KSRm+PKvMWV8kMPkMgGlFidR6PeIkXrOasIY2roe+WROM6GFQLlgDKfeEZo2YQ== dependencies: "@grpc/proto-loader" "^0.7.0" "@types/node" ">=12.12.47" @@ -346,24 +351,35 @@ resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== -"@topcoder-framework/client-relational@^0.4.3": - version "0.4.3" - resolved "https://topcoder-409275337247.d.codeartifact.us-east-1.amazonaws.com:443/npm/topcoder-framework/@topcoder-framework/client-relational/-/client-relational-0.4.3.tgz#c36aa64e117b23ceddc81d648d6568b6a31af44f" - integrity sha512-N39BneVhIgB5TWAQRFeMBiQzFS2YnGcx3BBI/sfvnD0V1EC8+4GK26PytYy+JVPm9EzF0dceKX4UGA+luUD2gQ== +"@topcoder-framework/client-relational@^0.5.2": + version "0.5.2" + resolved "https://topcoder-409275337247.d.codeartifact.us-east-1.amazonaws.com:443/npm/topcoder-framework/@topcoder-framework/client-relational/-/client-relational-0.5.2.tgz#6015f84f0d7beb6d7d4f9692bbbe23a54509b5b4" + integrity sha512-6H7Fmu2dbJ5I8a60t2ZfEuHm8dEY67ndn5UwuVp0LpGpivcAz0gqlZG0Htoytze9pG/Z/KjjSBlIJXTGPA7E0w== + dependencies: + "@grpc/grpc-js" "^1.8.0" + "@topcoder-framework/lib-common" "^0.5.2" + topcoder-interface "github:topcoder-platform/plat-interface-definition#v0.0.20" + tslib "^2.4.1" + +"@topcoder-framework/domain-challenge@^0.5.2": + version "0.5.2" + resolved "https://topcoder-409275337247.d.codeartifact.us-east-1.amazonaws.com:443/npm/topcoder-framework/@topcoder-framework/domain-challenge/-/domain-challenge-0.5.2.tgz#da42c9d2ec403f3782f3ddf785864ac1c81486f2" + integrity sha512-Th/ofNKLkdyvgIXbabmWYEKj43xlYGzd6gN5FnbmI3Nqgfx1XUfRW9WZqb4SaaEuKirJYGGimcFyVl7exKGl9A== dependencies: "@grpc/grpc-js" "^1.8.0" - "@topcoder-framework/lib-common" "^0.4.3" - topcoder-interface "github:topcoder-platform/plat-interface-definition#v0.0.17" + "@topcoder-framework/client-relational" "^0.5.2" + "@topcoder-framework/lib-common" "^0.5.2" + topcoder-interface "github:topcoder-platform/plat-interface-definition#v0.0.20" tslib "^2.4.1" -"@topcoder-framework/lib-common@^0.4.3": - version "0.4.3" - resolved "https://topcoder-409275337247.d.codeartifact.us-east-1.amazonaws.com:443/npm/topcoder-framework/@topcoder-framework/lib-common/-/lib-common-0.4.3.tgz#3c992482860ec89f151235d24c9efa2be55e30ba" - integrity sha512-0eB6l146r+uSuHoLV7wPC58mZedAabLwkqDeeuh6h5dB0G+esYNBfbr1Hugim0lR8q0Rlny0aqx4ysz2Rf6Ebg== +"@topcoder-framework/lib-common@^0.5.2": + version "0.5.2" + resolved "https://topcoder-409275337247.d.codeartifact.us-east-1.amazonaws.com:443/npm/topcoder-framework/@topcoder-framework/lib-common/-/lib-common-0.5.2.tgz#f60ddfaeddc30190e30c2fd47b2455a4132cb9db" + integrity sha512-joN63C/Atuvc5DDCPeancWOznfr6o6PGcrLcvKBS0wGMkmeeJFFNHzLQGqAZPt9uDk5f+VJtwtLI/7Sfn9EL8w== dependencies: "@grpc/grpc-js" "^1.8.0" rimraf "^3.0.2" - topcoder-interface "github:topcoder-platform/plat-interface-definition#v0.0.17" + topcoder-interface "github:topcoder-platform/plat-interface-definition#v0.0.20" tslib "^2.4.1" "@tsconfig/node10@^1.0.7": @@ -407,9 +423,9 @@ integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ== "@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0": - version "18.14.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.14.0.tgz#94c47b9217bbac49d4a67a967fdcdeed89ebb7d0" - integrity sha512-5EWrvLmglK+imbCJY0+INViFWUHg1AHel1sq4ZVSfdcNqGy9Edv3UB9IIzzg+xPaUcAgZYcfVs2fBcwDeZzU0A== + version "18.14.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.14.1.tgz#90dad8476f1e42797c49d6f8b69aaf9f876fc69f" + integrity sha512-QH+37Qds3E0eDlReeboBxfHbX9omAcBCXEzswCu6jySP642jiM3cYSIkU/REqwhCUqXdonHFuBfJDiAJxMNhaQ== "@types/node@18.11.18": version "18.11.18" @@ -447,13 +463,13 @@ integrity sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw== "@typescript-eslint/eslint-plugin@^5.47.1": - version "5.52.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.52.0.tgz#5fb0d43574c2411f16ea80f5fc335b8eaa7b28a8" - integrity sha512-lHazYdvYVsBokwCdKOppvYJKaJ4S41CgKBcPvyd0xjZNbvQdhn/pnJlGtQksQ/NhInzdaeaSarlBjDXHuclEbg== + version "5.53.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.53.0.tgz#24b8b4a952f3c615fe070e3c461dd852b5056734" + integrity sha512-alFpFWNucPLdUOySmXCJpzr6HKC3bu7XooShWM+3w/EL6J2HIoB2PFxpLnq4JauWVk6DiVeNKzQlFEaE+X9sGw== dependencies: - "@typescript-eslint/scope-manager" "5.52.0" - "@typescript-eslint/type-utils" "5.52.0" - "@typescript-eslint/utils" "5.52.0" + "@typescript-eslint/scope-manager" "5.53.0" + "@typescript-eslint/type-utils" "5.53.0" + "@typescript-eslint/utils" "5.53.0" debug "^4.3.4" grapheme-splitter "^1.0.4" ignore "^5.2.0" @@ -463,71 +479,71 @@ tsutils "^3.21.0" "@typescript-eslint/parser@^5.47.1": - version "5.52.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.52.0.tgz#73c136df6c0133f1d7870de7131ccf356f5be5a4" - integrity sha512-e2KiLQOZRo4Y0D/b+3y08i3jsekoSkOYStROYmPUnGMEoA0h+k2qOH5H6tcjIc68WDvGwH+PaOrP1XRzLJ6QlA== + version "5.53.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.53.0.tgz#a1f2b9ae73b83181098747e96683f1b249ecab52" + integrity sha512-MKBw9i0DLYlmdOb3Oq/526+al20AJZpANdT6Ct9ffxcV8nKCHz63t/S0IhlTFNsBIHJv+GY5SFJ0XfqVeydQrQ== dependencies: - "@typescript-eslint/scope-manager" "5.52.0" - "@typescript-eslint/types" "5.52.0" - "@typescript-eslint/typescript-estree" "5.52.0" + "@typescript-eslint/scope-manager" "5.53.0" + "@typescript-eslint/types" "5.53.0" + "@typescript-eslint/typescript-estree" "5.53.0" debug "^4.3.4" -"@typescript-eslint/scope-manager@5.52.0": - version "5.52.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.52.0.tgz#a993d89a0556ea16811db48eabd7c5b72dcb83d1" - integrity sha512-AR7sxxfBKiNV0FWBSARxM8DmNxrwgnYMPwmpkC1Pl1n+eT8/I2NAUPuwDy/FmDcC6F8pBfmOcaxcxRHspgOBMw== +"@typescript-eslint/scope-manager@5.53.0": + version "5.53.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.53.0.tgz#42b54f280e33c82939275a42649701024f3fafef" + integrity sha512-Opy3dqNsp/9kBBeCPhkCNR7fmdSQqA+47r21hr9a14Bx0xnkElEQmhoHga+VoaoQ6uDHjDKmQPIYcUcKJifS7w== dependencies: - "@typescript-eslint/types" "5.52.0" - "@typescript-eslint/visitor-keys" "5.52.0" + "@typescript-eslint/types" "5.53.0" + "@typescript-eslint/visitor-keys" "5.53.0" -"@typescript-eslint/type-utils@5.52.0": - version "5.52.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.52.0.tgz#9fd28cd02e6f21f5109e35496df41893f33167aa" - integrity sha512-tEKuUHfDOv852QGlpPtB3lHOoig5pyFQN/cUiZtpw99D93nEBjexRLre5sQZlkMoHry/lZr8qDAt2oAHLKA6Jw== +"@typescript-eslint/type-utils@5.53.0": + version "5.53.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.53.0.tgz#41665449935ba9b4e6a1ba6e2a3f4b2c31d6cf97" + integrity sha512-HO2hh0fmtqNLzTAme/KnND5uFNwbsdYhCZghK2SoxGp3Ifn2emv+hi0PBUjzzSh0dstUIFqOj3bp0AwQlK4OWw== dependencies: - "@typescript-eslint/typescript-estree" "5.52.0" - "@typescript-eslint/utils" "5.52.0" + "@typescript-eslint/typescript-estree" "5.53.0" + "@typescript-eslint/utils" "5.53.0" debug "^4.3.4" tsutils "^3.21.0" -"@typescript-eslint/types@5.52.0": - version "5.52.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.52.0.tgz#19e9abc6afb5bd37a1a9bea877a1a836c0b3241b" - integrity sha512-oV7XU4CHYfBhk78fS7tkum+/Dpgsfi91IIDy7fjCyq2k6KB63M6gMC0YIvy+iABzmXThCRI6xpCEyVObBdWSDQ== +"@typescript-eslint/types@5.53.0": + version "5.53.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.53.0.tgz#f79eca62b97e518ee124086a21a24f3be267026f" + integrity sha512-5kcDL9ZUIP756K6+QOAfPkigJmCPHcLN7Zjdz76lQWWDdzfOhZDTj1irs6gPBKiXx5/6O3L0+AvupAut3z7D2A== -"@typescript-eslint/typescript-estree@5.52.0": - version "5.52.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.52.0.tgz#6408cb3c2ccc01c03c278cb201cf07e73347dfca" - integrity sha512-WeWnjanyEwt6+fVrSR0MYgEpUAuROxuAH516WPjUblIrClzYJj0kBbjdnbQXLpgAN8qbEuGywiQsXUVDiAoEuQ== +"@typescript-eslint/typescript-estree@5.53.0": + version "5.53.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.53.0.tgz#bc651dc28cf18ab248ecd18a4c886c744aebd690" + integrity sha512-eKmipH7QyScpHSkhbptBBYh9v8FxtngLquq292YTEQ1pxVs39yFBlLC1xeIZcPPz1RWGqb7YgERJRGkjw8ZV7w== dependencies: - "@typescript-eslint/types" "5.52.0" - "@typescript-eslint/visitor-keys" "5.52.0" + "@typescript-eslint/types" "5.53.0" + "@typescript-eslint/visitor-keys" "5.53.0" debug "^4.3.4" globby "^11.1.0" is-glob "^4.0.3" semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/utils@5.52.0": - version "5.52.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.52.0.tgz#b260bb5a8f6b00a0ed51db66bdba4ed5e4845a72" - integrity sha512-As3lChhrbwWQLNk2HC8Ree96hldKIqk98EYvypd3It8Q1f8d5zWyIoaZEp2va5667M4ZyE7X8UUR+azXrFl+NA== +"@typescript-eslint/utils@5.53.0": + version "5.53.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.53.0.tgz#e55eaad9d6fffa120575ffaa530c7e802f13bce8" + integrity sha512-VUOOtPv27UNWLxFwQK/8+7kvxVC+hPHNsJjzlJyotlaHjLSIgOCKj9I0DBUjwOOA64qjBwx5afAPjksqOxMO0g== dependencies: "@types/json-schema" "^7.0.9" "@types/semver" "^7.3.12" - "@typescript-eslint/scope-manager" "5.52.0" - "@typescript-eslint/types" "5.52.0" - "@typescript-eslint/typescript-estree" "5.52.0" + "@typescript-eslint/scope-manager" "5.53.0" + "@typescript-eslint/types" "5.53.0" + "@typescript-eslint/typescript-estree" "5.53.0" eslint-scope "^5.1.1" eslint-utils "^3.0.0" semver "^7.3.7" -"@typescript-eslint/visitor-keys@5.52.0": - version "5.52.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.52.0.tgz#e38c971259f44f80cfe49d97dbffa38e3e75030f" - integrity sha512-qMwpw6SU5VHCPr99y274xhbm+PRViK/NATY6qzt+Et7+mThGuFSl/ompj2/hrBlRP/kq+BFdgagnOSgw9TB0eA== +"@typescript-eslint/visitor-keys@5.53.0": + version "5.53.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.53.0.tgz#8a5126623937cdd909c30d8fa72f79fa56cc1a9f" + integrity sha512-JqNLnX3leaHFZEN0gCh81sIvgrp/2GOACZNgO4+Tkf64u51kTpAyWFOY8XHx8XuXr3N2C9zgPPHtcpMg6z1g0w== dependencies: - "@typescript-eslint/types" "5.52.0" + "@typescript-eslint/types" "5.53.0" eslint-visitor-keys "^3.3.0" JSONStream@^1.0.4: @@ -884,9 +900,9 @@ cosmiconfig-typescript-loader@^4.0.0: integrity sha512-NTxV1MFfZDLPiBMjxbHRwSh5LaLcPMwNdCutmnHJCKoVnlvldPWlllonKwrsRJ5pYZBIBGRWWU2tfvzxgeSW5Q== cosmiconfig@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.0.0.tgz#e9feae014eab580f858f8a0288f38997a7bebe97" - integrity sha512-da1EafcpH6b/TD8vDRaWV7xFINlHlF6zKsGwS1TsuVJTZRkquaS5HTMq7uq6h31619QjbsYl21gVDOm32KM1vQ== + version "8.1.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.1.0.tgz#947e174c796483ccf0a48476c24e4fefb7e1aea8" + integrity sha512-0tLZ9URlPGU7JsKq0DQOQ3FoRsYX8xDZ7xMiATQfaiGMz7EHowNkbU9u1coAOmnh9p/1ySpm0RB3JNWRXM5GCg== dependencies: import-fresh "^3.2.1" js-yaml "^4.1.0" @@ -1080,11 +1096,12 @@ eslint-visitor-keys@^3.3.0: integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== eslint@^8.30.0: - version "8.34.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.34.0.tgz#fe0ab0ef478104c1f9ebc5537e303d25a8fb22d6" - integrity sha512-1Z8iFsucw+7kSqXNZVslXS8Ioa4u2KM7GPwuKtkTFAqZ/cHMcEaR+1+Br0wLlot49cNxIiZk5wp8EAbPcYZxTg== + version "8.35.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.35.0.tgz#fffad7c7e326bae606f0e8f436a6158566d42323" + integrity sha512-BxAf1fVL7w+JLRQhWl2pzGeSiGqbWumV4WNvc9Rhp6tiCtm4oHnyPBSEtMGZwrQgudFQ+otqzWoPB7x+hxoWsw== dependencies: - "@eslint/eslintrc" "^1.4.1" + "@eslint/eslintrc" "^2.0.0" + "@eslint/js" "8.35.0" "@humanwhocodes/config-array" "^0.11.8" "@humanwhocodes/module-importer" "^1.0.1" "@nodelib/fs.walk" "^1.2.8" @@ -1098,7 +1115,7 @@ eslint@^8.30.0: eslint-utils "^3.0.0" eslint-visitor-keys "^3.3.0" espree "^9.4.0" - esquery "^1.4.0" + esquery "^1.4.2" esutils "^2.0.2" fast-deep-equal "^3.1.3" file-entry-cache "^6.0.1" @@ -1133,7 +1150,7 @@ espree@^9.4.0: acorn-jsx "^5.3.2" eslint-visitor-keys "^3.3.0" -esquery@^1.4.0: +esquery@^1.4.2: version "1.4.2" resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.2.tgz#c6d3fee05dd665808e2ad870631f221f5617b1d1" integrity sha512-JVSoLdTlTDkmjFmab7H/9SL9qGSyjElT3myyKp7krqjVFQCDLmj1QFaCLRFBszBKI0XVZaiiXvuPIX3ZwHe1Ng== @@ -2180,9 +2197,9 @@ read-pkg@^5.2.0: type-fest "^0.6.0" readable-stream@3, readable-stream@^3.0.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" - integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + version "3.6.1" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.1.tgz#f9f9b5f536920253b3d26e7660e7da4ccff9bb62" + integrity sha512-+rQmrWMYGA90yenhTYsLWAsLsqVC8osOw6PKE1HDYiO0gdPeKe/xDHNzIAIn4C91YQ6oenEhfYqqc1883qHbjQ== dependencies: inherits "^2.0.3" string_decoder "^1.1.1" @@ -2532,13 +2549,9 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -"topcoder-interface@github:topcoder-platform/plat-interface-definition#v0.0.17": - version "1.0.0" - resolved "https://codeload.github.com/topcoder-platform/plat-interface-definition/tar.gz/59d8fca8a16906d1a45bfa2f11bba73ce42388d4" - -"topcoder-interface@github:topcoder-platform/plat-interface-definition#v0.0.19": +"topcoder-interface@github:topcoder-platform/plat-interface-definition#v0.0.20": version "1.0.0" - resolved "https://codeload.github.com/topcoder-platform/plat-interface-definition/tar.gz/336341e8ea7c5a7d5e02b40a56e58e6a2264f210" + resolved "https://codeload.github.com/topcoder-platform/plat-interface-definition/tar.gz/7f80c4abb46660eb5cff15dfd57b4515b7d49870" tree-kill@^1.2.2: version "1.2.2" @@ -2601,9 +2614,9 @@ ts-proto-descriptors@1.7.1: protobufjs "^6.8.8" ts-proto@^1.126.1: - version "1.139.0" - resolved "https://registry.yarnpkg.com/ts-proto/-/ts-proto-1.139.0.tgz#de681b59aae145fc2e55cbb00f7fdb5846e8dbc6" - integrity sha512-DXfRVbsEnzan/tpb7RxuJOgjhzwuxDsyXbYSnF8JHCIDcJ/JxeqeUyDUVICFGmgqrsPcnjn5t3iqOUZRNRm9tg== + version "1.140.0" + resolved "https://registry.yarnpkg.com/ts-proto/-/ts-proto-1.140.0.tgz#cb1528cd5945a4de0ef50637beabf6a70d039f4a" + integrity sha512-0FhFT+S8u7ES3O6b+yEQJ3eSOtW1Sp9F5b4TAfsIs+ojQozghz8Zr5dTHXcuibwoUIZibzt45OxvXLhmJyFMMQ== dependencies: "@types/object-hash" "^1.3.0" case-anything "^2.1.10" @@ -2799,9 +2812,9 @@ yargs@^16.2.0: yargs-parser "^20.2.2" yargs@^17.0.0: - version "17.7.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.0.tgz#b21e9af1e0a619a2a9c67b1133219b2975a07985" - integrity sha512-dwqOPg5trmrre9+v8SUo2q/hAwyKoVfu8OC1xPHKJGNdxAvPl4sKxL4vBnh3bQz/ZvvGAFeA5H3ou2kcOY8sQQ== + version "17.7.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.1.tgz#34a77645201d1a8fc5213ace787c220eabbd0967" + integrity sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw== dependencies: cliui "^8.0.1" escalade "^3.1.1" From ece10edfd519e7a4bd1fd3d0507c497ffc8b1227 Mon Sep 17 00:00:00 2001 From: Rakib Ansary Date: Mon, 6 Mar 2023 13:58:36 +0600 Subject: [PATCH 3/4] chore: publish image --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ebf575f..038a32c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -47,4 +47,4 @@ workflows: context: "org-global" filters: branches: - only: "feature/legacy-challenge" + only: "feature/legacy-challenge-create" From e3b4117f656ce86c0e8e445555c99f140dd26110 Mon Sep 17 00:00:00 2001 From: Rakib Ansary Date: Mon, 6 Mar 2023 19:10:51 +0600 Subject: [PATCH 4/4] chore: use updated @topcoder-framework libs Signed-off-by: Rakib Ansary --- package.json | 6 +++--- yarn.lock | 36 ++++++++++++++++++++---------------- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 485f9e3..81e8f07 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,9 @@ "license": "ISC", "dependencies": { "@grpc/grpc-js": "^1.7.1", - "@topcoder-framework/client-relational": "^0.5.2", - "@topcoder-framework/domain-challenge": "^0.5.2", - "@topcoder-framework/lib-common": "^0.5.2", + "@topcoder-framework/client-relational": "^0.6.0", + "@topcoder-framework/domain-challenge": "^0.6.1", + "@topcoder-framework/lib-common": "^0.6.0", "dayjs": "^1.11.5", "dotenv": "^16.0.3", "grpc-server-reflection": "^0.1.5", diff --git a/yarn.lock b/yarn.lock index 3c8cb5f..0783d94 100644 --- a/yarn.lock +++ b/yarn.lock @@ -351,31 +351,31 @@ resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== -"@topcoder-framework/client-relational@^0.5.2": - version "0.5.2" - resolved "https://topcoder-409275337247.d.codeartifact.us-east-1.amazonaws.com:443/npm/topcoder-framework/@topcoder-framework/client-relational/-/client-relational-0.5.2.tgz#6015f84f0d7beb6d7d4f9692bbbe23a54509b5b4" - integrity sha512-6H7Fmu2dbJ5I8a60t2ZfEuHm8dEY67ndn5UwuVp0LpGpivcAz0gqlZG0Htoytze9pG/Z/KjjSBlIJXTGPA7E0w== +"@topcoder-framework/client-relational@^0.6.0": + version "0.6.0" + resolved "https://topcoder-409275337247.d.codeartifact.us-east-1.amazonaws.com:443/npm/topcoder-framework/@topcoder-framework/client-relational/-/client-relational-0.6.0.tgz#aaf5108efec9164e62529f6d24b51f8926e9da06" + integrity sha512-+/OXdFvBxi+Gv8C1io/hk1JDyFyue6Sc3kZGoHjJ32TV/SNe7C2gL0FSFBqET1S9qrczYYPVJDxTej2owvkkVA== dependencies: "@grpc/grpc-js" "^1.8.0" - "@topcoder-framework/lib-common" "^0.5.2" + "@topcoder-framework/lib-common" "^0.6.0" topcoder-interface "github:topcoder-platform/plat-interface-definition#v0.0.20" tslib "^2.4.1" -"@topcoder-framework/domain-challenge@^0.5.2": - version "0.5.2" - resolved "https://topcoder-409275337247.d.codeartifact.us-east-1.amazonaws.com:443/npm/topcoder-framework/@topcoder-framework/domain-challenge/-/domain-challenge-0.5.2.tgz#da42c9d2ec403f3782f3ddf785864ac1c81486f2" - integrity sha512-Th/ofNKLkdyvgIXbabmWYEKj43xlYGzd6gN5FnbmI3Nqgfx1XUfRW9WZqb4SaaEuKirJYGGimcFyVl7exKGl9A== +"@topcoder-framework/domain-challenge@^0.6.1": + version "0.6.1" + resolved "https://topcoder-409275337247.d.codeartifact.us-east-1.amazonaws.com:443/npm/topcoder-framework/@topcoder-framework/domain-challenge/-/domain-challenge-0.6.1.tgz#792b84861d811ce025ab5cc9c59f12b78d59a611" + integrity sha512-PcMp30Hi0JgIV35a4MxDlItNYiimLTSatlSQgYmC51YWd8mUwHk6mRQnqNSqvpBdqBF3icGoAXQT8zOSrrnLvw== dependencies: "@grpc/grpc-js" "^1.8.0" - "@topcoder-framework/client-relational" "^0.5.2" - "@topcoder-framework/lib-common" "^0.5.2" - topcoder-interface "github:topcoder-platform/plat-interface-definition#v0.0.20" + "@topcoder-framework/client-relational" "^0.6.0" + "@topcoder-framework/lib-common" "^0.6.0" + topcoder-interface "github:topcoder-platform/plat-interface-definition#v0.0.22" tslib "^2.4.1" -"@topcoder-framework/lib-common@^0.5.2": - version "0.5.2" - resolved "https://topcoder-409275337247.d.codeartifact.us-east-1.amazonaws.com:443/npm/topcoder-framework/@topcoder-framework/lib-common/-/lib-common-0.5.2.tgz#f60ddfaeddc30190e30c2fd47b2455a4132cb9db" - integrity sha512-joN63C/Atuvc5DDCPeancWOznfr6o6PGcrLcvKBS0wGMkmeeJFFNHzLQGqAZPt9uDk5f+VJtwtLI/7Sfn9EL8w== +"@topcoder-framework/lib-common@^0.6.0": + version "0.6.0" + resolved "https://topcoder-409275337247.d.codeartifact.us-east-1.amazonaws.com:443/npm/topcoder-framework/@topcoder-framework/lib-common/-/lib-common-0.6.0.tgz#4331956cc4386b624a48285fb36a0987cf829c6f" + integrity sha512-JYx4rQb0peZ9jqEbnpCsQMFBTrRS2W5KNPxHULqi/SgDIq0rO4AWp/lJTmWYc/8i3VPPTe6upDVXjnNdJBx3dg== dependencies: "@grpc/grpc-js" "^1.8.0" rimraf "^3.0.2" @@ -2553,6 +2553,10 @@ to-regex-range@^5.0.1: version "1.0.0" resolved "https://codeload.github.com/topcoder-platform/plat-interface-definition/tar.gz/7f80c4abb46660eb5cff15dfd57b4515b7d49870" +"topcoder-interface@github:topcoder-platform/plat-interface-definition#v0.0.22": + version "1.0.0" + resolved "https://codeload.github.com/topcoder-platform/plat-interface-definition/tar.gz/1a52191bd1b87ecb135e82215c92b418ec1dc88d" + tree-kill@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc"