Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

testcafe-browser-tools

Package Overview
Dependencies
Maintainers
4
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testcafe-browser-tools - npm Package Compare versions

Comparing version 1.1.7 to 1.2.0

bin/linux/32/generate-thumbnail

36

lib/api/get-window-size.js

@@ -36,3 +36,3 @@ 'use strict';

getWindowSizeArgs = [windowDescription.hwnd];
context$1$0.next = 12;
context$1$0.next = 16;
break;

@@ -47,24 +47,34 @@

getWindowSizeArgs = [windowDescription.windowId, windowDescription.bundleId];
context$1$0.next = 12;
context$1$0.next = 16;
break;
case 11:
if (!_osFamily2.default.linux) {
context$1$0.next = 15;
break;
}
getWindowSizeArgs = [windowDescription.windowId];
context$1$0.next = 16;
break;
case 15:
return context$1$0.abrupt('return', null);
case 12:
context$1$0.prev = 12;
context$1$0.next = 15;
case 16:
context$1$0.prev = 16;
context$1$0.next = 19;
return _regeneratorRuntime.awrap(_utilsExec.execFile(_binaries2.default.getWindowSize, getWindowSizeArgs));
case 15:
case 19:
res = context$1$0.sent;
context$1$0.next = 21;
context$1$0.next = 25;
break;
case 18:
context$1$0.prev = 18;
context$1$0.t0 = context$1$0['catch'](12);
case 22:
context$1$0.prev = 22;
context$1$0.t0 = context$1$0['catch'](16);
return context$1$0.abrupt('return', null);
case 21:
case 25:

@@ -75,9 +85,9 @@ windowParams = res.split(_os.EOL);

case 23:
case 27:
case 'end':
return context$1$0.stop();
}
}, null, this, [[12, 18]]);
}, null, this, [[16, 22]]);
};
module.exports = exports.default;

@@ -58,13 +58,23 @@ 'use strict';

commandArguments = [windowDescription.hwnd];
context$1$0.next = 11;
context$1$0.next = 15;
break;
case 10:
if (!_osFamily2.default.linux) {
context$1$0.next = 14;
break;
}
commandArguments = [windowDescription.windowId];
context$1$0.next = 15;
break;
case 14:
return context$1$0.abrupt('return');
case 11:
context$1$0.next = 13;
case 15:
context$1$0.next = 17;
return _regeneratorRuntime.awrap(_utilsExec.execFile(_binaries2.default.maximize, commandArguments));
case 13:
case 17:
case 'end':

@@ -71,0 +81,0 @@ return context$1$0.stop();

@@ -76,3 +76,3 @@ 'use strict';

resizeArguments = [windowDescription.hwnd];
context$1$0.next = 15;
context$1$0.next = 19;
break;

@@ -87,19 +87,29 @@

resizeArguments = [windowDescription.windowId, windowDescription.bundleId];
context$1$0.next = 15;
context$1$0.next = 19;
break;
case 14:
if (!_osFamily2.default.linux) {
context$1$0.next = 18;
break;
}
resizeArguments = [windowDescription.windowId];
context$1$0.next = 19;
break;
case 18:
return context$1$0.abrupt('return');
case 15:
case 19:
currentClientAreaSize = { width: currentWidth, height: currentHeight };
requestedSize = { width: width, height: height };
context$1$0.next = 19;
context$1$0.next = 23;
return _regeneratorRuntime.awrap(_getWindowSize2.default(windowDescription));
case 19:
case 23:
currentWindowSize = context$1$0.sent;
if (currentWindowSize) {
context$1$0.next = 22;
context$1$0.next = 26;
break;

@@ -110,3 +120,3 @@ }

case 22:
case 26:
correctedSize = getCorrectedSize(currentClientAreaSize, currentWindowSize, requestedSize);

@@ -116,6 +126,6 @@

context$1$0.next = 26;
context$1$0.next = 30;
return _regeneratorRuntime.awrap(_utilsExec.execFile(_binaries2.default.resize, resizeArguments));
case 26:
case 30:
case 'end':

@@ -122,0 +132,0 @@ return context$1$0.stop();

@@ -51,3 +51,3 @@ 'use strict';

if (!_osFamily2.default.win) {
if (!(_osFamily2.default.win || _osFamily2.default.linux)) {
context$1$0.next = 12;

@@ -72,3 +72,3 @@ break;

windowDescription = [windowParams.hwnd, windowParams.browser];
if (_osFamily2.default.win) windowDescription = [windowParams.hwnd, windowParams.browser];else windowDescription = [windowParams.windowId];
context$1$0.next = 17;

@@ -75,0 +75,0 @@ break;

@@ -42,3 +42,8 @@ 'use strict';

findWindow: _readFileRelative.toAbsPath('../bin/linux/find-window.sh'),
close: _readFileRelative.toAbsPath('../bin/linux/' + _utilsArch2.default.bits + '/close')
close: _readFileRelative.toAbsPath('../bin/linux/' + _utilsArch2.default.bits + '/close'),
getWindowSize: _readFileRelative.toAbsPath('../bin/linux/' + _utilsArch2.default.bits + '/get-window-size'),
resize: _readFileRelative.toAbsPath('../bin/linux/' + _utilsArch2.default.bits + '/resize'),
maximize: _readFileRelative.toAbsPath('../bin/linux/' + _utilsArch2.default.bits + '/maximize'),
screenshot: _readFileRelative.toAbsPath('../bin/linux/' + _utilsArch2.default.bits + '/screenshot'),
generateThumbnail: _readFileRelative.toAbsPath('../bin/linux/' + _utilsArch2.default.bits + '/generate-thumbnail')
};

@@ -45,0 +50,0 @@ } else BINARIES = {};

{
"name": "testcafe-browser-tools",
"version": "1.1.7",
"version": "1.2.0",
"description": "An utility library for performing platform-dependent actions on browsers.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/DevExpress/testcafe-browser-tools",

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