@factorypure/client-helpers 1.1.10 → 1.1.11

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/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1346,7 +1346,7 @@ export const filterScrapeResultsV2 = ({ scrapeResults, variant, variantScrapeOpt
1346
1346
  function handleDuplicatesV2(results) {
1347
1347
  const filteredUniqueResultsMap = {};
1348
1348
  results.forEach((item) => {
1349
- const key = `${item.source}-${item.title}-${item.extracted_price}`;
1349
+ const key = `${item.source}-${item.title}-${item.extracted_total ?? item.extracted_price}`;
1350
1350
  if (!filteredUniqueResultsMap[key]) {
1351
1351
  filteredUniqueResultsMap[key] = item;
1352
1352
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorypure/client-helpers",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",