From 64c836bbc9922bc246454683498fd15d96d92888 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Oct 2022 19:02:36 +0000 Subject: [PATCH 1/4] chore: Bump axios Bumps [axios](https://github.com/axios/axios) from 0.27.2 to 1.1.2. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](https://github.com/axios/axios/compare/v0.27.2...v1.1.2) --- updated-dependencies: - dependency-name: axios dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .../runner-binaries-syncer/package.json | 2 +- .../lambdas/runner-binaries-syncer/yarn.lock | 24 ++++++++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/package.json b/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/package.json index 99a883b9bc..ee4b849a0f 100644 --- a/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/package.json +++ b/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/package.json @@ -34,7 +34,7 @@ "typescript": "^4.8.4" }, "dependencies": { - "axios": "^0.27.2", + "axios": "^1.1.2", "tslog": "^3.3.4" } } diff --git a/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/yarn.lock b/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/yarn.lock index d4545c345e..1b3a8bf2ee 100644 --- a/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/yarn.lock +++ b/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/yarn.lock @@ -1290,13 +1290,14 @@ aws-sdk@^2.1230.0: uuid "8.0.0" xml2js "0.4.19" -axios@^0.27.2: - version "0.27.2" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972" - integrity sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ== +axios@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.1.2.tgz#8b6f6c540abf44ab98d9904e8daf55351ca4a331" + integrity sha512-bznQyETwElsXl2RK7HLLwb5GPpOLlycxHCtrpDR/4RqqBzjARaOTo3jz4IgtntWUYee7Ne4S8UHd92VCuzPaWA== dependencies: - follow-redirects "^1.14.9" + follow-redirects "^1.15.0" form-data "^4.0.0" + proxy-from-env "^1.1.0" babel-jest@^27.5.1: version "27.5.1" @@ -2044,10 +2045,10 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.4.tgz#28d9969ea90661b5134259f312ab6aa7929ac5e2" integrity sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw== -follow-redirects@^1.14.9: - version "1.15.0" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.0.tgz#06441868281c86d0dda4ad8bdaead2d02dca89d4" - integrity sha512-aExlJShTV4qOUOL7yF1U5tvLCB0xQuudbf6toyYA0E/acBNw71mvjFTnLaRp50aQaYocMR0a/RMMBIHeZnGyjQ== +follow-redirects@^1.15.0: + version "1.15.2" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" + integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== for-each@^0.3.3: version "0.3.3" @@ -3451,6 +3452,11 @@ prompts@^2.0.1: kleur "^3.0.3" sisteransi "^1.0.5" +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + psl@^1.1.33: version "1.8.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" From bc09d58ec53ead22fae29785df574235860d19a7 Mon Sep 17 00:00:00 2001 From: navdeepg2021 Date: Tue, 11 Oct 2022 17:08:15 -0400 Subject: [PATCH 2/4] fix: updating the jest version fixed this tests issue. --- .../lambdas/runner-binaries-syncer/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/package.json b/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/package.json index ee4b849a0f..cc048a5067 100644 --- a/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/package.json +++ b/modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/package.json @@ -26,10 +26,10 @@ "aws-sdk": "^2.1230.0", "eslint": "^7.32.0", "eslint-plugin-prettier": "4.2.1", - "jest": "^27.5.1", + "jest": "^29.1", "jest-mock": "^29.1.2", "prettier": "2.7.1", - "ts-jest": "^27.1.4", + "ts-jest": "^29.0.3", "ts-node-dev": "^2.0.0", "typescript": "^4.8.4" }, From 384985001990cd2ff157ae916f7a27f4b8bb2fea Mon Sep 17 00:00:00 2001 From: navdeepg2021 Date: Tue, 11 Oct 2022 17:19:02 -0400 Subject: [PATCH 3/4] fix: updated the versions across the modules. --- modules/runners/lambdas/runners/package.json | 4 ++-- modules/webhook/lambdas/webhook/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/runners/lambdas/runners/package.json b/modules/runners/lambdas/runners/package.json index faa78bd2c4..4a6f8efcb5 100644 --- a/modules/runners/lambdas/runners/package.json +++ b/modules/runners/lambdas/runners/package.json @@ -25,13 +25,13 @@ "@vercel/ncc": "^0.34.0", "eslint": "^7.32.0", "eslint-plugin-prettier": "4.2.1", - "jest": "27.5.1", + "jest": "^29.1", "jest-mock": "^29.1.2", "jest-mock-extended": "^3.0.1", "moment-timezone": "^0.5.37", "nock": "^13.2.9", "prettier": "2.7.1", - "ts-jest": "^27.1.4", + "ts-jest": "^29.0.3", "ts-node": "^10.9.1", "ts-node-dev": "^2.0.0" }, diff --git a/modules/webhook/lambdas/webhook/package.json b/modules/webhook/lambdas/webhook/package.json index 6712384ddb..e0d08d3237 100644 --- a/modules/webhook/lambdas/webhook/package.json +++ b/modules/webhook/lambdas/webhook/package.json @@ -30,11 +30,11 @@ "eslint": "^7.32.0", "eslint-plugin-prettier": "4.2.1", "express": "^4.18.2", - "jest": "^27.5.1", + "jest": "^29.1", "jest-mock": "^29.1.2", "nock": "^13.2.9", "prettier": "2.7.1", - "ts-jest": "^27.1.4", + "ts-jest": "^29.0.3", "ts-node-dev": "^2.0.0", "typescript": "^4.8.4" }, From 08a350fa0beabc44afbd8520549ea7d6b46101a0 Mon Sep 17 00:00:00 2001 From: navdeepg2021 Date: Tue, 11 Oct 2022 17:26:58 -0400 Subject: [PATCH 4/4] fix: failed tests. --- modules/webhook/lambdas/webhook/src/lambda.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/webhook/lambdas/webhook/src/lambda.test.ts b/modules/webhook/lambdas/webhook/src/lambda.test.ts index 1600095f9d..5cb768ac68 100644 --- a/modules/webhook/lambdas/webhook/src/lambda.test.ts +++ b/modules/webhook/lambdas/webhook/src/lambda.test.ts @@ -1,5 +1,5 @@ import { APIGatewayEvent, Context } from 'aws-lambda'; -import { mocked } from 'ts-jest/utils'; +import { mocked } from 'jest-mock'; import { githubWebhook } from './lambda'; import { handle } from './webhook/handler';