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

commercelayer

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commercelayer - npm Package Compare versions

Comparing version 1.7.3 to 1.7.4

2

package.json
{
"name": "commercelayer",
"version": "1.7.3",
"version": "1.7.4",
"description": "The Official Commerce Layer JS library",

@@ -5,0 +5,0 @@ "main": "./src/main.js",

@@ -324,15 +324,11 @@ const config = require('./config')

console.log(order.line_items.data);
if (order) {
if (order.line_items.length > 0) {
api.updateShoppingBagItems(response)
ui.hideShoppingBagUnavailableMessage() // refactor
ui.updateShoppingBagSummary(response.dataset.data[0])
ui.updateShoppingBagCheckout(response)
if (response.get('skus_count') == 0) {
ui.clearShoppingBag()
}
return response;
if (order && order.line_items) {
api.updateShoppingBagItems(response)
ui.hideShoppingBagUnavailableMessage() // refactor
ui.updateShoppingBagSummary(response.dataset.data[0])
ui.updateShoppingBagCheckout(response)
if (response.get('skus_count') == 0) {
ui.clearShoppingBag()
}
return response;
}

@@ -339,0 +335,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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