scrapebadger 0.66.0 → 0.67.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.d.cts +15 -2
- package/dist/index.d.ts +15 -2
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { EventEmitter } from 'events';
|
|
|
3
3
|
import WebSocket from 'ws';
|
|
4
4
|
|
|
5
5
|
// src/internal/version.ts
|
|
6
|
-
var SDK_VERSION = "0.
|
|
6
|
+
var SDK_VERSION = "0.67.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -9735,6 +9735,10 @@ var LoopNetClient = class {
|
|
|
9735
9735
|
};
|
|
9736
9736
|
|
|
9737
9737
|
// src/perplexity/client.ts
|
|
9738
|
+
function toQuery(params) {
|
|
9739
|
+
const { strictCountry, ...rest } = params;
|
|
9740
|
+
return strictCountry ? { ...rest, strict_country: true } : rest;
|
|
9741
|
+
}
|
|
9738
9742
|
var PerplexityClient = class {
|
|
9739
9743
|
client;
|
|
9740
9744
|
constructor(client) {
|
|
@@ -9742,7 +9746,7 @@ var PerplexityClient = class {
|
|
|
9742
9746
|
}
|
|
9743
9747
|
/** Ask Perplexity a question. Generated from the OpenAPI spec; returns the raw response object. */
|
|
9744
9748
|
async askPerplexityAQuestion(params = {}) {
|
|
9745
|
-
return this.client.request("/v1/perplexity/ask", { params });
|
|
9749
|
+
return this.client.request("/v1/perplexity/ask", { params: toQuery(params) });
|
|
9746
9750
|
}
|
|
9747
9751
|
/** Ask Perplexity a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
9748
9752
|
async askPerplexityAQuestionPost(body, params = {}) {
|
|
@@ -9750,7 +9754,7 @@ var PerplexityClient = class {
|
|
|
9750
9754
|
}
|
|
9751
9755
|
/** Measure a brand's visibility in a Perplexity answer. Generated from the OpenAPI spec; returns the raw response object. */
|
|
9752
9756
|
async measureABrandSVisibilityInAPerplexityAnswer(params = {}) {
|
|
9753
|
-
return this.client.request("/v1/perplexity/brand-visibility", { params });
|
|
9757
|
+
return this.client.request("/v1/perplexity/brand-visibility", { params: toQuery(params) });
|
|
9754
9758
|
}
|
|
9755
9759
|
/** Measure a brand's visibility in a Perplexity answer (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
9756
9760
|
async measureABrandSVisibilityInAPerplexityAnswerPost(body, params = {}) {
|