Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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-canary.723.7ba5844.0 to 4.27.3-canary.729.6906248.0

10

dist/index.js

@@ -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

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