@applitools/visual-grid-cli-utils 1.21.35 → 1.21.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@ const {filterValues} = require('@applitools/functional-commons')
|
|
|
3
3
|
|
|
4
4
|
function parseBrowser(arg) {
|
|
5
5
|
const match =
|
|
6
|
-
/^(chrome|chrome-1|chrome-2|chrome-canary|edgechromium-poc-canary|edgechromium-canary|firefox|firefox-1|firefox-2|firefox-canary|ie11|ie10|edge|safari|safari-1|safari-2|safari-canary|safari-earlyaccess|ie-vmware|edgechromium|edgechromium-1|edgechromium-2|edgechromium-canary|edgelegacy)(\( *(\d+) *(x|,) *(\d+) *\))?$/.exec(
|
|
6
|
+
/^(chrome|chrome-1|chrome-2|chrome-canary|edgechromium-poc-canary|edgechromium-canary|firefox|firefox-1|firefox-2|firefox-canary|ie11|ie10|edge|safari|safari-1|safari-2|safari-canary|webkit|safari-earlyaccess|ie-vmware|edgechromium|edgechromium-1|edgechromium-2|edgechromium-canary|edgelegacy)(\( *(\d+) *(x|,) *(\d+) *\))?$/.exec(
|
|
7
7
|
arg,
|
|
8
8
|
)
|
|
9
9
|
|
|
10
10
|
if (!match)
|
|
11
11
|
throw new Error(
|
|
12
|
-
'invalid syntax. Supports only chrome[-1/2/canary], firefox[-1/2/canary], ie11, ie10, edge, edgelegacy, edgechromium[-1/2/canary], safari[-1/2/canary] as browsers, and the syntax is browser(widthxheight)',
|
|
12
|
+
'invalid syntax. Supports only chrome[-1/2/canary], firefox[-1/2/canary], ie11, ie10, edge, edgelegacy, edgechromium[-1/2/canary], safari[-1/2/canary], webkit as browsers, and the syntax is browser(widthxheight)',
|
|
13
13
|
)
|
|
14
14
|
|
|
15
15
|
const ret = {browser: match[1], width: parseInt(match[3], 10), height: parseInt(match[5], 10)}
|