From fc83d6cebbd0d19c31be6c04c9b82a749a82de8a Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 6 Oct 2022 09:31:03 +0000 Subject: [PATCH 1/2] fix: upgrade zone.js from 0.10.3 to 0.11.8 Snyk has created this PR to upgrade zone.js from 0.10.3 to 0.11.8. See this package in npm: https://www.npmjs.com/package/zone.js See this project in Snyk: https://app.snyk.io/org/robgott/project/cd47ff2e-b51f-416b-98f2-68d052e9c038?utm_source=github&utm_medium=referral&page=upgrade-pr --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 9e809ba224f..b35ccd0cce3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -54,7 +54,7 @@ "snarkdown": "^1.2.2", "socket.io-client": "^3.1.0", "typescript": "~4.0.5", - "zone.js": "^0.10.3" + "zone.js": "^0.11.8" }, "devDependencies": { "@angular-eslint/builder": "^0.8.0-beta.7", From 38fd4d3b79051134540a628c8e3349a85258ce8f Mon Sep 17 00:00:00 2001 From: JuiceShopBot <61591748+JuiceShopBot@users.noreply.github.com> Date: Thu, 6 Oct 2022 09:47:35 +0000 Subject: [PATCH 2/2] Auto-fix linting issues Signed-off-by: JuiceShopBot <61591748+JuiceShopBot@users.noreply.github.com> --- data/datacreator.ts | 6 +++--- test/api/chatBotSpec.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/datacreator.ts b/data/datacreator.ts index a6aa8de1c12..1b09ad0c6c6 100644 --- a/data/datacreator.ts +++ b/data/datacreator.ts @@ -202,7 +202,7 @@ async function createRandomFakeUsers () { return text } - return Promise.all(new Array(config.get('application.numberOfRandomFakeUsers')).fill(0).map( + return await Promise.all(new Array(config.get('application.numberOfRandomFakeUsers')).fill(0).map( () => models.User.create({ email: getGeneratedRandomFakeUserEmail(), password: makeRandomString(5) @@ -258,7 +258,7 @@ async function createMemories () { }) ] - return Promise.all(memories) + return await Promise.all(memories) } async function createProducts () { @@ -305,7 +305,7 @@ async function createProducts () { } datacache.retrieveBlueprintChallengeFile = blueprint - return Promise.all( + return await Promise.all( products.map( ({ reviews = [], useForChristmasSpecialChallenge = false, urlForProductTamperingChallenge = false, fileForRetrieveBlueprintChallenge = false, ...product }) => models.Product.create(product).catch( diff --git a/test/api/chatBotSpec.ts b/test/api/chatBotSpec.ts index efa129ad078..e06d939bdcc 100644 --- a/test/api/chatBotSpec.ts +++ b/test/api/chatBotSpec.ts @@ -236,7 +236,7 @@ describe('/chatbot', () => { }) const testCommand = functionTest[0].utterances[0] const testResponse = '3be2e438b7f3d04c89d7749f727bb3bd' - return frisby.setup({ + return await frisby.setup({ request: { headers: { Authorization: `Bearer ${token}`,