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/README.md +82 -3
- package/dist/chunk-ZSMQRMHR.js +7939 -0
- package/dist/chunk-ZSMQRMHR.js.map +1 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/pdf/index.cjs +13 -0
- package/dist/pdf/index.cjs.map +1 -1
- package/dist/pdf/index.d.cts +3 -1119
- package/dist/pdf/index.d.ts +3 -1119
- package/dist/pdf/index.js +26 -7901
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf-html.cjs +7877 -0
- package/dist/pdf-html.cjs.map +1 -0
- package/dist/pdf-html.d.cts +1163 -0
- package/dist/pdf-html.d.ts +1163 -0
- package/dist/pdf-html.js +37 -0
- package/dist/pdf-html.js.map +1 -0
- package/package.json +11 -1
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
|
|
22
|
-
__export(
|
|
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: () =>
|
|
34
|
+
default: () => src_default
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
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.
|
|
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
|
|
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,
|