diggylab 0.1.49 → 0.1.50

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.
Files changed (2) hide show
  1. package/cli.js +1 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -421,7 +421,7 @@ function parseFacebookGraphqlBody(body, groupUrl) {
421
421
  function toComment(node) {
422
422
  const typename = typeof node.__typename === "string" ? node.__typename : void 0;
423
423
  const text = firstString(node, commentTextPaths);
424
- if (!text || typename && !/comment$/i.test(typename))
424
+ if (!text || !typename || !/comment$/i.test(typename))
425
425
  return void 0;
426
426
  const authorName = firstString(node, commentAuthorPaths);
427
427
  const authorAvatarUrl = firstString(node, commentAvatarPaths, false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diggylab",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "description": "DiggyLab Desktop Agent collects posts and information from Facebook Groups on a paired computer. (headless CLI)",
5
5
  "type": "module",
6
6
  "bin": {