triangle-utils 1.2.7 → 1.2.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "main": "Utils.js",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -59,7 +59,7 @@ export default class Utils_Bee {
59
59
  async youtube_search(query) {
60
60
  for (let i = 0; i < 3; i++) {
61
61
  try {
62
- const bee_url = "https://app.scrapingbee.com/api/v1/youtube/search?api_key=" + this.config.scraping_bee_api_key + "&search=" + encodeURI(query)
62
+ const bee_url = "https://app.scrapingbee.com/api/v1/youtube/search?api_key=" + this.config.scraping_bee_api_key + "&search=" + encodeURI(query) + "&upload_date=today"
63
63
  console.log(bee_url)
64
64
  const response = await fetch(bee_url)
65
65
  if (!response.ok) {
@@ -114,8 +114,8 @@ export default class Utils_S3Vectors {
114
114
  for (let i = 0; i < vector_keys.length; i += 100) {
115
115
  await this.s3vectors.deleteVectors({
116
116
  vectorBucketName : vector_bucket,
117
- indexName : vector_index.slice(i, i + 100),
118
- keys : vector_keys
117
+ indexName : vector_index,
118
+ keys : vector_keys.slice(i, i + 100)
119
119
  })
120
120
  }
121
121
  }