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

@applitools/test-server

Package Overview
Dependencies
Maintainers
30
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/test-server - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

src/middlewares/webdriver-middleware.js

1

index.js
exports.testServer = require('./src/test-server')
exports.testServerInProcess = require('./src/test-server-in-process')
exports.testProxyServer = require('./src/proxy-server')

3

package.json
{
"name": "@applitools/test-server",
"version": "1.1.1",
"version": "1.1.2",
"homepage": "https://github.com/applitools/eyes.sdk.javascript1#readme",

@@ -36,2 +36,3 @@ "bugs": {

"@applitools/utils": "1.3.8",
"body-parser": "1.20.0",
"chalk": "3.0.0",

@@ -38,0 +39,0 @@ "cookie-parser": "1.4.5",

const http = require('http')
const net = require('net')
const httpProxy = require('http-proxy')
const {promisify} = require('util')
function startProxyServer(port = 12345) {
function startProxyServer({port = 0} = {}) {
const proxy = httpProxy.createServer()

@@ -34,4 +33,5 @@

server.listen(port, () => {
const port = server.address().port
console.log('[proxy server] listening on port', port)
const close = promisify(server.close.bind(server))
const close = server.close.bind(server)
resolve({port, close})

@@ -38,0 +38,0 @@ })

@@ -77,2 +77,3 @@ 'use strict'

} else {
const port = server.address().port
const close = server.close.bind(server)

@@ -89,6 +90,6 @@ log(`test server running at port: ${port}`)

} else {
const serverPort = server.address().port
const port = server.address().port
const close = server.close.bind(server)
log(`test server running at port: ${serverPort}`)
resolve({port: serverPort, close})
log(`test server running at port: ${port}`)
resolve({port: port, close})
}

@@ -95,0 +96,0 @@ })

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