scrapebadger 0.56.0 → 0.57.0
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.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.
|
|
6
|
+
var SDK_VERSION = "0.57.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -6222,7 +6222,13 @@ var FacebookClient = class {
|
|
|
6222
6222
|
async getGroupDetail(groupId, params = {}) {
|
|
6223
6223
|
return this.client.request(`/v1/facebook/groups/${groupId}`, { params });
|
|
6224
6224
|
}
|
|
6225
|
-
/**
|
|
6225
|
+
/**
|
|
6226
|
+
* Get a public group's post feed, 3 posts per page. Generated from the OpenAPI spec; returns the raw response object.
|
|
6227
|
+
*
|
|
6228
|
+
* `params.sort` is `"newest"` (newest first by post time, the default) or `"relevance"`
|
|
6229
|
+
* (Facebook's top-posts ranking). Pass `end_cursor` back as `params.after` while
|
|
6230
|
+
* `has_next_page` for older posts, keeping the same sort.
|
|
6231
|
+
*/
|
|
6226
6232
|
async getGroupPosts(groupId, params = {}) {
|
|
6227
6233
|
return this.client.request(`/v1/facebook/groups/${groupId}/posts`, { params });
|
|
6228
6234
|
}
|