New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

playwright-core

Package Overview
Dependencies
Maintainers
4
Versions
4777
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playwright-core - npm Package Compare versions

Comparing version 1.50.0-alpha-2024-12-19 to 1.50.0-alpha-2024-12-20

lib/vite/recorder/assets/codeMirrorModule-DEr8I78r.js

11

browsers.json

@@ -12,5 +12,5 @@ {

"name": "chromium-tip-of-tree",
"revision": "1287",
"revision": "1288",
"installByDefault": false,
"browserVersion": "133.0.6901.0"
"browserVersion": "133.0.6905.0"
},

@@ -49,3 +49,3 @@ {

"name": "ffmpeg",
"revision": "1010",
"revision": "1011",
"installByDefault": true,

@@ -58,2 +58,7 @@ "revisionOverrides": {

{
"name": "winldd",
"revision": "1007",
"installByDefault": false
},
{
"name": "android",

@@ -60,0 +65,0 @@ "revision": "1001",

@@ -92,2 +92,3 @@ "use strict";

}
if (process.platform === 'win32') executables.push(_server.registry.findExecutable('winldd'));
if (faultyArguments.length) throw new Error(`Invalid installation targets: ${faultyArguments.map(name => `'${name}'`).join(', ')}. Expecting one of: ${suggestedBrowsersToInstall()}`);

@@ -94,0 +95,0 @@ return executables;

@@ -343,3 +343,3 @@ "use strict";

type: `image/${format === 'png' ? 'png' : 'jpeg'}`,
quality: quality || 80
quality: quality ? quality / 100 : 0.8
},

@@ -346,0 +346,0 @@ origin: documentRect ? 'document' : 'viewport',

@@ -135,7 +135,7 @@ "use strict";

}
async function validateDependenciesWindows(windowsExeAndDllDirectories) {
async function validateDependenciesWindows(sdkLanguage, windowsExeAndDllDirectories) {
const directoryPaths = windowsExeAndDllDirectories;
const lddPaths = [];
for (const directoryPath of directoryPaths) lddPaths.push(...(await executablesOrSharedLibraries(directoryPath)));
const allMissingDeps = await Promise.all(lddPaths.map(lddPath => missingFileDependenciesWindows(lddPath)));
const allMissingDeps = await Promise.all(lddPaths.map(lddPath => missingFileDependenciesWindows(sdkLanguage, lddPath)));
const missingDeps = new Set();

@@ -242,4 +242,4 @@ for (const deps of allMissingDeps) {

}
async function missingFileDependenciesWindows(filePath) {
const executable = _path.default.join(__dirname, '..', '..', '..', 'bin', 'PrintDeps.exe');
async function missingFileDependenciesWindows(sdkLanguage, filePath) {
const executable = _.registry.findExecutable('winldd').executablePathOrDie(sdkLanguage);
const dirname = _path.default.dirname(filePath);

@@ -246,0 +246,0 @@ const {

@@ -95,2 +95,7 @@ "use strict";

'win': ['ffmpeg-win64.exe']
},
'winldd': {
'linux': undefined,
'mac': undefined,
'win': ['PrintDeps.exe']
}

@@ -331,2 +336,31 @@ };

},
'winldd': {
'<unknown>': undefined,
'ubuntu18.04-x64': undefined,
'ubuntu20.04-x64': undefined,
'ubuntu22.04-x64': undefined,
'ubuntu24.04-x64': undefined,
'ubuntu18.04-arm64': undefined,
'ubuntu20.04-arm64': undefined,
'ubuntu22.04-arm64': undefined,
'ubuntu24.04-arm64': undefined,
'debian11-x64': undefined,
'debian11-arm64': undefined,
'debian12-x64': undefined,
'debian12-arm64': undefined,
'mac10.13': undefined,
'mac10.14': undefined,
'mac10.15': undefined,
'mac11': undefined,
'mac11-arm64': undefined,
'mac12': undefined,
'mac12-arm64': undefined,
'mac13': undefined,
'mac13-arm64': undefined,
'mac14': undefined,
'mac14-arm64': undefined,
'mac15': undefined,
'mac15-arm64': undefined,
'win64': 'builds/winldd/%s/winldd-win64.zip'
},
'android': {

@@ -682,2 +716,18 @@ '<unknown>': 'builds/android/%s/android.zip',

});
const winldd = descriptors.find(d => d.name === 'winldd');
const winlddExecutable = findExecutablePath(winldd.dir, 'winldd');
this._executables.push({
type: 'tool',
name: 'winldd',
browserName: undefined,
directory: winldd.dir,
executablePath: () => winlddExecutable,
executablePathOrDie: sdkLanguage => executablePathOrDie('winldd', winlddExecutable, winldd.installByDefault, sdkLanguage),
installType: process.platform === 'win32' ? 'download-by-default' : 'none',
_validateHostRequirements: () => Promise.resolve(),
downloadURLs: this._downloadURLs(winldd),
_install: () => this._downloadExecutable(winldd, winlddExecutable),
_dependencyGroup: 'tools',
_isHermeticInstallation: true
});
const android = descriptors.find(d => d.name === 'android');

@@ -819,3 +869,3 @@ this._executables.push({

if (os.platform() === 'linux') return await (0, _dependencies.validateDependenciesLinux)(sdkLanguage, linuxLddDirectories.map(d => _path.default.join(browserDirectory, d)), dlOpenLibraries);
if (os.platform() === 'win32' && os.arch() === 'x64') return await (0, _dependencies.validateDependenciesWindows)(windowsExeAndDllDirectories.map(d => _path.default.join(browserDirectory, d)));
if (os.platform() === 'win32' && os.arch() === 'x64') return await (0, _dependencies.validateDependenciesWindows)(sdkLanguage, windowsExeAndDllDirectories.map(d => _path.default.join(browserDirectory, d)));
}

@@ -1086,2 +1136,3 @@ async installDeps(executablesToInstallDeps, dryRun) {

const executables = [];
if (process.platform === 'win32') executables.push(registry.findExecutable('winldd'));
for (const browserName of browsers) {

@@ -1088,0 +1139,0 @@ const executable = registry.findExecutable(browserName);

@@ -28,3 +28,3 @@ "use strict";

function asLocator(lang, selector, isFrameLocator = false) {
return asLocators(lang, selector, isFrameLocator)[0];
return asLocators(lang, selector, isFrameLocator, 1)[0];
}

@@ -239,3 +239,3 @@ function asLocators(lang, selector, isFrameLocator = false, maxOutputSize = 20, preferredQuote) {

result.push(factory.chainLocators(currentTokens));
return currentTokens.length < maxOutputSize;
return result.length < maxOutputSize;
}

@@ -242,0 +242,0 @@ for (const taken of tokens[index]) {

{
"name": "playwright-core",
"version": "1.50.0-alpha-2024-12-19",
"version": "1.50.0-alpha-2024-12-20",
"description": "A high-level API to automate web browsers",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc