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

@applitools/eyes.cypress

Package Overview
Dependencies
Maintainers
12
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/eyes.cypress - npm Package Compare versions

Comparing version 1.5.11 to 1.5.12

16

package.json
{
"name": "@applitools/eyes.cypress",
"version": "1.5.11",
"version": "1.5.12",
"main": "index.js",

@@ -33,13 +33,9 @@ "license": "MIT",

"dependencies": {
"@applitools/eyes.sdk.core": "^1.7.0",
"@applitools/rendering-grid-client": "^1.0.3",
"body-parser": "^1.18.2",
"cors": "^2.8.4",
"cssom": "git+https://github.com/amitzur/CSSOM.git#925260ff2c8f8387cf76df4d5776a06044a644c8",
"express": "^4.16.3",
"he": "^1.1.1",
"lodash": "^4.17.10",
"mime-types": "^2.1.18",
"mkdirp": "^0.5.1",
"morgan": "^1.9.0",
"node-fetch": "^2.1.2"
"morgan": "^1.9.0"
},

@@ -54,8 +50,6 @@ "devDependencies": {

"eslint-plugin-prettier": "^2.6.0",
"jsdom": "^11.11.0",
"mocha": "^5.2.0",
"nock": "^9.2.6",
"prettier": "^1.13.0",
"puppeteer": "^1.5.0"
"node-fetch": "^2.1.2",
"prettier": "^1.13.0"
}
}
/* global Cypress,cy,window */
'use strict';
const extractResources = require('../render-grid/browser-util/extractResources');
const domNodesToCdt = require('../render-grid/browser-util/domNodesToCdt');
const {extractResources, domNodesToCdt} = require('@applitools/rendering-grid-client/browser');
const poll = require('./poll');

@@ -6,0 +5,0 @@ const makeSend = require('./makeSend');

'use strict';
const {resolve} = require('path');
const getBatch = require('./getBatch');
const {getBatch, createLogger} = require('@applitools/rendering-grid-client');
const configParams = require('./configParams');
const log = require('./log');
const logger = createLogger();

@@ -19,3 +19,3 @@ const configFilename = 'eyes.json';

} catch (ex) {
log(`no eyes.json config file found at ${configPath}`);
logger.log(`no eyes.json config file found at ${configPath}`);
}

@@ -37,3 +37,3 @@

const ret = Object.assign({}, priorConfig, config);
log(`running with config: ${JSON.stringify(ret)}`);
logger.log(`running with config: ${JSON.stringify(ret)}`);
return ret;

@@ -40,0 +40,0 @@ };

@@ -6,8 +6,8 @@ 'use strict';

const cors = require('cors');
const log = require('./log');
const {promisify: p} = require('util');
const makeHandlers = require('./handlers');
const psetTimeout = p(setTimeout);
const openEyes = require('../../render-grid/sdk/openEyes');
const {openEyes, createLogger} = require('@applitools/rendering-grid-client');
const handlers = makeHandlers(openEyes);
const logger = createLogger();

@@ -25,3 +25,3 @@ let eyesPort = require('./defaultPort');

log(`getEyesPort port=${port}`);
logger.log(`getEyesPort port=${port}`);
return port;

@@ -54,3 +54,3 @@ }

app.post('/eyes/:command', express.json({limit: '100mb'}), async (req, res) => {
log(`eyes api: ${req.params.command}`, Object.keys(req.body));
logger.log(`eyes api: ${req.params.command}`, Object.keys(req.body));
try {

@@ -61,3 +61,3 @@ const result = await handlers[req.params.command](req.body);

} catch (ex) {
log('error in eyes api:', ex);
logger.log('error in eyes api:', ex);
res.status(200).send({success: false, error: ex.message});

@@ -69,5 +69,5 @@ }

Promise.resolve().then(() => {
log(`starting plugin at port ${eyesPort}`);
logger.log(`starting plugin at port ${eyesPort}`);
server = app.listen(eyesPort, () => {
log(`server running at port: ${server.address().port}`);
logger.log(`server running at port: ${server.address().port}`);
});

@@ -74,0 +74,0 @@ });

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