scrapebadger 0.80.0 → 0.81.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.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -18444,6 +18444,16 @@ type PerplexityParams = Record<string, string | number | boolean | undefined> &
|
|
|
18444
18444
|
* SDK sends it as given. Sent only when set.
|
|
18445
18445
|
*/
|
|
18446
18446
|
location?: string;
|
|
18447
|
+
/**
|
|
18448
|
+
* Also return `answer_html`: the answer rendered as an HTML fragment, each
|
|
18449
|
+
* `[n]` citation linked to its source. Sent as `html=true`.
|
|
18450
|
+
*/
|
|
18451
|
+
html?: boolean;
|
|
18452
|
+
/**
|
|
18453
|
+
* Also return `raw`: Perplexity's own final answer object as it sent it.
|
|
18454
|
+
* Sent as `raw=true`.
|
|
18455
|
+
*/
|
|
18456
|
+
raw?: boolean;
|
|
18447
18457
|
};
|
|
18448
18458
|
/** Client for all Perplexity API operations. (Generated from the OpenAPI spec.) */
|
|
18449
18459
|
declare class PerplexityClient {
|
package/dist/index.d.ts
CHANGED
|
@@ -18444,6 +18444,16 @@ type PerplexityParams = Record<string, string | number | boolean | undefined> &
|
|
|
18444
18444
|
* SDK sends it as given. Sent only when set.
|
|
18445
18445
|
*/
|
|
18446
18446
|
location?: string;
|
|
18447
|
+
/**
|
|
18448
|
+
* Also return `answer_html`: the answer rendered as an HTML fragment, each
|
|
18449
|
+
* `[n]` citation linked to its source. Sent as `html=true`.
|
|
18450
|
+
*/
|
|
18451
|
+
html?: boolean;
|
|
18452
|
+
/**
|
|
18453
|
+
* Also return `raw`: Perplexity's own final answer object as it sent it.
|
|
18454
|
+
* Sent as `raw=true`.
|
|
18455
|
+
*/
|
|
18456
|
+
raw?: boolean;
|
|
18447
18457
|
};
|
|
18448
18458
|
/** Client for all Perplexity API operations. (Generated from the OpenAPI spec.) */
|
|
18449
18459
|
declare class PerplexityClient {
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import WebSocket from 'ws';
|
|
|
3
3
|
import { createHmac, timingSafeEqual } from 'crypto';
|
|
4
4
|
|
|
5
5
|
// src/internal/version.ts
|
|
6
|
-
var SDK_VERSION = "0.
|
|
6
|
+
var SDK_VERSION = "0.81.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -10253,8 +10253,13 @@ var MetaAiClient = class {
|
|
|
10253
10253
|
|
|
10254
10254
|
// src/perplexity/client.ts
|
|
10255
10255
|
function toQuery(params) {
|
|
10256
|
-
const { strictCountry, ...rest } = params;
|
|
10257
|
-
return
|
|
10256
|
+
const { strictCountry, html, raw, ...rest } = params;
|
|
10257
|
+
return {
|
|
10258
|
+
...rest,
|
|
10259
|
+
...strictCountry ? { strict_country: true } : {},
|
|
10260
|
+
...html ? { html: true } : {},
|
|
10261
|
+
...raw ? { raw: true } : {}
|
|
10262
|
+
};
|
|
10258
10263
|
}
|
|
10259
10264
|
var PerplexityClient = class {
|
|
10260
10265
|
client;
|