browsermation 0.0.61 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +9 -7
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -42258,7 +42258,7 @@ var {
|
|
|
42258
42258
|
// package.json
|
|
42259
42259
|
var package_default = {
|
|
42260
42260
|
name: "browsermation",
|
|
42261
|
-
version: "0.0.
|
|
42261
|
+
version: "0.0.63",
|
|
42262
42262
|
description: "The testing platform for Playwright by Browsermation.",
|
|
42263
42263
|
main: "./dist/index.js",
|
|
42264
42264
|
types: "./dist/index.d.ts",
|
|
@@ -46649,11 +46649,11 @@ function startTunnel(tunnelProcess, options) {
|
|
|
46649
46649
|
);
|
|
46650
46650
|
process.exit(1);
|
|
46651
46651
|
}
|
|
46652
|
-
|
|
46653
|
-
|
|
46654
|
-
|
|
46652
|
+
let defaultDomain = "browsermationtunnel.com";
|
|
46653
|
+
if (options?.region === "eu") {
|
|
46654
|
+
defaultDomain = "browsermationtunnel.eu";
|
|
46655
46655
|
}
|
|
46656
|
-
const tunnelDomain = `${options.subdomain || crypto.randomUUID()}.${
|
|
46656
|
+
const tunnelDomain = `${options.subdomain || crypto.randomUUID()}.${defaultDomain}`;
|
|
46657
46657
|
tunnelProcess = (0, import_node_child_process.spawn)("ssh", [
|
|
46658
46658
|
"-o",
|
|
46659
46659
|
"StrictHostKeyChecking=no",
|
|
@@ -46661,7 +46661,7 @@ function startTunnel(tunnelProcess, options) {
|
|
|
46661
46661
|
"UserKnownHostsFile=/dev/null",
|
|
46662
46662
|
"-R",
|
|
46663
46663
|
`:80:localhost:${options.port}`,
|
|
46664
|
-
`v0@${
|
|
46664
|
+
`v0@${defaultDomain}`,
|
|
46665
46665
|
"-p",
|
|
46666
46666
|
"2200",
|
|
46667
46667
|
"http",
|
|
@@ -46670,7 +46670,9 @@ function startTunnel(tunnelProcess, options) {
|
|
|
46670
46670
|
"--custom_domain",
|
|
46671
46671
|
tunnelDomain,
|
|
46672
46672
|
"--token",
|
|
46673
|
-
process.env.BM_TUNNEL_TOKEN || ""
|
|
46673
|
+
process.env.BM_TUNNEL_TOKEN || "",
|
|
46674
|
+
"--metadatas",
|
|
46675
|
+
`apiKey=${process.env.BM_API_KEY || ""}`
|
|
46674
46676
|
]);
|
|
46675
46677
|
process.on("SIGINT", function() {
|
|
46676
46678
|
console.log("\nGracefully shutting down from SIGINT (Ctrl+C)");
|