@stackfactor/client-api 1.1.77 → 1.1.79

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.
@@ -193,7 +193,8 @@ export const getContentInformationByUrlFromBrowser = (url) => {
193
193
 
194
194
  let document = htmlParser.parse(response.responseText);
195
195
  let duration = getReadingTime(htmlToText(response.responseText));
196
- let title = document.querySelector("title")?.rawText;
196
+ let titleTag = document.querySelector("title");
197
+ let title = titleTag ? titleTag.rawText : "";
197
198
  let description = "";
198
199
  const descriptionEl = document.querySelector("meta");
199
200
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.77",
3
+ "version": "1.1.79",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {