rerobe-js-orm 4.1.9 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -679,7 +679,7 @@ class ReRobeProductHelpers {
679
679
  id: productObj.documentId,
680
680
  title: productObj.metaDataTitle || productObj.title,
681
681
  description: productObj.description || '',
682
- link: `${primaryDomain}/products/${productObj.handle}`,
682
+ link: `https://${primaryDomain}/products/${productObj.handle}`,
683
683
  image_link: productObj.imageUrls && productObj.imageUrls.length > 0 ? productObj.imageUrls[0] : '',
684
684
  price: `${Number(productObj.price).toFixed(2)} ${currency}`,
685
685
  cost_of_goods_sold: productObj.costPerItem
@@ -759,11 +759,11 @@ class ReRobeProductHelpers {
759
759
  return {
760
760
  id: productObj.documentId,
761
761
  title: productObj.metaDataTitle || productObj.title,
762
- description: productObj.description || '',
762
+ description: productObj.metaDataDescription || this.autoCreateMetaDescription(productObj),
763
763
  availability: availabilityMapper(productObj.status),
764
764
  condition: 'used',
765
765
  price: `${Number(productObj.price).toFixed(2)} ${currency}`,
766
- link: `${primaryDomain}/products/${productObj.handle}`,
766
+ link: `https://${primaryDomain}/products/${productObj.handle}`,
767
767
  image_link: productObj.imageUrls && productObj.imageUrls.length > 0 ? productObj.imageUrls[0] : '',
768
768
  sale_price: isOnSale ? `${Number(productObj.salePrice).toFixed(2)} ${currency}` : undefined,
769
769
  brand: productObj.brand || 'Unknown',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "4.1.9",
3
+ "version": "4.2.1",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",