triangle-utils 1.4.151 → 1.4.152

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.
@@ -58,7 +58,7 @@ export class UtilsBee {
58
58
  if (data.news_results === undefined || data.organic_results === undefined) {
59
59
  return;
60
60
  }
61
- const results = options.search_type_id === "news" ? data.news_results : data.organic_results;
61
+ const results = options.search_type_id === "images" ? data.images : options.search_type_id === "news" ? data.news_results : data.organic_results;
62
62
  if (results === undefined) {
63
63
  console.log("Failed to Google.");
64
64
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.151",
3
+ "version": "1.4.152",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/UtilsBee.ts CHANGED
@@ -65,7 +65,7 @@ export class UtilsBee {
65
65
  if (data.news_results === undefined || data.organic_results === undefined) {
66
66
  return
67
67
  }
68
- const results : Record<string, any>[] | undefined = options.search_type_id === "news" ? data.news_results : data.organic_results
68
+ const results : Record<string, any>[] | undefined = options.search_type_id === "images" ? data.images : options.search_type_id === "news" ? data.news_results : data.organic_results
69
69
 
70
70
 
71
71
  if (results === undefined) {