@bazel/protractor
Advanced tools
Comparing version 0.36.2 to 0.37.0
@@ -5,3 +5,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "0.36.2", | ||
"version": "0.37.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type" : "git", |
@@ -17,4 +17,9 @@ /** | ||
*/ | ||
const DEBUG = false; | ||
const path = require('path'); | ||
function log_verbose(...m) { | ||
// This is a template file so we use __filename to output the actual filename | ||
if (!!process.env['VERBOSE_LOGS']) console.error(`[${path.basename(__filename)}]`, ...m); | ||
} | ||
const configPath = 'TMPL_config'; | ||
@@ -25,4 +30,3 @@ const onPreparePath = 'TMPL_on_prepare'; | ||
if (DEBUG) | ||
console.info(`Protractor test starting with: | ||
log_verbose(`running with | ||
cwd: ${process.cwd()} | ||
@@ -82,3 +86,3 @@ configPath: ${configPath} | ||
conf = baseConf.config; | ||
if (DEBUG) console.info(`Base protractor configuration: ${JSON.stringify(conf, null, 2)}`); | ||
log_verbose(`base protractor configuration: ${JSON.stringify(conf, null, 2)}`); | ||
} | ||
@@ -115,3 +119,3 @@ | ||
const webTestMetadata = require(process.env['WEB_TEST_METADATA']); | ||
if (DEBUG) console.info(`WEB_TEST_METADATA: ${JSON.stringify(webTestMetadata, null, 2)}`); | ||
log_verbose(`WEB_TEST_METADATA: ${JSON.stringify(webTestMetadata, null, 2)}`); | ||
if (webTestMetadata['environment'] === 'sauce') { | ||
@@ -190,4 +194,4 @@ // If a sauce labs browser is chosen for the test such as | ||
// Export the complete protractor configuration | ||
if (DEBUG) console.info(`Protractor configuration: ${JSON.stringify(conf, null, 2)}`); | ||
log_verbose(`protractor configuration: ${JSON.stringify(conf, null, 2)}`); | ||
exports.config = conf; |
Sorry, the diff of this file is not supported yet
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
59244
331
11