@xano/cli 1.0.2-beta.8 → 1.0.2-beta.9

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
@@ -505,8 +505,6 @@ xano sandbox push --review # Push and open sandbox
505
505
 
506
506
  # Review (open in browser)
507
507
  xano sandbox review
508
- xano sandbox review --url-only # Print the URL without opening the browser
509
- xano sandbox review --insecure # Skip TLS verification (self-signed certs)
510
508
 
511
509
  # Impersonate (open in browser)
512
510
  xano sandbox impersonate
@@ -3,7 +3,6 @@ export default class SandboxReview extends BaseCommand {
3
3
  static description: string;
4
4
  static examples: string[];
5
5
  static flags: {
6
- insecure: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
6
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
8
7
  'url-only': import("@oclif/core/interfaces").BooleanFlag<boolean>;
9
8
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -10,16 +10,9 @@ Review session started!
10
10
  `,
11
11
  `$ xano sandbox review -u`,
12
12
  `$ xano sandbox review -o json`,
13
- `$ xano sandbox review --insecure`,
14
13
  ];
15
14
  static flags = {
16
15
  ...BaseCommand.baseFlags,
17
- insecure: Flags.boolean({
18
- char: 'k',
19
- default: false,
20
- description: 'Skip TLS certificate verification (for self-signed certificates)',
21
- required: false,
22
- }),
23
16
  output: Flags.string({
24
17
  char: 'o',
25
18
  default: 'summary',
@@ -36,10 +29,6 @@ Review session started!
36
29
  };
37
30
  async run() {
38
31
  const { flags } = await this.parse(SandboxReview);
39
- if (flags.insecure) {
40
- process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
41
- this.warn('TLS certificate verification is disabled (insecure mode)');
42
- }
43
32
  const { profile } = this.resolveProfile(flags);
44
33
  const apiUrl = `${profile.instance_origin}/api:meta/sandbox/impersonate`;
45
34
  try {
@@ -100,6 +89,8 @@ Review session started!
100
89
  catch {
101
90
  // fall through
102
91
  }
103
- return instanceOrigin;
92
+ // Strip any trailing slash so callers can safely append `/impersonate`
93
+ // without producing a double slash.
94
+ return instanceOrigin.replace(/\/+$/, '');
104
95
  }
105
96
  }