@applitools/execution-grid-tunnel
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "@applitools/execution-grid-tunnel", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "scripts/run-execution-grid-tunnel.js", |
const fs = require('fs') | ||
const https = require('https') | ||
const crypto = require('crypto') | ||
const {ClientError} = require('../src/utils') | ||
@@ -39,3 +40,4 @@ module.exports = {getExpectedHash, downloadFrpc, getBinHash, getFrpcDownloadLink, getManualFrpcInstallingErrorMessage, getFrpcErrorMessage } | ||
fs.unlinkSync(frpcPath) | ||
throw new Error(getFrpcErrorMessage({url, cacheDirectoryPath, shouldUpdate})) | ||
throw new ClientError(getFrpcErrorMessage({url, cacheDirectoryPath, shouldUpdate})) | ||
} | ||
@@ -42,0 +44,0 @@ |
@@ -8,3 +8,3 @@ 'use strict' | ||
const {getCacheDirectoryPath} = require('../src/utils') | ||
const {getCacheDirectoryPath, ClientError} = require('../src/utils') | ||
const createApp = require('../src/execution-grid-tunnel') | ||
@@ -89,3 +89,5 @@ const { | ||
if (!isExpectedFrpc && !shouldInstallFrpc) throw new Error(getManualFrpcInstallingErrorMessage({platform, arch, cacheDirectoryPath, frpcPath, shouldUpdate: isFrpcExist})) | ||
if (!isExpectedFrpc && !shouldInstallFrpc) { | ||
throw new ClientError(getManualFrpcInstallingErrorMessage({platform, arch, cacheDirectoryPath, frpcPath, shouldUpdate: isFrpcExist})) | ||
} | ||
@@ -92,0 +94,0 @@ if (!isExpectedFrpc) { |
@@ -11,2 +11,3 @@ const createDirectoryIfDoesntExist = require('./create-directory-if-doesnt-exist') | ||
const {getCacheDirectoryPath} = require("./get-cache-directory-path") | ||
const ClientError = require("./ClientError") | ||
@@ -35,3 +36,4 @@ function generatePromise() { | ||
initSocks5ProxyServer, | ||
getCacheDirectoryPath | ||
getCacheDirectoryPath, | ||
ClientError | ||
} |
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
46431
31
1302