playwright-core
Advanced tools
Comparing version 1.50.0-alpha-1737068696000 to 1.50.0-alpha-1737075373000
@@ -107,3 +107,3 @@ "use strict"; | ||
if (!info) { | ||
console.warn(`Cannot install dependencies for ${platform}!`); // eslint-disable-line no-console | ||
console.warn(`Cannot install dependencies for ${platform} with Playwright ${(0, _userAgent.getPlaywrightVersion)()}!`); // eslint-disable-line no-console | ||
return; | ||
@@ -110,0 +110,0 @@ } |
@@ -69,19 +69,25 @@ "use strict"; | ||
if ((distroInfo === null || distroInfo === void 0 ? void 0 : distroInfo.id) === 'ubuntu' || (distroInfo === null || distroInfo === void 0 ? void 0 : distroInfo.id) === 'pop' || (distroInfo === null || distroInfo === void 0 ? void 0 : distroInfo.id) === 'neon' || (distroInfo === null || distroInfo === void 0 ? void 0 : distroInfo.id) === 'tuxedo') { | ||
const isOfficiallySupportedPlatform = (distroInfo === null || distroInfo === void 0 ? void 0 : distroInfo.id) === 'ubuntu'; | ||
if (parseInt(distroInfo.version, 10) <= 19) return { | ||
const isUbuntu = (distroInfo === null || distroInfo === void 0 ? void 0 : distroInfo.id) === 'ubuntu'; | ||
const version = distroInfo === null || distroInfo === void 0 ? void 0 : distroInfo.version; | ||
const major = parseInt(distroInfo.version, 10); | ||
if (major < 20) return { | ||
hostPlatform: 'ubuntu18.04' + archSuffix, | ||
isOfficiallySupportedPlatform: false | ||
}; | ||
if (parseInt(distroInfo.version, 10) <= 21) return { | ||
if (major < 22) return { | ||
hostPlatform: 'ubuntu20.04' + archSuffix, | ||
isOfficiallySupportedPlatform | ||
isOfficiallySupportedPlatform: isUbuntu && version === '20.04' | ||
}; | ||
if (parseInt(distroInfo.version, 10) <= 22) return { | ||
if (major < 24) return { | ||
hostPlatform: 'ubuntu22.04' + archSuffix, | ||
isOfficiallySupportedPlatform | ||
isOfficiallySupportedPlatform: isUbuntu && version === '22.04' | ||
}; | ||
return { | ||
if (major < 26) return { | ||
hostPlatform: 'ubuntu24.04' + archSuffix, | ||
isOfficiallySupportedPlatform | ||
isOfficiallySupportedPlatform: isUbuntu && version === '24.04' | ||
}; | ||
return { | ||
hostPlatform: 'ubuntu' + distroInfo.version + archSuffix, | ||
isOfficiallySupportedPlatform: false | ||
}; | ||
} | ||
@@ -88,0 +94,0 @@ // Linux Mint is ubuntu-based but does not have the same versions |
{ | ||
"name": "playwright-core", | ||
"version": "1.50.0-alpha-1737068696000", | ||
"version": "1.50.0-alpha-1737075373000", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
7831154
109798