scavio 0.34.0 → 0.34.2

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 CHANGED
@@ -70,6 +70,7 @@ __export(index_exports, {
70
70
  LowesNamespace: () => LowesNamespace,
71
71
  MAX_REQUESTS_PER_SECOND: () => MAX_REQUESTS_PER_SECOND,
72
72
  MENARDS_PRODUCT_TIMEOUT: () => MENARDS_PRODUCT_TIMEOUT,
73
+ MENARDS_SEARCH_TIMEOUT: () => MENARDS_SEARCH_TIMEOUT,
73
74
  MenardsNamespace: () => MenardsNamespace,
74
75
  MercadoLibreNamespace: () => MercadoLibreNamespace,
75
76
  MetaAdsNamespace: () => MetaAdsNamespace,
@@ -258,7 +259,7 @@ function parseRetryAfter(header) {
258
259
  var BASE_URL = "https://api.scavio.dev";
259
260
  var DEFAULT_TIMEOUT = 3e4;
260
261
  var DEFAULT_MAX_RETRIES = 2;
261
- var SDK_VERSION = true ? "0.34.0" : "0.0.0";
262
+ var SDK_VERSION = true ? "0.34.2" : "0.0.0";
262
263
  var USER_AGENT = `scavio-js/${SDK_VERSION}`;
263
264
  function isServerRuntime() {
264
265
  const g = globalThis;
@@ -3827,9 +3828,10 @@ var ChewyNamespace = class {
3827
3828
  /**
3828
3829
  * Search Chewy by keyword, or browse a category, 36 per page: one-time
3829
3830
  * price, offer and strike-through price, Autoship price and discount,
3830
- * first-Autoship price, discount and savings cap, MAP price, per-unit
3831
- * price, rating, rating count, in-stock flag, deal/new/exclusive/
3832
- * prescription flags, brand, image and URL. Sponsored listings are removed
3831
+ * per-unit price, rating, rating count, in-stock flag, deal/new/exclusive/
3832
+ * prescription flags, brand, image and URL. The first-Autoship price,
3833
+ * discount and savings cap are filled only on Autoship-deal rows; product
3834
+ * always has them and MAP. Sponsored listings are removed
3833
3835
  * (sponsored_removed counts them). `redirect` names the category when
3834
3836
  * Chewy sends the query to one.
3835
3837
  *
@@ -3856,6 +3858,7 @@ var ChewyNamespace = class {
3856
3858
 
3857
3859
  // src/namespaces/menards.ts
3858
3860
  var MENARDS_PRODUCT_TIMEOUT = 12e4;
3861
+ var MENARDS_SEARCH_TIMEOUT = 6e4;
3859
3862
  var MenardsNamespace = class {
3860
3863
  constructor(client) {
3861
3864
  this.client = client;
@@ -3871,7 +3874,7 @@ var MenardsNamespace = class {
3871
3874
  * Costs 2 credits.
3872
3875
  */
3873
3876
  async search(options) {
3874
- return this.client._post("/api/v1/menards/search", options);
3877
+ return this.client._post("/api/v1/menards/search", options, void 0, MENARDS_SEARCH_TIMEOUT);
3875
3878
  }
3876
3879
  /**
3877
3880
  * One Menards product by item id or URL: name, brand, model number, SKU,
@@ -4660,6 +4663,7 @@ async function getSubtle() {
4660
4663
  LowesNamespace,
4661
4664
  MAX_REQUESTS_PER_SECOND,
4662
4665
  MENARDS_PRODUCT_TIMEOUT,
4666
+ MENARDS_SEARCH_TIMEOUT,
4663
4667
  MenardsNamespace,
4664
4668
  MercadoLibreNamespace,
4665
4669
  MetaAdsNamespace,