@wspc/cli 0.0.14 → 0.0.15

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
@@ -585,9 +585,9 @@ interface TDataShape {
585
585
  type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
586
586
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
587
587
 
588
- declare const VERSION = "0.0.14";
589
- declare const SPEC_SHA = "7842b7a9";
590
- declare const SPEC_FETCHED_AT = "2026-06-10T05:27:40.161Z";
588
+ declare const VERSION = "0.0.15";
589
+ declare const SPEC_SHA = "dac502bc";
590
+ declare const SPEC_FETCHED_AT = "2026-06-15T16:41:41.264Z";
591
591
  declare const API_BASE = "https://api.wspc.ai";
592
592
 
593
593
  type WspcClientOptions = {
package/dist/index.js CHANGED
@@ -787,6 +787,7 @@ var createClient = (config = {}) => {
787
787
  function createAuthInterceptor(mode) {
788
788
  if ("apiKey" in mode) {
789
789
  const apiKey = mode.apiKey;
790
+ const fetchImpl2 = mode.fetchImpl ?? fetch;
790
791
  return {
791
792
  async onRequest(req) {
792
793
  req.headers.set("authorization", `Bearer ${apiKey}`);
@@ -794,7 +795,7 @@ function createAuthInterceptor(mode) {
794
795
  },
795
796
  async execute(req) {
796
797
  const out = await this.onRequest(req.clone());
797
- return fetch(out);
798
+ return fetchImpl2(out);
798
799
  }
799
800
  };
800
801
  }
@@ -902,9 +903,9 @@ var todoUpdate = (options) => (options.client ?? client).patch({
902
903
  });
903
904
 
904
905
  // src/version.ts
905
- var VERSION = "0.0.14";
906
- var SPEC_SHA = "7842b7a9";
907
- var SPEC_FETCHED_AT = "2026-06-10T05:27:40.161Z";
906
+ var VERSION = "0.0.15";
907
+ var SPEC_SHA = "dac502bc";
908
+ var SPEC_FETCHED_AT = "2026-06-15T16:41:41.264Z";
908
909
  var API_BASE = "https://api.wspc.ai";
909
910
 
910
911
  // src/index.ts