@faststore/api 1.10.30 → 1.10.33

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.10.33](https://github.com/vtex/faststore/compare/v1.10.32...v1.10.33) (2022-08-03)
7
+
8
+ **Note:** Version bump only for package @faststore/api
9
+
10
+
11
+
12
+
13
+
6
14
  ## 1.10.30 (2022-08-02)
7
15
 
8
16
 
@@ -595,8 +595,10 @@ function slugify(str) {
595
595
 
596
596
  const isBrand = x => x.type === 'brand' || isCollectionPageType(x) && x.pageType.toLowerCase() === 'brand';
597
597
 
598
+ const isCollection = x => isCollectionPageType(x) && x.pageType.toLowerCase() === 'collection';
599
+
598
600
  const slugifyRoot = root => {
599
- if (isBrand(root)) {
601
+ if (isBrand(root) || isCollection(root)) {
600
602
  return slugify(root.name);
601
603
  }
602
604