@factorypure/client-helpers 1.1.18 → 1.1.20

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 +2 -0
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -1403,6 +1403,7 @@ export function createDefaultFilterRegistry() {
1403
1403
  registry.registerRule(new RefurbishedUsedRule());
1404
1404
  // Register override rules
1405
1405
  registry.registerRule(new SkuMatchOverrideRule());
1406
+ registry.registerRule(new AIComparisonOverrideRule());
1406
1407
  registry.registerRule(new CalculatedSkuMatchOverrideRule());
1407
1408
  registry.registerRule(new AltSkuMatchOverrideRule());
1408
1409
  registry.registerRule(new ProductIdMatchOverrideRule());
@@ -1521,6 +1522,7 @@ export const filterScrapeResultsV2 = ({ scrapeResults, variant, variantScrapeOpt
1521
1522
  function handleDuplicatesV2(results) {
1522
1523
  const filteredUniqueResultsMap = {};
1523
1524
  results.forEach((item) => {
1525
+ // TODO ALEX this should probably compare on listing_hash
1524
1526
  const key = `${item.source}-${item.title}-${item.extracted_total ?? item.extracted_price}`;
1525
1527
  if (!filteredUniqueResultsMap[key]) {
1526
1528
  filteredUniqueResultsMap[key] = item;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorypure/client-helpers",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -10,6 +10,7 @@
10
10
  "type": "module",
11
11
  "scripts": {
12
12
  "build": "tsc",
13
+ "watch": "tsc --watch",
13
14
  "test": "echo \"Error: no test specified\" && exit 1"
14
15
  },
15
16
  "keywords": [],