browsermation 0.0.61 → 0.0.62

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.
Files changed (2) hide show
  1. package/dist/bin/cli.js +6 -6
  2. 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.61",
42261
+ version: "0.0.62",
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
- if (!options?.region) {
46653
- console.log("No region specified. Defaulting to eu-central.");
46654
- options.region = "eu-central";
46652
+ let defaultDomain = "browsermationtunnel.com";
46653
+ if (options?.region === "eu") {
46654
+ defaultDomain = "browsermationtunnel.eu";
46655
46655
  }
46656
- const tunnelDomain = `${options.subdomain || crypto.randomUUID()}.${options.region}.browsermationtunnel.com`;
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@${options.region}.browsermationtunnel.com`,
46664
+ `v0@${defaultDomain}`,
46665
46665
  "-p",
46666
46666
  "2200",
46667
46667
  "http",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browsermation",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "description": "The testing platform for Playwright by Browsermation.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",