browsermation 0.0.60 → 0.0.61
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/README.md +2 -2
- package/dist/bin/cli.js +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
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.61",
|
|
42262
42262
|
description: "The testing platform for Playwright by Browsermation.",
|
|
42263
42263
|
main: "./dist/index.js",
|
|
42264
42264
|
types: "./dist/index.d.ts",
|
|
@@ -46649,7 +46649,11 @@ function startTunnel(tunnelProcess, options) {
|
|
|
46649
46649
|
);
|
|
46650
46650
|
process.exit(1);
|
|
46651
46651
|
}
|
|
46652
|
-
|
|
46652
|
+
if (!options?.region) {
|
|
46653
|
+
console.log("No region specified. Defaulting to eu-central.");
|
|
46654
|
+
options.region = "eu-central";
|
|
46655
|
+
}
|
|
46656
|
+
const tunnelDomain = `${options.subdomain || crypto.randomUUID()}.${options.region}.browsermationtunnel.com`;
|
|
46653
46657
|
tunnelProcess = (0, import_node_child_process.spawn)("ssh", [
|
|
46654
46658
|
"-o",
|
|
46655
46659
|
"StrictHostKeyChecking=no",
|
|
@@ -46657,7 +46661,7 @@ function startTunnel(tunnelProcess, options) {
|
|
|
46657
46661
|
"UserKnownHostsFile=/dev/null",
|
|
46658
46662
|
"-R",
|
|
46659
46663
|
`:80:localhost:${options.port}`,
|
|
46660
|
-
|
|
46664
|
+
`v0@${options.region}.browsermationtunnel.com`,
|
|
46661
46665
|
"-p",
|
|
46662
46666
|
"2200",
|
|
46663
46667
|
"http",
|