testcafe-browser-provider-browserstack
Advanced tools
Comparing version 1.15.1 to 1.15.2
@@ -10,3 +10,4 @@ "use strict"; | ||
module.exports = class BrowserProxy { | ||
constructor(targetHost, targetPort, { proxyPort, responseDelay } = {}) { | ||
constructor(targetHost, targetPort, { targetProtocol, proxyPort, responseDelay } = {}) { | ||
this.targetProtocol = targetProtocol || 'http'; | ||
this.targetHost = targetHost; | ||
@@ -22,3 +23,3 @@ this.targetPort = targetPort; | ||
const parsedRequestUrl = (0, url_1.parse)(req.url); | ||
const destinationUrl = 'http://' + this.targetHost + ':' + this.targetPort + parsedRequestUrl.path; | ||
const destinationUrl = this.targetProtocol + '//' + this.targetHost + ':' + this.targetPort + parsedRequestUrl.path; | ||
res.statusCode = 302; | ||
@@ -45,2 +46,2 @@ res.setHeader('location', destinationUrl); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci1wcm94eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9icm93c2VyLXByb3h5LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsZ0RBQXdCO0FBQ3hCLDZCQUF3QztBQUN4QyxvREFBNkI7QUFHN0IsTUFBTSxDQUFDLE9BQU8sR0FBRyxNQUFNLFlBQVk7SUFDL0IsWUFBYSxVQUFVLEVBQUUsVUFBVSxFQUFFLEVBQUUsU0FBUyxFQUFFLGFBQWEsRUFBRSxHQUFHLEVBQUU7UUFDbEUsSUFBSSxDQUFDLFVBQVUsR0FBTSxVQUFVLENBQUM7UUFDaEMsSUFBSSxDQUFDLFVBQVUsR0FBTSxVQUFVLENBQUM7UUFDaEMsSUFBSSxDQUFDLFNBQVMsR0FBTyxTQUFTLElBQUksQ0FBQyxDQUFDO1FBQ3BDLElBQUksQ0FBQyxhQUFhLEdBQUcsYUFBYSxJQUFJLENBQUMsQ0FBQztRQUV4QyxJQUFJLENBQ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XQgPT4gc29ja2V0LnVucmVmKCkpO1xuICAgIH1cblxuICAgIF9vbkJyb3dzZXJSZXF1ZXN0IChyZXEsIHJlcykge1xuICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IHBhcnNlZFJlcXVlc3RVcmwgPSBwYXJzZVVybChyZXEudXJsKTtcbiAgICAgICAgICAgIGNvbnN0IGRlc3RpbmF0aW9uVXJsICAgPSAnaHR0cDovLycgKyB0aGlzLnRhcmdldEhvc3QgKyAnOicgKyB0aGlzLnRhcmdldFBvcnQgKyBwYXJzZWRSZXF1ZXN0VXJsLnBhdGg7XG5cbiAgICAgICAgICAgIHJlcy5zdGF0dXNDb2RlID0gMzAyO1xuXG4gICAgICAgICAgICByZXMuc2V0SGVhZGVyKCdsb2NhdGlvbicsIGRlc3RpbmF0aW9uVXJsKTtcbiAgICAgICAgICAgIHJlcy5lbmQoKTtcbiAgICAgICAgfSwgdGhpcy5yZXNwb25zZURlbGF5KTtcbiAgICB9XG5cbiAgICBhc3luYyBpbml0ICgpIHtcbiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgICAgICAgIHRoaXMuc2VydmVyLmxpc3Rlbih0aGlzLnByb3h5UG9ydCwgZXJyID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoZXJyKVxuICAgICAgICAgICAgICAgICAgICByZWplY3QoZXJyKTtcbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wcm94eVBvcnQgPSB0aGlzLnNlcnZlci5hZGRyZXNzKCkucG9ydDtcblxuICAgICAgICAgICAgICAgICAgICByZXNvbHZlKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGRpc3Bvc2UgKCkge1xuICAgICAgICB0aGlzLnNlcnZlci5jbG9zZSgpO1xuICAgIH1c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mF0aW9uVXJsICAgPSB0aGlzLnRhcmdldFByb3RvY29sICsgJy8vJyArIHRoaXMudGFyZ2V0SG9zdCArICc6JyArIHRoaXMudGFyZ2V0UG9ydCArIHBhcnNlZFJlcXVlc3RVcmwucGF0aDtcblxuICAgICAgICAgICAgcmVzLnN0YXR1c0NvZGUgPSAzMDI7XG5cbiAgICAgICAgICAgIHJlcy5zZXRIZWFkZXIoJ2xvY2F0aW9uJywgZGVzdGluYXRpb25VcmwpO1xuICAgICAgICAgICAgcmVzLmVuZCgpO1xuICAgICAgICB9LCB0aGlzLnJlc3BvbnNlRGVsYXkpO1xuICAgIH1cblxuICAgIGFzeW5jIGluaXQgKCkge1xuICAgICAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgICAgICAgdGhpcy5zZXJ2ZXIubGlzdGVuKHRoaXMucHJveHlQb3J0LCBlcnIgPT4ge1xuICAgICAgICAgICAgICAgIGlmIChlcnIpXG4gICAgICAgICAgICAgICAgICAgIHJlamVjdChlcnIpO1xuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnByb3h5UG9ydCA9IHRoaXMuc2VydmVyLmFkZHJlc3MoKS5wb3J0O1xuXG4gICAgICAgICAgICAgICAgICAgIHJlc29sdmUoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgZGlzcG9zZSAoKSB7XG4gICAgICAgIHRoaXMuc2VydmVyLmNsb3NlKCk7XG4gICAgfVxufTtcbiJdfQ== |
@@ -56,7 +56,7 @@ "use strict"; | ||
}, | ||
_getBrowserProxy(host, port) { | ||
_getBrowserProxy(protocol, host, port) { | ||
this.browserProxyPromise = this.browserProxyPromise | ||
.then(async (browserProxy) => { | ||
if (!browserProxy) { | ||
browserProxy = new browser_proxy_1.default(host, port, { responseDelay: ANDROID_PROXY_RESPONSE_DELAY }); | ||
browserProxy = new browser_proxy_1.default(host, port, { targetProtocol: protocol, responseDelay: ANDROID_PROXY_RESPONSE_DELAY }); | ||
await browserProxy.init(); | ||
@@ -196,3 +196,3 @@ } | ||
const parsedPageUrl = (0, url_1.parse)(pageUrl); | ||
const browserProxy = await this._getBrowserProxy(parsedPageUrl.hostname, parsedPageUrl.port); | ||
const browserProxy = await this._getBrowserProxy(parsedPageUrl.protocol, parsedPageUrl.hostname, parsedPageUrl.port); | ||
pageUrl = 'http://' + browserProxy.targetHost + ':' + browserProxy.proxyPort + parsedPageUrl.path; | ||
@@ -248,2 +248,2 @@ } | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw2QkFBd0M7QUFDeEMsb0RBQTZCO0FBQzdCLCtCQUFpQztBQUNqQyxnRkFBcUQ7QUFDckQsbUNBQWdDO0FBQ2hDLDREQUFnRDtBQUNoRCx1RUFBcUQ7QUFDckQsbUVBQWtEO0FBQ2xELG9FQUEyQztBQUMzQyw4RUFBbUQ7QUFDbkQsc0RBQXlCO0FBRXpCLE1BQU0sNEJBQTRCLEdBQUcsR0FBRyxDQUFDO0FBRXpDLE1BQU0saUJBQWlCLEdBQUcsR0FBRyxFQUFFLENBQUMsSUFBQSx5QkFBWSxFQUFDLDJCQUEyQixDQUFDLENBQUM7QUFDMUUsTUFBTSxjQUFjLEdBQU0sR0FBRyxFQUFFLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsNkJBQTZCLElBQUksQ0FBQyxJQUFBLHlCQUFZLEVBQUMsdUJBQXVCLENBQUMsQ0FBQztBQUV0SCxTQUFTLFlBQVk7SUFDakIsTUFBTSxTQUFTLEdBQUcsTUFBTSxDQUFDLElBQUksQ0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AgICAgY29ubmVjdG9yID0gbmV3IEJyb3dzZXJzdGFja0Nvbm5lY3Rvcihwcm9jZXNzLmVudlsnQlJPV1NFUlNUQUNLX0FDQ0VTU19LRVknXSk7XG5cbiAgICAgICAgICAgICAgICAgICAgYXdhaXQgY29ubmVjdG9yLmNyZWF0ZSgpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHJldHVybiBjb25uZWN0b3I7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcy5jb25uZWN0b3JQcm9taXNlO1xuICAgIH0sXG5cbiAgICBfZGlzcG9zZUNvbm5lY3RvciAoKSB7XG4gICAgICAgIHRoaXMuY29ubmVjdG9yUHJvbWlzZSA9IHRoaXMuY29ubmVjdG9yUHJvbWlzZVxuICAgICAgICAgICAgLnRoZW4oYXN5bmMgY29ubmVjdG9yID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoY29ubmVjdG9yKVxuICAgICAgICAgICAgICAgICAgICBhd2FpdCBjb25uZWN0b3IuZGVzdHJveSgpO1xuXG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcy5jb25uZWN0b3JQcm9taXNlO1xuICAgIH0sXG5cbiAgICBfZ2V0QnJvd3NlclByb3h5IChob3N0LCBwb3J0KSB7XG4gICAgICAgIHRoaXMuYnJvd3NlclByb3h5UHJvbWlzZSA9IHRoaXMuYnJvd3NlclByb3h5UHJvbWlzZVxuICAgICAgICAgICAgLnRoZW4oYXN5bmMgYnJvd3NlclByb3h5ID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoIWJyb3dzZXJQcm94eSkge1xuICAgICAgICAgICAgICAgICAgICBicm93c2VyUHJveHkgPSBuZXcgQnJvd3NlclByb3h5KGhvc3QsIHBvcnQsIHsgcmVzcG9uc2VEZWxheTogQU5EUk9JRF9QUk9YWV9SRVNQT05TRV9ERUxBWSB9KTtcblxuICAgICAgICAgICAgICAgICAgICBhd2FpdCBicm93c2VyUHJveHkuaW5pdCgpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHJldHVybiBicm93c2VyUHJveHk7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcy5icm93c2VyUHJveHlQcm9taXNlO1xuICAgIH0sXG5cbiAgICBfZGlzcG9zZUJyb3dzZXJQcm94eSAoKSB7XG4gICAgICAgIHRoaXMuYnJvd3NlclByb3h5UHJvbWlzZSA9IHRoaXMuYnJvd3NlclByb3h5UHJvbWlzZVxuICAgICAgICAgICAgLnRoZW4oYXN5bmMgYnJvd3NlclByb3h5ID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoYnJvd3NlclByb3h5KVxuICAgICAgICAgICAgICAgICAgICBhd2FpdCBicm93c2VyUHJveHkuZGlzcG9zZSgpO1xuXG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcy5icm93c2VyUHJveHlQcm9taXNlO1xuICAgIH0sXG5cbiAgICBhc3luYyBfZ2V0RGV2aWNlTGlzdCAoKSB7XG4gICAgICAgIHRoaXMucGxhdGZvcm1zSW5mbyA9IGF3YWl0IHRoaXMuYmFja2VuZC5nZXRCcm93c2Vyc0xpc3QoKTtcbiAgICB9LFxuXG4gICAgX2NyZWF0ZVF1ZXJ5IChjYXBhYmlsaXRpZXMpIHtcbiAgICAgICAgdmFyIHsgYnJvd3Nlck5hbWUsIGJyb3dzZXJWZXJzaW9uLCBwbGF0Zm9ybSB9ID0gcGFyc2VDYXBhYmlsaXRpZXMoY2FwYWJpbGl0aWVzKVswXTtcblxuICAgICAgICBicm93c2VyTmFtZSA9IGJyb3dzZXJOYW1lLnRvTG93ZXJDYXNlKCk7XG5cbiAgICAgICAgaWYgKGJyb3dzZXJOYW1lID09PSAnaW50ZXJuZXQgZXhwbG9yZXInKVxuICAgICAgICAgICAg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bJ2RldmljZSddICYmIGluZm9bJ2RldmljZSddLnRvTG93ZXJDYXNlKCkgPT09IHF1ZXJ5Lm5hbWU7XG5cbiAgICAgICAgICAgICAgICB2YXIgYnJvd3NlclZlcnNpb25NYXRjaGVkICA9IGluZm9bJ2Jyb3dzZXJfdmVyc2lvbiddICYmIFN0cmluZyhpbmZvWydicm93c2VyX3ZlcnNpb24nXSkgPT09IFN0cmluZyhxdWVyeS52ZXJzaW9uKTtcbiAgICAgICAgICAgICAgICB2YXIgcGxhdGZvcm1WZXJzaW9uTWF0Y2hlZCA9IGluZm9bJ29zX3ZlcnNpb24nXSAmJiBTdHJpbmcoaW5mb1snb3NfdmVyc2lvbiddKS50b0xvd2VyQ2FzZSgpID09PSBTdHJpbmcocXVlcnkudmVyc2lvbik7XG4gICAgICAgICAgICAgICAgdmFyIHBsYXRmb3JtTmFtZU1hdGNoZWQgICAgPSBpbmZvWydvcyddLnRvTG93ZXJDYXNlKCkgPT09IHF1ZXJ5LnBsYXRmb3JtIHx8XG4gICAgICAgICAgICAgICAgICAgIGAke2luZm9bJ29zJ10udG9Mb3dlckNhc2UoKX0gJHtpbmZvWydvc192ZXJzaW9uJ10udG9Mb3dlckNhc2UoKX1gID09PSBxdWVyeS5wbGF0Zm9ybTtcblxuICAgICAgICAgICAgICAgIHZhciBpc0FueVZlcnNpb24gID0gcXVlcnkudmVyc2lvbiA9PT0gJ2FueSc7XG4gICAgICAgICAgICAgICAgdmFyIGlzQW55UGxhdGZvcm0gPSBxdWVyeS5wbGF0Zm9ybSA9PT0gJ2FueSc7XG5cbiAgICAgICAgICAgICAgICB2YXIgZGVza3RvcEJyb3dzZXJNYXRjaGVkID0gYnJvd3Nlck5hbWVNYXRjaGVkICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChicm93c2VyVmVyc2lvbk1hdGNoZWQgfHwgaXNBbnlWZXJzaW9uKSAmJlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAocGxhdGZvcm1OYW1lTWF0Y2hlZCB8fCBpc0FueVBsYXRmb3JtKTtcblxuICAgICAgICAgICAgICAgIHZhciBtb2JpbGVCcm93c2VyTWF0Y2hlZCA9IGRldmljZU5hbWVNYXRjaGVkICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHBsYXRmb3JtVmVyc2lvbk1hdGNoZWQgfHwgaXNBbnlWZXJzaW9uKTtcblxuICAgICAgICAgICAgICAgIHJldHVybiBkZXNrdG9wQnJvd3Nlck1hdGNoZWQgfHwgbW9iaWxlQnJvd3Nlck1hdGNoZWQ7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICBpZiAoZmlsdGVyZWRQbGF0Zm9ybUluZm8ubGVuZ3RoICYmIHF1ZXJ5LnZlcnNpb24gPT09ICdhbnknKSB7XG4gICAgICAgICAgICBmaWx0ZXJlZFBsYXRmb3JtSW5mbyA9IGZpbHRlcmVkUGxhdGZvcm1JbmZvLmZpbHRlcihpbmZvID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBicm93c2VyVmVyc2lvbiA9IGluZm9bJ2Jyb3dzZXJfdmVyc2lvbiddIHx8ICcnO1xuXG4gICAgICAgICAgICAgICAgcmV0dXJuICFicm93c2VyVmVyc2lvbi5pbmNsdWRlcygnYmV0YScpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gZmlsdGVyZWRQbGF0Zm9ybUluZm87XG4gICAgfSxcblxuICAgIF9nZW5lcmF0ZUJyb3dzZXJOYW1lcyAoKSB7XG4gICAgICAgIHRoaXMuYnJvd3Nlck5hbWVzID0gdGhpcy5wbGF0Zm9ybXNJbmZvXG4gICAgICAgICAgICAubWFwKGluZm8gPT4ge1xuICAgICAgICAgICAgICAgIHZhciBpc0Rlc2t0b3AgPSAhaW5mb1snZGV2aWNlJ107XG4gICAgICAgICAgICAgICAgdmFyIG5hbWUgICAgICA9IGlzRG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lczogIFtdLFxuXG4gICAgX2NyZWF0ZUNvbm5lY3RvciAoKSB7XG4gICAgICAgIHRoaXMuY29ubmVjdG9yUHJvbWlzZSA9IHRoaXMuY29ubmVjdG9yUHJvbWlzZVxuICAgICAgICAgICAgLnRoZW4oYXN5bmMgY29ubmVjdG9yID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoIWNvbm5lY3Rvcikge1xuICAgICAgICAgICAgICAgICAgICBjb25uZWN0b3IgPSBuZXcgQnJvd3NlcnN0YWNrQ29ubmVjdG9yKHByb2Nlc3MuZW52WydCUk9XU0VSU1RBQ0tfQUNDRVNTX0tFWSddKTtcblxuICAgICAgICAgICAgICAgICAgICBhd2FpdCBjb25uZWN0b3IuY3JlYXRlKCk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIGNvbm5lY3RvcjtcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiB0aGlzLmNvbm5lY3RvclByb21pc2U7XG4gICAgfSxcblxuICAgIF9kaXNwb3NlQ29ubmVjdG9yICgpIHtcbiAgICAgICAgdGhpcy5jb25uZWN0b3JQcm9taXNlID0gdGhpcy5jb25uZWN0b3JQcm9taXNlXG4gICAgICAgICAgICAudGhlbihhc3luYyBjb25uZWN0b3IgPT4ge1xuICAgICAgICAgICAgICAgIGlmIChjb25uZWN0b3IpXG4gICAgICAgICAgICAgICAgICAgIGF3YWl0IGNvbm5lY3Rvci5kZXN0cm95KCk7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiB0aGlzLmNvbm5lY3RvclByb21pc2U7XG4gICAgfSxcblxuICAgIF9nZXRCcm93c2VyUHJveHkgKHByb3RvY29sLCBob3N0LCBwb3J0KSB7XG4gICAgICAgIHRoaXMuYnJvd3NlclByb3h5UHJvbWlzZSA9IHRoaXMuYnJvd3NlclByb3h5UHJvbWlzZVxuICAgICAgICAgICAgLnRoZW4oYXN5bmMgYnJvd3NlclByb3h5ID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoIWJyb3dzZXJQcm94eSkge1xuICAgICAgICAgICAgICAgICAgICBicm93c2VyUHJveHkgPSBuZXcgQnJvd3NlclByb3h5KGhvc3QsIHBvcnQsIHsgdGFyZ2V0UHJvdG9jb2w6IHByb3RvY29sLCByZXNwb25zZURlbGF5OiBBTkRST0lEX1BST1hZX1JFU1BPTlNFX0RFTEFZIH0pO1xuXG4gICAgICAgICAgICAgICAgICAgIGF3YWl0IGJyb3dzZXJQcm94eS5pbml0KCk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIGJyb3dzZXJQcm94eTtcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiB0aGlzLmJyb3dzZXJQcm94eVByb21pc2U7XG4gICAgfSxcblxuICAgIF9kaXNwb3NlQnJvd3NlclByb3h5ICgpIHtcbiAgICAgICAgdGhpcy5icm93c2VyUHJveHlQcm9taXNlID0gdGhpcy5icm93c2VyUHJveHlQcm9taXNlXG4gICAgICAgICAgICAudGhlbihhc3luYyBicm93c2VyUHJveHkgPT4ge1xuICAgICAgICAgICAgICAgIGlmIChicm93c2VyUHJveHkpXG4gICAgICAgICAgICAgICAgICAgIGF3YWl0IGJyb3dzZXJQcm94eS5kaXNwb3NlKCk7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiB0aGlzLmJyb3dzZXJQcm94eVByb21pc2U7XG4gICAgfSxcblxuICAgIGFzeW5jIF9nZXREZXZpY2VMaXN0ICgpIHtcbiAgICAgICAgdGhpcy5wbGF0Zm9ybXNJbmZvID0gYXdhaXQgdGhpcy5iYWNrZW5kLmdldEJyb3dzZXJzTGlzdCgpO1xuICAgIH0sXG5cbiAgICBfY3JlYXRlUXVlcnkgKGNhcGFiaWxpdGllcykge1xuICA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SA9IHF1ZXJ5LnBsYXRmb3JtID09PSAnYW55JztcblxuICAgICAgICAgICAgICAgIHZhciBkZXNrdG9wQnJvd3Nlck1hdGNoZWQgPSBicm93c2VyTmFtZU1hdGNoZWQgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGJyb3dzZXJWZXJzaW9uTWF0Y2hlZCB8fCBpc0FueVZlcnNpb24pICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChwbGF0Zm9ybU5hbWVNYXRjaGVkIHx8IGlzQW55UGxhdGZvcm0pO1xuXG4gICAgICAgICAgICAgICAgdmFyIG1vYmlsZUJyb3dzZXJNYXRjaGVkID0gZGV2aWNlTmFtZU1hdGNoZWQgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAocGxhdGZvcm1WZXJzaW9uTWF0Y2hlZCB8fCBpc0FueVZlcnNpb24pO1xuXG4gICAgICAgICAgICAgICAgcmV0dXJuIGRlc2t0b3BCcm93c2VyTWF0Y2hlZCB8fCBtb2JpbGVCcm93c2VyTWF0Y2hlZDtcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgIGlmIChmaWx0ZXJlZFBsYXRmb3JtSW5mby5sZW5ndGggJiYgcXVlcnkudmVyc2lvbiA9PT0gJ2FueScpIHtcbiAgICAgICAgICAgIGZpbHRlcmVkUGxhdGZvcm1JbmZvID0gZmlsdGVyZWRQbGF0Zm9ybUluZm8uZmlsdGVyKGluZm8gPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IGJyb3dzZXJWZXJzaW9uID0gaW5mb1snYnJvd3Nlcl92ZXJzaW9uJ10gfHwgJyc7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gIWJyb3dzZXJWZXJzaW9uLmluY2x1ZGVzKCdiZXRhJyk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBmaWx0ZXJlZ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mlyZWZveENhcGFiaWxpdGllcyAoY2FwYWJpbGl0aWVzKSB7XG4gICAgICAgIGlmICghcHJvY2Vzcy5lbnZbJ0JST1dTRVJTVEFDS19VU0VfQVVUT01BVEUnXSlcbiAgICAgICAgICAgIHJldHVybjtcblxuICAgICAgICBjb25zdCBGaXJlZm94UHJvZmlsZSA9IHJlcXVpcmUoJ2ZpcmVmb3gtcHJvZmlsZScpO1xuICAgICAgICBjb25zdCBwcm9maWxlICAgICAgICA9IG5ldyBGaXJlZm94UHJvZmlsZSgpO1xuXG4gICAgICAgIHByb2ZpbGUuZGVmYXVsdFByZWZlcmVuY2VzID0ge307XG5cbiAgICAgICAgcHJvZmlsZS5zZXRQcmVmZXJlbmNlKCdicm93c2VyLmhlbHBlckFwcHMubmV2ZXJBc2suc2F2ZVRvRGlzaycsIGdldE1pbWVUeXBlcygpKTtcbiAgICAgICAgcHJvZmlsZS51cGRhdGVQcmVmZXJlbmNlcygpO1xuXG4gICAgICAgIGNhcGFiaWxpdGllc1snZmlyZWZveF9wcm9maWxlJ10gPSBhd2FpdCBwcm9taXNpZnkocHJvZmlsZS5lbmNvZGVkKS5iaW5kKHByb2ZpbGUpKCk7XG4gICAgfSxcblxuICAgIGFzeW5jIF9lbmNvZGVGaXJlZm94UHJvZmlsZSAocHJvZmlsZSkge1xuICAgICAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgICAgICAgcHJvZmlsZS5lbmNvZGVkKGZ1bmN0aW9uIChlcnIsIGVuY29kZWRQcm9maWxlKSB7XG4gICAgICAgICAgICAgICAgaWYgKGVycilcbiAgICAgICAgICAgICAgICAgICAgcmVqZWN0KGVycik7XG4gICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICByZXNvbHZlKGVuY29kZWRQcm9maWxlKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICB9LFxuXG4gICAgLy8gUmVxdWlyZWQg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luYyByZXNpemVXaW5kb3cgKGlkLCB3aWR0aCwgaGVpZ2h0LCBjdXJyZW50V2lkdGgsIGN1cnJlbnRIZWlnaHQpIHtcbiAgICAgICAgYXdhaXQgdGhpcy5iYWNrZW5kLnJlc2l6ZVdpbmRvdyhpZCwgd2lkdGgsIGhlaWdodCwgY3VycmVudFdpZHRoLCBjdXJyZW50SGVpZ2h0KTtcbiAgICB9LFxuXG4gICAgYXN5bmMgbWF4aW1pemVXaW5kb3cgKGlkKSB7XG4gICAgICAgIGF3YWl0IHRoaXMuYmFja2VuZC5tYXhpbWl6ZVdpbmRvdyhpZCk7XG4gICAgfSxcblxuXG4gICAgYXN5bmMgdGFrZVNjcmVlbnNob3QgKGlkLCBzY3JlZW5zaG90UGF0aCkge1xuICAgICAgICBhd2FpdCB0aGlzLmJhY2tlbmQudGFrZVNjcmVlbnNob3QoaWQsIHNjcmVlbnNob3RQYXRoKTtcbiAgICB9LFxuXG4gICAgYXN5bmMgcmVwb3J0Sm9iUmVzdWx0IChpZCwgam9iUmVzdWx0LCBqb2JEYXRhKSB7XG4gICAgICAgIGF3YWl0IHRoaXMuYmFja2VuZC5yZXBvcnRKb2JSZXN1bHQoaWQsIGpvYlJlc3VsdCwgam9iRGF0YSwgdGhpcy5KT0JfUkVTVUxUKTtcbiAgICB9LFxuXG4gICAgYXN5bmMgZ2V0T1NJbmZvIChpZCkge1xuICAgICAgICByZXR1cm4gYXdhaXQgdGhpcy5iYWNrZW5kLmdldE9TSW5mbyhpZCk7XG4gICAgfVxufTtcbiJdfQ== |
{ | ||
"name": "testcafe-browser-provider-browserstack", | ||
"version": "1.15.1", | ||
"version": "1.15.2", | ||
"description": "Browserstack TestCafe browser provider plugin.", | ||
@@ -53,6 +53,6 @@ "repository": "https://github.com/DevExpress/testcafe-browser-provider-browserstack", | ||
"gulp-eslint": "^6.0.0", | ||
"mocha": "^7.1.1", | ||
"mocha": "^10.2.0", | ||
"publish-please": "^5.4.3", | ||
"testcafe": "^2.2.0" | ||
"testcafe": "^3.1.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
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
141613
899