From 41368a14b0d966f77e58ecb677e1bbdf888e549b Mon Sep 17 00:00:00 2001 From: yan Date: Wed, 5 Dec 2018 16:16:11 -0800 Subject: [PATCH] check src/brave/brave_sync/extension for npm vulnerabilities fix https://github.com/brave/brave-browser/issues/2380 --- scripts/audit.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/audit.js b/scripts/audit.js index fe63428f9af9..c13b537399ee 100644 --- a/scripts/audit.js +++ b/scripts/audit.js @@ -9,6 +9,7 @@ const util = require('../lib/util') const baseDir = path.resolve(path.join(__dirname, '..')) const braveDir = path.join(baseDir, 'src', 'brave') const braveVendorDir = path.join(braveDir, 'vendor') +const syncDir = path.join(braveDir, 'components', 'brave_sync', 'extension') /** * Runs npm audit on a given directory located at pathname @@ -28,3 +29,6 @@ npmAudit(braveDir) fs.readdirSync(braveVendorDir).forEach((dir) => { npmAudit(path.join(braveVendorDir, dir)) }) +fs.readdirSync(syncDir).forEach((dir) => { + npmAudit(path.join(syncDir, dir)) +})