@backpackjs/transform-product-feed
Advanced tools
Comparing version 4.27.3-canary.723.7ba5844.0 to 4.27.3-canary.729.6906248.0
@@ -23,5 +23,9 @@ "use strict"; | ||
const getProducts = ({ products, collections, options }) => { | ||
const feedCollectionProducts = collections | ||
.find((collection) => collection.handle === options.collectionHandle) | ||
?.products?.map(getProduct(products)); | ||
const optionCollection = options.collectionHandle; | ||
const productByHandle = getProduct(products); | ||
const byOptionsCollection = ({ handle }) => handle === optionCollection; | ||
const collection = collections.find(byOptionsCollection); | ||
const feedCollectionProducts = collection?.products | ||
.map((product) => product.handle) | ||
.map(productByHandle); | ||
return feedCollectionProducts || products; | ||
@@ -28,0 +32,0 @@ }; |
{ | ||
"name": "@backpackjs/transform-product-feed", | ||
"version": "4.27.3-canary.723.7ba5844.0", | ||
"version": "4.27.3-canary.729.6906248.0", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "author": "BackpackJS <dev@packdigial.com> (http://packdigital.com/)", | ||
}, | ||
"gitHead": "7ba58445d1d30a0c7fee75992d23bd942d7ff5f2" | ||
"gitHead": "69062484bd3bffbe8abe5812a28c9c853a6f8b47" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9898
98