From 319705626b27f9ade96180a6a88d9afc0b483124 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2020 13:04:48 +0630 Subject: [PATCH] =?UTF-8?q?fix(deps):=20update=20dependency=20uuid=20to=20?= =?UTF-8?q?version=20.x=20=F0=9F=8C=9F=20(#8002)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(deps): update uuid to 7.0.3 🌟 * Update require statement with new breaking change * Fix call to uuid method Co-authored-by: Renovate Bot Co-authored-by: Jennifer Shehane --- packages/server/lib/automation/index.js | 4 ++-- packages/server/package.json | 2 +- yarn.lock | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/server/lib/automation/index.js b/packages/server/lib/automation/index.js index 998aa257610e..71e24157db1e 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: 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 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==