@swell/apps-sdk 1.0.125 → 1.0.126
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 +6 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +6 -2
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13620,7 +13620,10 @@ function ShopifyBlog(instance, blogCategory) {
|
|
|
13620
13620
|
blogCategory = cloneStorefrontResource(blogCategory);
|
|
13621
13621
|
}
|
|
13622
13622
|
const allTags = deferWith(blogCategory.blogs, (blogs) => {
|
|
13623
|
-
|
|
13623
|
+
if (!Array.isArray(blogs?.results)) {
|
|
13624
|
+
return [];
|
|
13625
|
+
}
|
|
13626
|
+
const set = blogs.results.reduce(
|
|
13624
13627
|
(set2, blog) => {
|
|
13625
13628
|
for (const tag of blog.tags || []) {
|
|
13626
13629
|
set2.add(tag);
|
|
@@ -17085,11 +17088,12 @@ function bind13(_liquidSwell) {
|
|
|
17085
17088
|
hash;
|
|
17086
17089
|
constructor(token, remainTokens, liquid, parser) {
|
|
17087
17090
|
super(token, remainTokens, liquid);
|
|
17088
|
-
this.hash = md5(token.input);
|
|
17089
17091
|
this.templates = [];
|
|
17092
|
+
const tagBegin = token.begin;
|
|
17090
17093
|
while (remainTokens.length > 0) {
|
|
17091
17094
|
const token2 = remainTokens.shift();
|
|
17092
17095
|
if (TypeGuards4.isTagToken(token2) && token2.name === "endstyle") {
|
|
17096
|
+
this.hash = md5(token2.input.slice(tagBegin, token2.end));
|
|
17093
17097
|
return;
|
|
17094
17098
|
}
|
|
17095
17099
|
this.templates.push(parser.parseToken(token2, remainTokens));
|