Socket
Socket
Sign inDemoInstall

@backpackjs/transform-product-feed

Package Overview
Dependencies
Maintainers
27
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backpackjs/transform-product-feed - npm Package Compare versions

Comparing version 4.27.3-next.0 to 4.27.3

15

dist/index.js

@@ -23,6 +23,13 @@ "use strict";

const getProducts = ({ products, collections, options }) => {
const feedCollectionProducts = collections
.find((collection) => collection.handle === options.collectionHandle)
?.products?.map(getProduct(products));
return feedCollectionProducts || 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);
if (feedCollectionProducts.filter(Boolean).length === 0) {
return products;
}
return feedCollectionProducts;
};

@@ -29,0 +36,0 @@ const getFeedItems = (product) => {

{
"name": "@backpackjs/transform-product-feed",
"version": "4.27.3-next.0",
"version": "4.27.3",
"license": "MIT",

@@ -25,3 +25,3 @@ "author": "BackpackJS <dev@packdigial.com> (http://packdigital.com/)",

},
"gitHead": "2f7ee29eba1fd51f01264295893efd2433ce3479"
"gitHead": "00d27df5e9960b541a676d1ba1f895cbfd63d191"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc