@lancom/shared 0.0.358 → 0.0.359

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.
@@ -265,10 +265,11 @@ export default (IS_PRODUCT_PRESET_PRINT_PRICING, isEditor = false) => ({
265
265
  const spMaxPrice = (sp.pricing || []).reduce((price, pricing) => Math.max(price, pricing.price), 0);
266
266
  const maxPrice = this.printsPrice ? spMaxPrice + this.printsPrice : spMaxPrice;
267
267
  const availability = sp.quantityStock > 0 ? 'InStock' : 'OutOfStock';
268
+ const name = `${this.product.name} | ${sp.size?.shortName || ''} ${sp.color?.name || ''}`;
268
269
 
269
270
  const offer = {
270
271
  '@type': 'Offer',
271
- name: `${sp.size?.shortName || ''} / ${sp.color?.name || ''}`,
272
+ name,
272
273
  url,
273
274
  availability: `https://schema.org/${availability}`,
274
275
  price: +tax(maxPrice, this.gstTax).toFixed(2),
@@ -308,7 +309,7 @@ export default (IS_PRODUCT_PRESET_PRINT_PRICING, isEditor = false) => ({
308
309
  image,
309
310
  ...galleryImages.map(i => i.large).filter(i => !!i && i !== image)
310
311
  ],
311
- "name": `${this.product.name} | ${sp.size?.shortName || ''} ${sp.color?.name || ''}`,
312
+ "name": name,
312
313
  "description": description,
313
314
  "color": sp.color?.name,
314
315
  "size": sp.size?.shortName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.358",
3
+ "version": "0.0.359",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {