servicem8 0.3.17 → 0.3.18

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/bin/mcp-server.js CHANGED
@@ -34190,9 +34190,9 @@ var init_config = __esm(() => {
34190
34190
  SDK_METADATA = {
34191
34191
  language: "typescript",
34192
34192
  openapiDocVersion: "1.0.0",
34193
- sdkVersion: "0.3.17",
34194
- genVersion: "2.593.4",
34195
- userAgent: "speakeasy-sdk/typescript 0.3.17 2.593.4 1.0.0 servicem8"
34193
+ sdkVersion: "0.3.18",
34194
+ genVersion: "2.595.4",
34195
+ userAgent: "speakeasy-sdk/typescript 0.3.18 2.595.4 1.0.0 servicem8"
34196
34196
  };
34197
34197
  });
34198
34198
 
@@ -34818,26 +34818,22 @@ class ClientSDK {
34818
34818
  }
34819
34819
  cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie;
34820
34820
  headers.set("cookie", cookie);
34821
- const userHeaders = new Headers(options?.fetchOptions?.headers);
34821
+ const userHeaders = new Headers(options?.headers ?? options?.fetchOptions?.headers);
34822
34822
  for (const [k2, v2] of userHeaders) {
34823
34823
  headers.set(k2, v2);
34824
34824
  }
34825
34825
  if (!isBrowserLike) {
34826
34826
  headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
34827
34827
  }
34828
- let fetchOptions = options?.fetchOptions;
34828
+ const fetchOptions = {
34829
+ ...options?.fetchOptions,
34830
+ ...options
34831
+ };
34829
34832
  if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
34830
34833
  const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
34831
- if (!fetchOptions) {
34832
- fetchOptions = { signal: timeoutSignal };
34833
- } else {
34834
- fetchOptions.signal = timeoutSignal;
34835
- }
34834
+ fetchOptions.signal = timeoutSignal;
34836
34835
  }
34837
34836
  if (conf.body instanceof ReadableStream) {
34838
- if (!fetchOptions) {
34839
- fetchOptions = {};
34840
- }
34841
34837
  Object.assign(fetchOptions, { duplex: "half" });
34842
34838
  }
34843
34839
  let input;
@@ -65506,7 +65502,7 @@ Vendor account information
65506
65502
  function createMCPServer(deps) {
65507
65503
  const server = new McpServer({
65508
65504
  name: "ServiceM8",
65509
- version: "0.3.17"
65505
+ version: "0.3.18"
65510
65506
  });
65511
65507
  const client = new ServiceM8Core({
65512
65508
  security: deps.security,
@@ -67069,7 +67065,7 @@ var routes = an({
67069
67065
  var app = He(routes, {
67070
67066
  name: "mcp",
67071
67067
  versionInfo: {
67072
- currentVersion: "0.3.17"
67068
+ currentVersion: "0.3.18"
67073
67069
  }
67074
67070
  });
67075
67071
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -67077,5 +67073,5 @@ export {
67077
67073
  app
67078
67074
  };
67079
67075
 
67080
- //# debugId=0EBA5319CF6F9EDE64756E2164756E21
67076
+ //# debugId=B156B1AE343754B664756E2164756E21
67081
67077
  //# sourceMappingURL=mcp-server.js.map