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

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