Socket
Socket
Sign inDemoInstall

mocha-headless-chrome

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-headless-chrome - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

6

package.json
{
"name": "mocha-headless-chrome",
"version": "1.5.2",
"version": "1.5.3",
"description": "Run client-side mocha tests in the command line through headless Chrome",

@@ -11,3 +11,3 @@ "main": "runner.js",

"scripts": {
"start": "node cli -f example-page.html -o result.json"
"start": "node cli -f example-page.html -o result.json -w 801 -H 501 -r nyan"
},

@@ -32,3 +32,3 @@ "repository": {

"args": "^3.0.7",
"puppeteer": "^0.11.0"
"puppeteer": "^0.12.0"
},

@@ -35,0 +35,0 @@ "devDependencies": {

@@ -117,17 +117,15 @@ 'use strict';

function handleConsole(...args) {
// process stdout stub
let isStdout = args[0] === 'stdout:';
isStdout && (args = args.slice(1));
let msg = util.format(...args);
!isStdout && (msg += '\n');
process.stdout.write(msg);
function handleConsole({ args }) {
Promise.all(args.map(a => a.jsonValue()))
.then(args => {
// process stdout stub
let isStdout = args[0] === 'stdout:';
isStdout && (args = args.slice(1));
//
let msg = util.format(...args);
!isStdout && (msg += '\n');
process.stdout.write(msg);
});
}
function onError(err) {
console.error(err);
process.exit(1);
}
module.exports = function ({ file, reporter, timeout, width, height, args, executablePath }) {

@@ -134,0 +132,0 @@ return new Promise(resolve => {

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