@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.js CHANGED
@@ -13647,7 +13647,10 @@ ${formattedMessage}`;
13647
13647
  blogCategory = cloneStorefrontResource(blogCategory);
13648
13648
  }
13649
13649
  const allTags = deferWith(blogCategory.blogs, (blogs) => {
13650
- const set = blogs?.results?.reduce(
13650
+ if (!Array.isArray(blogs?.results)) {
13651
+ return [];
13652
+ }
13653
+ const set = blogs.results.reduce(
13651
13654
  (set2, blog) => {
13652
13655
  for (const tag of blog.tags || []) {
13653
13656
  set2.add(tag);
@@ -17104,11 +17107,12 @@ ${injects.join("\n")}<\/script>`;
17104
17107
  hash;
17105
17108
  constructor(token, remainTokens, liquid, parser) {
17106
17109
  super(token, remainTokens, liquid);
17107
- this.hash = md5(token.input);
17108
17110
  this.templates = [];
17111
+ const tagBegin = token.begin;
17109
17112
  while (remainTokens.length > 0) {
17110
17113
  const token2 = remainTokens.shift();
17111
17114
  if (import_liquidjs18.TypeGuards.isTagToken(token2) && token2.name === "endstyle") {
17115
+ this.hash = md5(token2.input.slice(tagBegin, token2.end));
17112
17116
  return;
17113
17117
  }
17114
17118
  this.templates.push(parser.parseToken(token2, remainTokens));