@applitools/execution-grid-client
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -7,30 +7,36 @@ #!/usr/bin/env node | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.handler = exports.builder = void 0; | ||
const yargs_1 = __importDefault(require("yargs")); | ||
const proxy_server_1 = require("./proxy-server"); | ||
yargs_1.default | ||
const builder = yargs => yargs | ||
.example([ | ||
['$ eg-client', 'Run Eyes Universal server on random port'], | ||
['$ eg-client --port 8080', 'Run Eyes Universal server on port 8080'], | ||
['eg-client', 'Run EG client server on random port'], | ||
['eg-client --port 8080', 'Run EG client server on port 8080'], | ||
]) | ||
.command({ | ||
command: '*', | ||
builder: yargs => yargs.options({ | ||
port: { | ||
description: 'run server on a specific port.', | ||
alias: 'p', | ||
type: 'number', | ||
}, | ||
serverUrl: { | ||
description: 'run server with specific default eyes server url.', | ||
type: 'number', | ||
}, | ||
apiKey: { | ||
description: 'run server with specific default api key.', | ||
type: 'number', | ||
}, | ||
}), | ||
handler: async (args) => { | ||
const proxy = await (0, proxy_server_1.makeServer)(args); | ||
console.log(proxy.url); | ||
.options({ | ||
port: { | ||
description: 'run server on a specific port.', | ||
alias: 'p', | ||
type: 'number', | ||
}, | ||
}).argv; | ||
serverUrl: { | ||
description: 'run server with specific default eyes server url.', | ||
type: 'number', | ||
}, | ||
apiKey: { | ||
description: 'run server with specific default api key.', | ||
type: 'number', | ||
}, | ||
tunnelUrl: { | ||
description: 'run server with specific default tunnel url.', | ||
}, | ||
}); | ||
exports.builder = builder; | ||
const handler = async (args) => { | ||
const proxy = await (0, proxy_server_1.makeServer)(args); | ||
console.log(proxy.url); | ||
}; | ||
exports.handler = handler; | ||
if (require.main === module) { | ||
yargs_1.default.command({ command: '*', builder: exports.builder, handler: exports.handler }).argv; | ||
} |
@@ -13,6 +13,20 @@ "use strict"; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.cli = void 0; | ||
__exportStar(require("./proxy-server"), exports); | ||
exports.cli = __importStar(require("./cli")); |
@@ -102,2 +102,4 @@ "use strict"; | ||
'applitools:x-tunnel-id-0': session.tunnelId, | ||
'applitools:timeout': process.env.APPLITOOLS_EG_TIMEOUT, | ||
'applitools:inactivityTimeout': process.env.APPLITOOLS_EG_INACTIVITY_TIMEOUT, | ||
}; | ||
@@ -104,0 +106,0 @@ if (((_p = requestBody.capabilities) === null || _p === void 0 ? void 0 : _p.alwaysMatch) || ((_q = requestBody.capabilities) === null || _q === void 0 ? void 0 : _q.firstMatch)) { |
{ | ||
"name": "@applitools/execution-grid-client", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "", | ||
@@ -20,5 +20,16 @@ "license": "SEE LICENSE IN LICENSE", | ||
}, | ||
"./cli": { | ||
"default": "./dist/cli.js", | ||
"types": "./types/cli.d.ts" | ||
}, | ||
"./dist/*": "./dist/*.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"cli": [ | ||
"./types/cli.d.ts" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
@@ -43,4 +54,4 @@ "dist", | ||
"dependencies": { | ||
"@applitools/logger": "1.1.2", | ||
"@applitools/utils": "1.2.14", | ||
"@applitools/logger": "1.1.3", | ||
"@applitools/utils": "1.3.0", | ||
"http-proxy": "1.18.1", | ||
@@ -53,3 +64,2 @@ "node-fetch": "2.6.7", | ||
"@applitools/bongo": "^2.0.3", | ||
"@applitools/eg-demo": "^1.0.2", | ||
"@types/http-proxy": "^1.17.8", | ||
@@ -56,0 +66,0 @@ "@types/mocha": "^9.1.1", |
#!/usr/bin/env node | ||
export {}; | ||
import { type CommandBuilder, type ArgumentsCamelCase } from 'yargs'; | ||
import { type ServerOptions } from './proxy-server'; | ||
export declare const builder: CommandBuilder<ServerOptions>; | ||
export declare const handler: (args: ArgumentsCamelCase<ServerOptions>) => Promise<void>; |
export * from './proxy-server'; | ||
export * as cli from './cli'; |
/// <reference types="node" /> | ||
import { type Server } from 'http'; | ||
import { type Logger } from '@applitools/logger'; | ||
export declare type ProxyServerOptions = { | ||
export declare type ServerOptions = { | ||
port?: number; | ||
@@ -12,3 +12,3 @@ forwardingUrl?: string; | ||
}; | ||
export declare function makeServer({ port, forwardingUrl, tunnelUrl, serverUrl, apiKey, logger, }?: ProxyServerOptions): Promise<{ | ||
export declare function makeServer({ port, forwardingUrl, tunnelUrl, serverUrl, apiKey, logger, }?: ServerOptions): Promise<{ | ||
url: string; | ||
@@ -15,0 +15,0 @@ port: number; |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
35778
21
383
6
+ Added@applitools/logger@1.1.3(transitive)
+ Added@applitools/utils@1.3.0(transitive)
- Removed@applitools/logger@1.1.2(transitive)
- Removed@applitools/utils@1.2.14(transitive)
Updated@applitools/logger@1.1.3
Updated@applitools/utils@1.3.0