scavio 0.39.0 → 0.39.1

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 CHANGED
@@ -36,7 +36,7 @@ same code, and click Approve. The CLI saves an API key named after your machine
36
36
  (`CLI - <hostname>`) and never prints it:
37
37
 
38
38
  - `~/.config/scavio/credentials.json` (owner-only), and
39
- - `SCAVIO_API_KEY` in your shell startup file (`~/.zshrc`, `~/.bashrc` and on
39
+ - `SCAVIO_API_KEY` in your shell startup file (`~/.zshrc` or `$ZDOTDIR/.zshrc`, `~/.bashrc` and on
40
40
  macOS `~/.bash_profile`, fish `conf.d/scavio.fish`, or the Windows user
41
41
  environment). Skip this with `--no-profile`.
42
42
 
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import { homedir as homedir3 } from "os";
6
6
 
7
7
  // src/http.ts
8
8
  var BASE_URL = "https://api.scavio.dev";
9
- var SDK_VERSION = true ? "0.39.0" : "0.0.0";
9
+ var SDK_VERSION = true ? "0.39.1" : "0.0.0";
10
10
  var USER_AGENT = `scavio-js/${SDK_VERSION}`;
11
11
 
12
12
  // src/cli/files.ts
@@ -158,7 +158,13 @@ function profileTargets(env = process.env, platform = process.platform, home = h
158
158
  const shell = basename(env.SHELL || "");
159
159
  const t = (kind, rel) => ({ kind, path: join2(home, rel), display: `~/${rel}` });
160
160
  if (shell === "fish") return [t("fish", ".config/fish/conf.d/scavio.fish")];
161
- if (shell === "zsh") return [t("posix", ".zshrc")];
161
+ if (shell === "zsh") {
162
+ const zdot = env.ZDOTDIR;
163
+ if (zdot && zdot !== home) {
164
+ return [{ kind: "posix", path: join2(zdot, ".zshrc"), display: join2(zdot, ".zshrc").replace(home, "~") }];
165
+ }
166
+ return [t("posix", ".zshrc")];
167
+ }
162
168
  if (shell === "bash") {
163
169
  return platform === "darwin" ? [t("posix", ".bashrc"), t("posix", ".bash_profile")] : [t("posix", ".bashrc")];
164
170
  }
package/dist/index.cjs CHANGED
@@ -265,7 +265,7 @@ function parseRetryAfter(header) {
265
265
  var BASE_URL = "https://api.scavio.dev";
266
266
  var DEFAULT_TIMEOUT = 3e4;
267
267
  var DEFAULT_MAX_RETRIES = 2;
268
- var SDK_VERSION = true ? "0.39.0" : "0.0.0";
268
+ var SDK_VERSION = true ? "0.39.1" : "0.0.0";
269
269
  var USER_AGENT = `scavio-js/${SDK_VERSION}`;
270
270
  function isServerRuntime() {
271
271
  const g = globalThis;
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.39.0" : "0.0.0";
148
+ var SDK_VERSION = true ? "0.39.1" : "0.0.0";
149
149
  var USER_AGENT = `scavio-js/${SDK_VERSION}`;
150
150
  function isServerRuntime() {
151
151
  const g = globalThis;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scavio",
3
- "version": "0.39.0",
3
+ "version": "0.39.1",
4
4
  "description": "TypeScript SDK for the Scavio API — real-time structured web data across 61 platforms on one API key: Google SERP, ChatGPT, Gemini, Amazon, Walmart, Costco, Nordstrom, Nordstrom Rack, Lowe's, Sam's Club, Canadian Tire, Dollar General, Sephora, Ulta Beauty, ALDI, Micro Center, Walgreens, CVS, Whole Foods, Harbor Freight, PetSmart, Petco, iHerb, Chewy, Menards, HEB, Kroger, Mercado Libre, eBay, Zillow, Redfin, Realtor.com, Rightmove, Booking, Airbnb, Yelp, Trustpilot, Indeed, Glassdoor, G2, App Store, Google Play, SEC EDGAR, Google Ads and Meta Ad Library, YouTube, TikTok, Instagram, X, LinkedIn, Reddit and more, plus extract() to read any URL as clean Markdown and extract.map/crawl/batch to map, crawl and batch-extract whole websites",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",