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

@commercetools/product-json-to-csv

Package Overview
Dependencies
Maintainers
11
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools/product-json-to-csv - npm Package Compare versions

Comparing version 4.1.3 to 5.0.0

7

lib/map-product-data.js

@@ -179,9 +179,10 @@ "use strict";

static _mapPriceToString(price) {
var _price$customerGroup;
// Full price:
// 'country-currencyCode centAmount|discounted.centAmount@customerGroup.name#channel.key$validFrom~validUntil'
const customerGroupName = (_price$customerGroup = price.customerGroup) === null || _price$customerGroup === void 0 ? void 0 : _price$customerGroup.name;
return (0, _commonTags.oneLineTrim)`
${price.country ? `${price.country}-` : ''}
${price.value.currencyCode} ${price.value.centAmount}
${price.discounted ? `|${price.discounted.value.centAmount}` : ''}
${price.customerGroup && price.customerGroup.name ? `@${price.customerGroup.name}` : ''}
${price.value.currencyCode} ${price.value.centAmount}${price.discounted ? `|${price.discounted.value.centAmount}` : ''}${customerGroupName ? ` ${price.customerGroup.name}` : ''}
${price.channel && price.channel.key ? `#${price.channel.key}` : ''}

@@ -188,0 +189,0 @@ ${price.validFrom ? `$${price.validFrom}` : ''}

@@ -7,3 +7,3 @@ {

"name": "@commercetools/product-json-to-csv",
"version": "4.1.3",
"version": "5.0.0",
"description": "Converts commercetools products from JSON to CSV",

@@ -49,3 +49,3 @@ "keywords": [

"@commercetools/sdk-middleware-http": "^6.0.4",
"@commercetools/sdk-middleware-user-agent": "^2.1.2",
"@commercetools/sdk-middleware-user-agent": "^2.1.3",
"JSONStream": "^1.3.5",

@@ -73,4 +73,3 @@ "archiver": "^3.0.0",

"unzipper": "0.10.7"
},
"gitHead": "c67866b7519f95e5430ae078356674fcc4dcfeb5"
}
}
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