Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@applitools/execution-grid-tunnel

Package Overview
Dependencies
Maintainers
34
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/execution-grid-tunnel - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

src/utils/ClientError.js

2

package.json
{
"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
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc