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

testcafe-browser-tools

Package Overview
Dependencies
Maintainers
7
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 2.0.25 to 2.0.26

lib/utils/logger.js

18

lib/api/open.js

@@ -12,13 +12,4 @@ "use strict";

const errors_1 = require("../errors");
const debug_1 = __importDefault(require("debug"));
const util_1 = require("util");
const LOGGER = (0, debug_1.default)('testcafe:browser-tools:open');
function log(data) {
try {
LOGGER((0, util_1.inspect)(data, { isTestCafeInspect: true, compact: false }));
}
catch (e) {
LOGGER(e.stack ? e.stack : String(e));
}
}
const logger_1 = __importDefault(require("../utils/logger"));
const logger = new logger_1.default('testcafe:browser-tools:open');
async function checkBrowserPath(browserInfo) {

@@ -76,6 +67,7 @@ if (!browserInfo.path) {

try {
log(command);
logger.log(command);
await (0, exec_1.exec)(command);
}
catch (err) {
logger.log(err);
throw new errors_1.UnableToRunBrowsersError({ path: browserInfo.path });

@@ -85,2 +77,2 @@ }

exports.default = default_1;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3Blbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvb3Blbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLGdEQUF3QjtBQUN4Qix3REFBZ0M7QUFDaEMsMERBQTJCO0FBQzNCLHdDQUFxQztBQUNyQyxxRkFBaUQ7QUFDakQsc0NBQTZFO0FBQzdFLGtEQUEwQjtBQUMxQiwrQkFBK0I7QUFFL0IsTUFBTSxNQUFNLEdBQUcsSUFBQSxlQUFLLEVBQUMsNkJBQTZCLENBQUMsQ0FBQztBQUVwRCxTQUFTLEdBQUcsQ0FBRSxJQUFJO0lBQ2QsSUFBSTtRQUNBLE1BQU0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2VVcmwpO1xuXG4gICAgdHJ5IHtcbiAgICAgICAgbG9nZ2VyLmxvZyhjb21tYW5kKTtcblxuICAgICAgICBhd2FpdCBleGVjKGNvbW1hbmQpO1xuICAgIH1cbiAgICBjYXRjaCAoZXJyKSB7XG4gICAgICAgIGxvZ2dlci5sb2coZXJyKTtcblxuICAgICAgICB0aHJvdyBuZXcgVW5hYmxlVG9SdW5Ccm93c2Vyc0Vycm9yKHsgcGF0aDogYnJvd3NlckluZm8ucGF0aCB9KTtcbiAgICB9XG59XG4iXX0=

@@ -21,2 +21,4 @@ "use strict";

const errors_1 = require("../errors");
const logger_1 = __importDefault(require("./logger"));
const logger = new logger_1.default('testcafe:browser-tools:exec');
const EXIT_CODE_REGEXP = /Exit code: (-?\d+)/;

@@ -87,3 +89,3 @@ const OPEN_PATH = '/usr/bin/open';

readPipe(pipePath),
spawnApp(pipePath, binaryPath, args)
spawnApp(pipePath, binaryPath, args),
]);

@@ -110,2 +112,3 @@ const exitCodeMatch = data.match(EXIT_CODE_REGEXP);

catch (err) {
logger.log(err);
if (err instanceof errors_1.NativeBinaryHasFailedError)

@@ -131,2 +134,2 @@ throw err;

exports.execPowershell = execPowershell;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhlYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9leGVjLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLGtFQUFzQztBQUN0Qyw0Q0FBb0I7QUFDcEIsNENBQW9CO0FBQ3BCLGdEQUF3QjtBQUN4Qiw4Q0FBc0I7QUFDdEIsa0RBQTBCO0FBQzFCLHVDQUF1RDtBQUN2RCwwREFBMkI7QUFDM0IsbUNBQWdDO0FBQ2hDLDREQUFvQztBQUNwQywyREFBbUM7QUFDbkMsOEVBQXFEO0FBQ3JELDBGQUFnRTtBQUNoRSxzQ0FBdUQ7QUF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0ZGluOiAnaWdub3JlJyB9KTtcbn1cbiJdfQ==
{
"name": "testcafe-browser-tools",
"version": "2.0.25",
"version": "2.0.26",
"description": "An utility library for performing platform-dependent actions on browsers.",

@@ -58,3 +58,4 @@ "homepage": "https://github.com/DevExpress/testcafe-browser-tools",

"test": "gulp test",
"publish-please": "publish-please"
"publish-please": "publish-please",
"prepublish": "publish-please guard"
},

@@ -61,0 +62,0 @@ "main": "./lib/index",

@@ -15,3 +15,3 @@ # testcafe-browser-tools

```
Note that the application for a particular platform must be built on a machine with the same platform.
**Important note**: The application for a particular platform must be built on a machine with the same platform. Since this package can be used on old OS version such as NodeJS 16 docker container, it is important to build binaries on the old OS version for the binaries to contain corresponding dependencies(for example glibc-2.31 for node16 docker image).

@@ -18,0 +18,0 @@ The *bin* directory contains pre-built native binaries. Consider using them if your contribution does not affect the native modules.

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

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