@bazel/protractor
Advanced tools
Comparing version 2.3.1 to 3.0.0-rc.0
@@ -5,3 +5,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "2.3.1", | ||
"version": "3.0.0-rc.0", | ||
"repository": { | ||
@@ -19,2 +19,3 @@ "type" : "git", | ||
], | ||
"main": "protractor-utils.js", | ||
"peerDependencies": { | ||
@@ -26,2 +27,2 @@ "protractor": ">=5.0.0" | ||
} | ||
} | ||
} |
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
/// <amd-module name="@bazel/protractor/protractor-utils" /> | ||
/// <amd-module name="@bazel/protractor" /> | ||
export declare function isTcpPortFree(port: number): Promise<boolean>; | ||
@@ -20,0 +20,0 @@ export declare function isTcpPortBound(port: number): Promise<boolean>; |
@@ -32,3 +32,3 @@ /** | ||
else if (typeof define === "function" && define.amd) { | ||
define("@bazel/protractor/protractor-utils", ["require", "exports", "child_process", "net"], factory); | ||
define("@bazel/protractor", ["require", "exports", "child_process", "net"], factory); | ||
} | ||
@@ -38,2 +38,3 @@ })(function (require, exports) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const runfiles = require(process.env['BAZEL_NODE_RUNFILES_HELPER']); | ||
const child_process = require("child_process"); | ||
@@ -107,3 +108,3 @@ const net = require("net"); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const serverPath = require.resolve(`${workspace}/${serverTarget}`); | ||
const serverPath = runfiles.resolve(`${workspace}/${serverTarget}`); | ||
const port = yield findFreeTcpPort(); | ||
@@ -125,2 +126,2 @@ // Start the Bazel server binary with a random free TCP port. | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdHJhY3Rvci11dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3Byb3RyYWN0b3IvcHJvdHJhY3Rvci11dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjo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V4aXRlZCB3aXRoIGFuIGVycm9yLCB3ZSB3YW50IHRvIHByb3BhZ2F0ZSB0aGUgZXJyb3IuXG4gIHNlcnZlclByb2Nlc3Mub24oJ2V4aXQnLCBleGl0Q29kZSA9PiB7XG4gICAgaWYgKGV4aXRDb2RlICE9PSAwKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoYFNlcnZlciBleGl0ZWQgd2l0aCBlcnJvciBjb2RlOiAke2V4aXRDb2RlfWApO1xuICAgIH1cbiAgfSk7XG5cbiAgLy8gV2FpdCBmb3IgdGhlIHNlcnZlciB0byBiZSBib3VuZCB0byB0aGUgZ2l2ZW4gcG9ydC5cbiAgYXdhaXQgd2FpdEZvclNlcnZlcihwb3J0LCB0aW1lb3V0KTtcblxuICByZXR1cm4ge3BvcnR9O1xufVxuIl19 |
@@ -17,2 +17,3 @@ /** | ||
*/ | ||
const runfiles = require(process.env['BAZEL_NODE_RUNFILES_HELPER']); | ||
const path = require('path'); | ||
@@ -80,3 +81,3 @@ | ||
if (configPath) { | ||
const baseConf = require(configPath); | ||
const baseConf = require(runfiles.resolve(configPath)); | ||
if (!baseConf.config) { | ||
@@ -91,3 +92,3 @@ throw new Error('Invalid base protractor configuration. Expected config to be exported.'); | ||
if (onPreparePath) { | ||
const onPrepare = require(onPreparePath); | ||
const onPrepare = require(runfiles.resolve(onPreparePath)); | ||
if (typeof onPrepare === 'function') { | ||
@@ -110,3 +111,3 @@ const original = conf.onPrepare; | ||
const specs = | ||
[TMPL_specs].map(s => require.resolve(s)).filter(s => /(\b|_)(spec|test)\.js$/.test(s)); | ||
[TMPL_specs].map(s => runfiles.resolve(s)).filter(s => /(\b|_)(spec|test)\.js$/.test(s)); | ||
@@ -119,3 +120,3 @@ setConf(conf, 'specs', specs, 'are determined by the srcs and deps attribute'); | ||
if (process.env['WEB_TEST_METADATA']) { | ||
const webTestMetadata = require(process.env['WEB_TEST_METADATA']); | ||
const webTestMetadata = require(runfiles.resolve(process.env['WEB_TEST_METADATA'])); | ||
log_verbose(`WEB_TEST_METADATA: ${JSON.stringify(webTestMetadata, null, 2)}`); | ||
@@ -131,4 +132,4 @@ if (webTestMetadata['environment'] === 'local') { | ||
if (webTestNamedFiles['CHROMIUM']) { | ||
const chromeBin = require.resolve(webTestNamedFiles['CHROMIUM']); | ||
const chromeDriver = require.resolve(webTestNamedFiles['CHROMEDRIVER']); | ||
const chromeBin = runfiles.resolve(webTestNamedFiles['CHROMIUM']); | ||
const chromeDriver = runfiles.resolve(webTestNamedFiles['CHROMEDRIVER']); | ||
@@ -155,3 +156,3 @@ // The sandbox needs to be disabled, because it causes Chrome to crash on some environments. | ||
// const firefoxBin = require.resolve(webTestNamedFiles['FIREFOX']) | ||
// const firefoxBin = runfiles.resolve(webTestNamedFiles['FIREFOX']) | ||
// const args = []; | ||
@@ -158,0 +159,0 @@ // if (headless) { |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
55076
332
2