@applitools/eyes.cypress
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "@applitools/eyes.cypress", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -132,3 +132,4 @@ # Eyes.Cypress | ||
| `saveDebugData` | false | Whether to save troubleshooting data. See the troubleshooting section of this doc for more info. | | ||
| `batchName` | null | Provides ability to group tests into batches. Read more about batches [here](https://applitools.com/docs/topics/working-with-test-batches/how-to-group-tests-into-batches.html). | | ||
| `batchId` | random | Provides ability to group tests into batches. Read more about batches [here](https://applitools.com/docs/topics/working-with-test-batches/how-to-group-tests-into-batches.html). | | ||
| `batchName` | null | Provide a name to the batch. | | ||
@@ -135,0 +136,0 @@ There are 3 ways to specify test configuration: |
'use strict'; | ||
const {resolve} = require('path'); | ||
const getBatch = require('./getBatch'); | ||
const configParams = require('./configParams'); | ||
const configFilename = 'eyes.json'; | ||
function toEnvVarName(camelCaseStr) { | ||
return camelCaseStr.replace(/(.)([A-Z])/g, '$1_$2').toUpperCase(); | ||
} | ||
function initConfig(configFolder) { | ||
@@ -16,5 +21,6 @@ const configPath = resolve(configFolder, configFilename); | ||
const envConfig = { | ||
apiKey: process.env.APPLITOOLS_API_KEY, | ||
}; | ||
const envConfig = {}; | ||
for (const p of configParams) { | ||
envConfig[p] = process.env[`APPLITOOLS_${toEnvVarName(p)}`]; | ||
} | ||
@@ -35,2 +41,3 @@ for (const p in envConfig) { | ||
initConfig, | ||
toEnvVarName, | ||
}; |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
44389
31
1011
237