@anker-in/shopify-sdk 1.2.0-beta.16 → 1.2.0-beta.17

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/dist/index.mjs CHANGED
@@ -2287,7 +2287,7 @@ async function getBlog(client, options) {
2287
2287
  }
2288
2288
  }
2289
2289
  ${imageFragment}
2290
- ${metafieldFragment}
2290
+ ${hasMetafields ? metafieldFragment : ""}
2291
2291
  ${seoFragment}
2292
2292
  ${fragment}
2293
2293
  `
@@ -2337,7 +2337,7 @@ async function fetchAllPages2(client, options, afterCursor) {
2337
2337
  }
2338
2338
  }
2339
2339
  ${imageFragment}
2340
- ${metafieldFragment}
2340
+ ${hasMetafields ? metafieldFragment : ""}
2341
2341
  ${seoFragment}
2342
2342
  ${fragment}
2343
2343
  ${pageInfoFragment}
@@ -2396,7 +2396,7 @@ async function getArticle(client, options) {
2396
2396
  }
2397
2397
  }
2398
2398
  ${imageFragment}
2399
- ${metafieldFragment}
2399
+ ${hasArticleMetafields || hasBlogMetafields ? metafieldFragment : ""}
2400
2400
  ${seoFragment}
2401
2401
  ${articleFrag}
2402
2402
  ${blogFrag}
@@ -2458,7 +2458,7 @@ async function fetchAllArticles(client, options, afterCursor) {
2458
2458
  }
2459
2459
  }
2460
2460
  ${imageFragment}
2461
- ${metafieldFragment}
2461
+ ${hasMetafields ? metafieldFragment : ""}
2462
2462
  ${seoFragment}
2463
2463
  ${fragment}
2464
2464
  ${pageInfoFragment}
@@ -2541,7 +2541,7 @@ async function fetchArticlesInBlog(client, options, afterCursor) {
2541
2541
  }
2542
2542
  }
2543
2543
  ${imageFragment}
2544
- ${metafieldFragment}
2544
+ ${hasArticleMetafields || hasBlogMetafields ? metafieldFragment : ""}
2545
2545
  ${seoFragment}
2546
2546
  ${articleFrag}
2547
2547
  ${blogFrag}