@thg-altitude/schemaorg 1.0.38 → 1.0.39

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thg-altitude/schemaorg",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -354,6 +354,7 @@ function generateProductSchema() {
354
354
  ...(variant?.barcode && { gtin13: variant.barcode.toString() }),
355
355
  offers: {
356
356
  "@type": "Offer",
357
+ sku: variant.sku.toString(),
357
358
  url: `${pageUrl}?variation=${variant?.sku}`,
358
359
  price: parseFloat(variant.price.price.amount),
359
360
  priceCurrency: currency,
@@ -245,6 +245,7 @@ if (hasMultipleVariants) {
245
245
 
246
246
  const offerObj = {
247
247
  "@type": "Offer",
248
+ "sku": variant.sku.toString(),
248
249
  "url": `${url}${Astro.props.url || ""}?variation=${variant.sku}`,
249
250
  "itemCondition": "https://schema.org/NewCondition",
250
251
  "availability": variant.inStock ? "https://schema.org/InStock" : "https://schema.org/OutOfStock"