scavio 0.26.3 → 0.26.4
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/README.md +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -252,6 +252,15 @@ await client.google.search({
|
|
|
252
252
|
device: "desktop", // optional
|
|
253
253
|
});
|
|
254
254
|
|
|
255
|
+
// Organic rankings as seen from a city: web_only returns Google's Web results
|
|
256
|
+
// (organic only, localized to location). For now the standard page localizes
|
|
257
|
+
// only the local pack.
|
|
258
|
+
await client.google.search({
|
|
259
|
+
query: "emergency plumber",
|
|
260
|
+
location: "Austin,Texas,United States",
|
|
261
|
+
web_only: true,
|
|
262
|
+
});
|
|
263
|
+
|
|
255
264
|
// Other Google surfaces
|
|
256
265
|
await client.google.aiMode({ query: "how does rag work" });
|
|
257
266
|
await client.google.mapsSearch({ query: "coffee near me" });
|
package/dist/index.cjs
CHANGED
|
@@ -235,7 +235,7 @@ function parseRetryAfter(header) {
|
|
|
235
235
|
var BASE_URL = "https://api.scavio.dev";
|
|
236
236
|
var DEFAULT_TIMEOUT = 3e4;
|
|
237
237
|
var DEFAULT_MAX_RETRIES = 2;
|
|
238
|
-
var SDK_VERSION = true ? "0.26.
|
|
238
|
+
var SDK_VERSION = true ? "0.26.4" : "0.0.0";
|
|
239
239
|
var USER_AGENT = `scavio-js/${SDK_VERSION}`;
|
|
240
240
|
function isServerRuntime() {
|
|
241
241
|
const g = globalThis;
|