@swell/apps-sdk 1.0.157 → 1.0.158
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.cjs +25 -9
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +25 -9
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +25 -9
- package/dist/index.mjs.map +3 -3
- package/dist/types/shopify.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -864,7 +864,6 @@ var RESOURCE_CLONE_PROPS = Object.freeze([
|
|
|
864
864
|
"_getResourceObject",
|
|
865
865
|
"_collection",
|
|
866
866
|
"_swell",
|
|
867
|
-
"_query",
|
|
868
867
|
"_params",
|
|
869
868
|
"_id",
|
|
870
869
|
"_resourceName"
|
|
@@ -15412,15 +15411,32 @@ function ShopifyBlog(instance, blogCategory) {
|
|
|
15412
15411
|
return new ShopifyResource({
|
|
15413
15412
|
all_tags: allTags,
|
|
15414
15413
|
articles: deferWith(blogCategory, (blogCategory2) => {
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
|
|
15420
|
-
|
|
15421
|
-
|
|
15414
|
+
const { page, limit: limit2 } = instance.swell.queryParams;
|
|
15415
|
+
const categoryBlogs = new SwellStorefrontCollection(
|
|
15416
|
+
instance.swell,
|
|
15417
|
+
"content/blogs",
|
|
15418
|
+
{
|
|
15419
|
+
page,
|
|
15420
|
+
limit: limit2,
|
|
15421
|
+
category_id: blogCategory2.id,
|
|
15422
|
+
expand: "author"
|
|
15423
|
+
},
|
|
15424
|
+
async function() {
|
|
15425
|
+
return this._defaultGetter().call(this);
|
|
15422
15426
|
}
|
|
15423
|
-
)
|
|
15427
|
+
);
|
|
15428
|
+
return categoryBlogs._cloneWithCompatibilityResult((blogs) => {
|
|
15429
|
+
return {
|
|
15430
|
+
...blogs,
|
|
15431
|
+
results: blogs?.results?.map(
|
|
15432
|
+
(blog) => ShopifyArticle(
|
|
15433
|
+
instance,
|
|
15434
|
+
blog,
|
|
15435
|
+
blogCategory2
|
|
15436
|
+
)
|
|
15437
|
+
)
|
|
15438
|
+
};
|
|
15439
|
+
}) || [];
|
|
15424
15440
|
}),
|
|
15425
15441
|
articles_count: deferWith(blogCategory.blogs, (blogs) => blogs?.count || 0),
|
|
15426
15442
|
handle: defer(() => blogCategory.slug),
|