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 CHANGED
@@ -18,8 +18,8 @@ You can use via the CLI
18
18
  npx browsermation test
19
19
  ```
20
20
 
21
- Or use it as Playwright reporter
21
+ or start a tunnel
22
22
 
23
23
  ```bash
24
- npx @playwright/test test --reporter=browsermation/reporter
24
+ npx browsermation tunnel --port 8080
25
25
  ```
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.60",
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
- const tunnelDomain = `${options.subdomain || crypto.randomUUID()}.browsermationtunnel.com`;
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
- "v0@browsermationtunnel.com",
46664
+ `v0@${options.region}.browsermationtunnel.com`,
46661
46665
  "-p",
46662
46666
  "2200",
46663
46667
  "http",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browsermation",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "description": "The testing platform for Playwright by Browsermation.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",