exa-js 2.1.0 → 2.2.0

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.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.1.0",
7
+ version: "2.2.0",
8
8
  description: "Exa SDK for Node.js and the browser",
9
9
  publishConfig: {
10
10
  access: "public"
@@ -35,6 +35,7 @@ var package_default = {
35
35
  "generate:types:websets": "openapi-typescript https://raw.githubusercontent.com/exa-labs/openapi-spec/refs/heads/master/exa-websets-spec.yaml --enum --root-types --alphabetize --root-types-no-schema-prefix --output ./src/websets/openapi.ts && npm run format:websets",
36
36
  format: 'prettier --write "src/**/*.ts" "examples/**/*.ts"',
37
37
  "format:websets": "prettier --write src/websets/openapi.ts",
38
+ "generate-docs": "npx tsx scripts/generate-docs.ts",
38
39
  "build:beta": "cross-env NPM_CONFIG_TAG=beta npm run build",
39
40
  "version:beta": "npm version prerelease --preid=beta",
40
41
  "version:stable": "npm version patch",
@@ -48,8 +49,10 @@ var package_default = {
48
49
  "cross-env": "~7.0.3",
49
50
  "openapi-typescript": "~7.6.1",
50
51
  prettier: "~3.5.3",
52
+ "ts-morph": "^27.0.2",
51
53
  "ts-node": "~10.9.2",
52
54
  tsup: "~8.4.0",
55
+ tsx: "^4.21.0",
53
56
  typescript: "~5.8.3",
54
57
  vitest: "~3.1.1"
55
58
  },
@@ -1281,6 +1284,7 @@ var Exa2 = class {
1281
1284
  extras,
1282
1285
  livecrawl,
1283
1286
  livecrawlTimeout,
1287
+ maxAgeHours,
1284
1288
  context,
1285
1289
  ...rest
1286
1290
  } = options;
@@ -1307,6 +1311,7 @@ var Exa2 = class {
1307
1311
  if (livecrawl !== void 0) contentsOptions.livecrawl = livecrawl;
1308
1312
  if (livecrawlTimeout !== void 0)
1309
1313
  contentsOptions.livecrawlTimeout = livecrawlTimeout;
1314
+ if (maxAgeHours !== void 0) contentsOptions.maxAgeHours = maxAgeHours;
1310
1315
  if (context !== void 0) contentsOptions.context = context;
1311
1316
  return {
1312
1317
  contentsOptions,