From 8c57d91278a747fd7cc192a51b299c4706c9a89f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 16 Jul 2020 08:47:22 +0000 Subject: [PATCH 1/3] =?UTF-8?q?fix(deps):=20update=20uuid=20to=207.0.3=20?= =?UTF-8?q?=F0=9F=8C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/server/package.json | 2 +- yarn.lock | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/server/package.json b/packages/server/package.json index 2ea352bff0e8..ebeb18685350 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -115,7 +115,7 @@ "underscore": "1.9.1", "underscore.string": "3.3.5", "url-parse": "1.4.7", - "uuid": "3.4.0", + "uuid": "7.0.3", "which": "2.0.2", "widest-line": "3.1.0", "winston": "2.4.4" diff --git a/yarn.lock b/yarn.lock index 178da47eb3d8..53462eac8d3e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -25246,7 +25246,12 @@ uuid@3.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" integrity sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA== -uuid@3.4.0, uuid@^3.0.0, uuid@^3.0.1, uuid@^3.1.0, uuid@^3.3.2, uuid@^3.3.3: +uuid@7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.3.tgz#c5c9f2c8cf25dc0a372c4df1441c41f5bd0c680b" + integrity sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg== + +uuid@^3.0.0, uuid@^3.0.1, uuid@^3.1.0, uuid@^3.3.2, uuid@^3.3.3: version "3.4.0" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== From 631dddb009809cccc003fabb3ac1abb068f733a3 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Thu, 16 Jul 2020 15:57:03 +0630 Subject: [PATCH 2/3] Update require statement with new breaking change --- packages/server/lib/automation/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/lib/automation/index.js b/packages/server/lib/automation/index.js index 998aa257610e..84f36569bf47 100644 --- a/packages/server/lib/automation/index.js +++ b/packages/server/lib/automation/index.js @@ -1,5 +1,5 @@ const _ = require('lodash') -const uuid = require('uuid') +const { v4: uuid } = require('uuid') const Promise = require('bluebird') const Cookies = require('./cookies') const Screenshot = require('./screenshot') From f9a2eef80f55efee71224a5fb90dcfc742baaf17 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Thu, 16 Jul 2020 15:58:32 +0630 Subject: [PATCH 3/3] Fix call to uuid method --- packages/server/lib/automation/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/lib/automation/index.js b/packages/server/lib/automation/index.js index 84f36569bf47..71e24157db1e 100644 --- a/packages/server/lib/automation/index.js +++ b/packages/server/lib/automation/index.js @@ -1,5 +1,5 @@ const _ = require('lodash') -const { v4: uuid } = require('uuid') +const { v4: uuidv4 } = require('uuid') const Promise = require('bluebird') const Cookies = require('./cookies') const Screenshot = require('./screenshot') @@ -43,7 +43,7 @@ module.exports = { const requestAutomationResponse = (message, data, fn) => { return new Promise((resolve, reject) => { - const id = uuid.v4() + const id = uuidv4() requests[id] = function (obj) { // normalize the error from automation responses