scrapebadger 0.39.0 → 0.40.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/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.38.0";
6
+ var SDK_VERSION = "0.40.1";
7
7
 
8
8
  // src/internal/exceptions.ts
9
9
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -3330,9 +3330,11 @@ var ShoppingClient = class {
3330
3330
  });
3331
3331
  }
3332
3332
  /**
3333
- * Resolve a product by `barcode` (GTIN-8/UPC-A/EAN-13/GTIN-14) and return
3334
- * its multi-seller Google Shopping offers. Throws on a 422 (invalid or
3335
- * checksum-failing barcode) or 404 (barcode not resolvable to a product).
3333
+ * Multi-seller Google Shopping offers for a product, by `barcode`
3334
+ * (GTIN-8/UPC-A/EAN-13/GTIN-14, resolved via Google web search first) or
3335
+ * by Google Shopping `catalog_id` (sellers read off Google's product page).
3336
+ * Throws on 400 (not exactly one identifier), 422 (invalid barcode) or 404
3337
+ * (nothing resolves).
3336
3338
  */
3337
3339
  async offers(params) {
3338
3340
  return this.client.request("/v1/google/shopping/offers", {
@@ -4294,7 +4296,10 @@ var UsersClient4 = class {
4294
4296
  async about(username) {
4295
4297
  return this.client.request(`/v1/instagram/users/${username}/about`);
4296
4298
  }
4297
- /** Get accounts related/suggested for a user. */
4299
+ /**
4300
+ * Get accounts related/suggested for a user.
4301
+ * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4302
+ */
4298
4303
  async related(username) {
4299
4304
  return this.client.request(`/v1/instagram/users/${username}/related`);
4300
4305
  }
@@ -4405,7 +4410,10 @@ var MediaClient = class {
4405
4410
  async get(code) {
4406
4411
  return this.client.request(`/v1/instagram/media/${code}`);
4407
4412
  }
4408
- /** Get oEmbed metadata for a media permalink. */
4413
+ /**
4414
+ * Get oEmbed metadata for a media permalink.
4415
+ * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4416
+ */
4409
4417
  async oembed(code) {
4410
4418
  return this.client.request(`/v1/instagram/media/${code}/oembed`);
4411
4419
  }
@@ -4432,7 +4440,10 @@ var MediaClient = class {
4432
4440
  { params: { amount: options.amount, cursor: options.cursor } }
4433
4441
  );
4434
4442
  }
4435
- /** Get the users who liked a comment. */
4443
+ /**
4444
+ * Get the users who liked a comment.
4445
+ * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4446
+ */
4436
4447
  async commentLikers(code, commentId) {
4437
4448
  return this.client.request(
4438
4449
  `/v1/instagram/media/${code}/comments/${commentId}/likers`
@@ -4455,7 +4466,10 @@ var SearchClient4 = class {
4455
4466
  params: { query }
4456
4467
  });
4457
4468
  }
4458
- /** Search hashtags. */
4469
+ /**
4470
+ * Search hashtags.
4471
+ * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4472
+ */
4459
4473
  async hashtags(query) {
4460
4474
  return this.client.request("/v1/instagram/search/hashtags", {
4461
4475
  params: { query }
@@ -4488,7 +4502,10 @@ var SearchClient4 = class {
4488
4502
  params: { query }
4489
4503
  });
4490
4504
  }
4491
- /** Get blended "top" results (users, hashtags, and places). */
4505
+ /**
4506
+ * Get blended "top" results (users, hashtags, and places).
4507
+ * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4508
+ */
4492
4509
  async top(query) {
4493
4510
  return this.client.request("/v1/instagram/search/top", {
4494
4511
  params: { query }
@@ -4516,7 +4533,10 @@ var HashtagsClient = class {
4516
4533
  constructor(client) {
4517
4534
  this.client = client;
4518
4535
  }
4519
- /** Get a hashtag's info (media count, cover). */
4536
+ /**
4537
+ * Get a hashtag's info (media count, cover).
4538
+ * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4539
+ */
4520
4540
  async get(tag) {
4521
4541
  return this.client.request(`/v1/instagram/hashtags/${tag}`);
4522
4542
  }
@@ -4527,7 +4547,10 @@ var HashtagsClient = class {
4527
4547
  async top(tag, options = {}) {
4528
4548
  return mediaFeed(this.client, `/v1/instagram/hashtags/${tag}/top`, options);
4529
4549
  }
4530
- /** Get the most recent media for a hashtag. */
4550
+ /**
4551
+ * Get the most recent media for a hashtag.
4552
+ * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4553
+ */
4531
4554
  async recent(tag, options = {}) {
4532
4555
  return mediaFeed(this.client, `/v1/instagram/hashtags/${tag}/recent`, options);
4533
4556
  }