From b35e9d34fab86f55319e3a165c0d551b600d5613 Mon Sep 17 00:00:00 2001 From: Craig Nishina Date: Mon, 12 Aug 2019 17:27:41 -0700 Subject: [PATCH] chore(deps): npm audit fixes for vulnerabilities (#412) Fix formatVersion Before 77.0.3865 -> 77.0.386 After 77.0.3865 -> 77.0.3865 --- lib/provider/chromedriver.ts | 4 ++-- package-lock.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/provider/chromedriver.ts b/lib/provider/chromedriver.ts index 95c96973..2fec1885 100644 --- a/lib/provider/chromedriver.ts +++ b/lib/provider/chromedriver.ts @@ -260,7 +260,7 @@ export function matchBinaries(ostype: string): RegExp|null { * @param version The actual version. */ export function formatVersion(version: string): string|null { - const newRegex = /([0-9]*\.[0-9]*\.[0-9]*).[0-9]*/g; + const newRegex = /([0-9]*\.[0-9]*\.[0-9]*)(\.[0-9]*)?/g; try { const exec = newRegex.exec(version); if (exec) { @@ -279,4 +279,4 @@ export function formatVersion(version: string): string|null { // no-op: if exec[1] is not reachable, move on to return null. } return null; -} \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index 9dcf61f6..72662837 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1243,9 +1243,9 @@ } }, "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", "dev": true }, "loglevel": {