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/dist/index.d.cts
CHANGED
|
@@ -76,7 +76,11 @@ interface GoogleSearchOptions {
|
|
|
76
76
|
gl?: string;
|
|
77
77
|
/** Regional Google domain (e.g. 'google.co.uk'). */
|
|
78
78
|
google_domain?: string;
|
|
79
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Canonical location name; auto-encoded to a UULE string. On the standard
|
|
81
|
+
* results page it currently localizes the local pack only; set web_only for
|
|
82
|
+
* organic results localized to this location.
|
|
83
|
+
*/
|
|
80
84
|
location?: string;
|
|
81
85
|
/** Pre-encoded UULE location string (takes priority over location). */
|
|
82
86
|
uule?: string;
|
|
@@ -94,6 +98,11 @@ interface GoogleSearchOptions {
|
|
|
94
98
|
time_period?: "last_hour" | "last_day" | "last_week" | "last_month" | "last_year";
|
|
95
99
|
/** Resolve a deferred AI Overview (server default true). */
|
|
96
100
|
resolve_ai_overview?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Return Google's Web results only: organic results localized to location,
|
|
103
|
+
* with no local pack, ads, related questions, knowledge graph or AI Overview.
|
|
104
|
+
*/
|
|
105
|
+
web_only?: boolean;
|
|
97
106
|
[key: string]: unknown;
|
|
98
107
|
}
|
|
99
108
|
interface GoogleAiModeOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -76,7 +76,11 @@ interface GoogleSearchOptions {
|
|
|
76
76
|
gl?: string;
|
|
77
77
|
/** Regional Google domain (e.g. 'google.co.uk'). */
|
|
78
78
|
google_domain?: string;
|
|
79
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Canonical location name; auto-encoded to a UULE string. On the standard
|
|
81
|
+
* results page it currently localizes the local pack only; set web_only for
|
|
82
|
+
* organic results localized to this location.
|
|
83
|
+
*/
|
|
80
84
|
location?: string;
|
|
81
85
|
/** Pre-encoded UULE location string (takes priority over location). */
|
|
82
86
|
uule?: string;
|
|
@@ -94,6 +98,11 @@ interface GoogleSearchOptions {
|
|
|
94
98
|
time_period?: "last_hour" | "last_day" | "last_week" | "last_month" | "last_year";
|
|
95
99
|
/** Resolve a deferred AI Overview (server default true). */
|
|
96
100
|
resolve_ai_overview?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Return Google's Web results only: organic results localized to location,
|
|
103
|
+
* with no local pack, ads, related questions, knowledge graph or AI Overview.
|
|
104
|
+
*/
|
|
105
|
+
web_only?: boolean;
|
|
97
106
|
[key: string]: unknown;
|
|
98
107
|
}
|
|
99
108
|
interface GoogleAiModeOptions {
|
package/dist/index.js
CHANGED
|
@@ -145,7 +145,7 @@ function parseRetryAfter(header) {
|
|
|
145
145
|
var BASE_URL = "https://api.scavio.dev";
|
|
146
146
|
var DEFAULT_TIMEOUT = 3e4;
|
|
147
147
|
var DEFAULT_MAX_RETRIES = 2;
|
|
148
|
-
var SDK_VERSION = true ? "0.26.
|
|
148
|
+
var SDK_VERSION = true ? "0.26.4" : "0.0.0";
|
|
149
149
|
var USER_AGENT = `scavio-js/${SDK_VERSION}`;
|
|
150
150
|
function isServerRuntime() {
|
|
151
151
|
const g = globalThis;
|