lifeastroapi 0.9.0 → 0.9.1

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.cts CHANGED
@@ -2031,7 +2031,7 @@ declare class Resources {
2031
2031
  */
2032
2032
 
2033
2033
  /** SDK version, surfaced in the User-Agent header. */
2034
- declare const VERSION = "0.9.0";
2034
+ declare const VERSION = "0.9.1";
2035
2035
  interface LifeAstroOptions {
2036
2036
  /**
2037
2037
  * API key (`dv_live_...`). Falls back to the `LIFEASTRO_API_KEY` environment
package/dist/index.d.ts CHANGED
@@ -2031,7 +2031,7 @@ declare class Resources {
2031
2031
  */
2032
2032
 
2033
2033
  /** SDK version, surfaced in the User-Agent header. */
2034
- declare const VERSION = "0.9.0";
2034
+ declare const VERSION = "0.9.1";
2035
2035
  interface LifeAstroOptions {
2036
2036
  /**
2037
2037
  * API key (`dv_live_...`). Falls back to the `LIFEASTRO_API_KEY` environment
package/dist/index.js CHANGED
@@ -142,7 +142,7 @@ async function performRequest(config, path, query, opts = {}) {
142
142
  });
143
143
  text = await res.text();
144
144
  } catch (cause) {
145
- const aborted = cause?.name === "AbortError";
145
+ const aborted = controller.signal.aborted || cause?.name === "AbortError";
146
146
  if (aborted && opts.signal?.aborted) {
147
147
  throw new LifeAstroConnectionError("Request aborted by caller", { cause, code: "aborted" });
148
148
  }
@@ -1975,7 +1975,7 @@ var Resources = class {
1975
1975
  };
1976
1976
 
1977
1977
  // src/client.ts
1978
- var VERSION = "0.9.0";
1978
+ var VERSION = "0.9.1";
1979
1979
  var DEFAULT_BASE_URL = "https://api.lifeastroapi.com";
1980
1980
  function resolveConfig(options) {
1981
1981
  const opts = typeof options === "string" ? { apiKey: options } : options ?? {};
@@ -2033,7 +2033,7 @@ var LifeAstro = class extends Resources {
2033
2033
  };
2034
2034
 
2035
2035
  // src/index.ts
2036
- var index_default = LifeAstro;
2036
+ var src_default = LifeAstro;
2037
2037
  export {
2038
2038
  AuthenticationError,
2039
2039
  BadRequestError,
@@ -2046,6 +2046,6 @@ export {
2046
2046
  RateLimitError,
2047
2047
  ServerError,
2048
2048
  VERSION,
2049
- index_default as default
2049
+ src_default as default
2050
2050
  };
2051
2051
  //# sourceMappingURL=index.js.map