@applitools/eyes.cypress
Advanced tools
Comparing version 1.5.11 to 1.5.12
{ | ||
"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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
7
10
0
6
25558
24
428
+ Added@applitools/functional-commons@1.6.0(transitive)
+ Added@applitools/rendering-grid-client@1.1.14(transitive)
+ Addedlodash.mapkeys@4.6.0(transitive)
+ Addedlodash.mapvalues@4.6.0(transitive)
+ Addedthroat@4.1.0(transitive)
- Removed@applitools/eyes.sdk.core@^1.7.0
- Removedcssom@git+https://github.com/amitzur/CSSOM.git#925260ff2c8f8387cf76df4d5776a06044a644c8
- Removedhe@^1.1.1
- Removedmkdirp@^0.5.1
- Removednode-fetch@^2.1.2