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.cjs CHANGED
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
23
  AuthenticationError: () => AuthenticationError,
24
24
  BadRequestError: () => BadRequestError,
25
25
  LifeAstro: () => LifeAstro,
@@ -31,9 +31,9 @@ __export(index_exports, {
31
31
  RateLimitError: () => RateLimitError,
32
32
  ServerError: () => ServerError,
33
33
  VERSION: () => VERSION,
34
- default: () => index_default
34
+ default: () => src_default
35
35
  });
36
- module.exports = __toCommonJS(index_exports);
36
+ module.exports = __toCommonJS(src_exports);
37
37
 
38
38
  // src/errors.ts
39
39
  var LifeAstroError = class extends Error {
@@ -179,7 +179,7 @@ async function performRequest(config, path, query, opts = {}) {
179
179
  });
180
180
  text = await res.text();
181
181
  } catch (cause) {
182
- const aborted = cause?.name === "AbortError";
182
+ const aborted = controller.signal.aborted || cause?.name === "AbortError";
183
183
  if (aborted && opts.signal?.aborted) {
184
184
  throw new LifeAstroConnectionError("Request aborted by caller", { cause, code: "aborted" });
185
185
  }
@@ -2012,7 +2012,7 @@ var Resources = class {
2012
2012
  };
2013
2013
 
2014
2014
  // src/client.ts
2015
- var VERSION = "0.9.0";
2015
+ var VERSION = "0.9.1";
2016
2016
  var DEFAULT_BASE_URL = "https://api.lifeastroapi.com";
2017
2017
  function resolveConfig(options) {
2018
2018
  const opts = typeof options === "string" ? { apiKey: options } : options ?? {};
@@ -2070,7 +2070,7 @@ var LifeAstro = class extends Resources {
2070
2070
  };
2071
2071
 
2072
2072
  // src/index.ts
2073
- var index_default = LifeAstro;
2073
+ var src_default = LifeAstro;
2074
2074
  // Annotate the CommonJS export names for ESM import in node:
2075
2075
  0 && (module.exports = {
2076
2076
  AuthenticationError,