exa-js 2.0.9 → 2.0.11
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.mts +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import fetch2, { Headers } from "cross-fetch";
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "exa-js",
|
|
7
|
-
version: "2.0.
|
|
7
|
+
version: "2.0.11",
|
|
8
8
|
description: "Exa SDK for Node.js and the browser",
|
|
9
9
|
publishConfig: {
|
|
10
10
|
access: "public"
|
|
@@ -1274,6 +1274,7 @@ var Exa2 = class {
|
|
|
1274
1274
|
extractContentsOptions(options) {
|
|
1275
1275
|
const {
|
|
1276
1276
|
text,
|
|
1277
|
+
highlights,
|
|
1277
1278
|
summary,
|
|
1278
1279
|
subpages,
|
|
1279
1280
|
subpageTarget,
|
|
@@ -1284,10 +1285,11 @@ var Exa2 = class {
|
|
|
1284
1285
|
...rest
|
|
1285
1286
|
} = options;
|
|
1286
1287
|
const contentsOptions = {};
|
|
1287
|
-
if (text === void 0 && summary === void 0 && extras === void 0) {
|
|
1288
|
+
if (text === void 0 && summary === void 0 && highlights === void 0 && extras === void 0) {
|
|
1288
1289
|
contentsOptions.text = true;
|
|
1289
1290
|
}
|
|
1290
1291
|
if (text !== void 0) contentsOptions.text = text;
|
|
1292
|
+
if (highlights !== void 0) contentsOptions.highlights = highlights;
|
|
1291
1293
|
if (summary !== void 0) {
|
|
1292
1294
|
if (typeof summary === "object" && summary !== null && "schema" in summary && summary.schema && isZodSchema(summary.schema)) {
|
|
1293
1295
|
contentsOptions.summary = {
|