exa-js 2.0.2 → 2.0.5

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.0.2",
7
+ version: "2.0.5",
8
8
  description: "Exa SDK for Node.js and the browser",
9
9
  publishConfig: {
10
10
  access: "public"
@@ -1121,13 +1121,19 @@ var WebsetsClient = class extends WebsetsBaseClient {
1121
1121
  /**
1122
1122
  * Preview a webset
1123
1123
  * @param params The preview parameters
1124
+ * @param options Optional parameters. Search = true allows you to retrieve a preview set of items that could be returned by the webset.
1124
1125
  * @returns The preview response showing how the query will be decomposed
1125
1126
  */
1126
- async preview(params) {
1127
+ async preview(params, options) {
1128
+ const queryParams = {};
1129
+ if (options?.search !== void 0) {
1130
+ queryParams.search = options.search;
1131
+ }
1127
1132
  return this.request(
1128
1133
  "/v0/websets/preview",
1129
1134
  "POST",
1130
- params
1135
+ params,
1136
+ queryParams
1131
1137
  );
1132
1138
  }
1133
1139
  /**