MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / apiUrlOptions

Function apiUrlOptions

packages/plugins/workos-vault/src/sdk/client.ts:103–113  ·  view source on GitHub ↗
(
  url: string | undefined,
)

Source from the content-addressed store, hash-verified

101}
102
103const apiUrlOptions = (
104 url: string | undefined,
105): { apiHostname?: string; port?: number; https?: boolean } => {
106 if (!url) return {};
107 const parsed = new URL(url);
108 return {
109 apiHostname: parsed.hostname,
110 ...(parsed.port ? { port: Number(parsed.port) } : {}),
111 https: parsed.protocol === "https:",
112 };
113};
114
115interface WorkOSVaultUseOptions {
116 readonly expectedErrorStatuses?: readonly number[];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected