@saptools/cf-inspector 0.4.4 → 0.4.6

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/index.d.ts CHANGED
@@ -18,7 +18,6 @@ interface RemoteRootRegex {
18
18
  readonly kind: "regex";
19
19
  readonly pattern: string;
20
20
  readonly flags: string;
21
- readonly regex: RegExp;
22
21
  }
23
22
  interface RemoteRootNone {
24
23
  readonly kind: "none";
@@ -327,6 +326,7 @@ declare function streamLogpoint(session: InspectorSession, options: LogpointStre
327
326
 
328
327
  interface TunnelTarget {
329
328
  readonly region: string;
329
+ readonly apiEndpoint?: string;
330
330
  readonly org: string;
331
331
  readonly space: string;
332
332
  readonly app: string;
package/dist/index.js CHANGED
@@ -198,16 +198,7 @@ function parseRemoteRoot(value) {
198
198
  return { kind: "literal", value: stripTrailingSlash(trimmed) };
199
199
  }
200
200
  function toRegex(pattern, flags) {
201
- try {
202
- const regex = new RegExp(pattern, flags);
203
- return { kind: "regex", pattern, flags, regex };
204
- } catch (err) {
205
- const message = err instanceof Error ? err.message : String(err);
206
- throw new CfInspectorError(
207
- "INVALID_REMOTE_ROOT",
208
- `Failed to compile remote-root regex "${pattern}" with flags "${flags}": ${message}`
209
- );
210
- }
201
+ return { kind: "regex", pattern, flags };
211
202
  }
212
203
  function parseSlashDelimited(value) {
213
204
  if (!value.startsWith("/")) {
@@ -1870,6 +1861,7 @@ import { startDebugger } from "@saptools/cf-debugger";
1870
1861
  async function openCfTunnel(target) {
1871
1862
  const opts = {
1872
1863
  region: target.region,
1864
+ ...target.apiEndpoint === void 0 ? {} : { apiEndpoint: target.apiEndpoint },
1873
1865
  org: target.org,
1874
1866
  space: target.space,
1875
1867
  app: target.app,