@shopkit/data-layer 1.4.5 → 1.4.6

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.
@@ -3783,10 +3783,10 @@ var PRODUCT_ENDPOINTS = {
3783
3783
  getProduct: (v = DEFAULT_VERSION) => `/api/${v}/product/details`,
3784
3784
  getProductsByHandles: (v = DEFAULT_VERSION) => `/api/${v}/product/details`,
3785
3785
  getCollections: (v = DEFAULT_VERSION) => `/api/${v}/collections`,
3786
- getCollectionByHandle: (v = DEFAULT_VERSION, h) => `/api/${v}/collections/handle/${h}`,
3787
- getCollectionById: (v = DEFAULT_VERSION, id) => `/api/${v}/collections/${id}`,
3786
+ getCollectionByHandle: (v = DEFAULT_VERSION, h) => `/api/${v}/collections/handle/${encodeURIComponent(h)}`,
3787
+ getCollectionById: (v = DEFAULT_VERSION, id) => `/api/${v}/collections/${encodeURIComponent(id)}`,
3788
3788
  getCollectionsByHandles: (v = DEFAULT_VERSION) => `/api/${v}/collections/details`,
3789
- getCollectionFilters: (v = DEFAULT_VERSION, collectionHandle) => `/api/${v}/storefront/collections/${collectionHandle}/filters`
3789
+ getCollectionFilters: (v = DEFAULT_VERSION, collectionHandle) => `/api/${v}/storefront/collections/${encodeURIComponent(collectionHandle)}/filters`
3790
3790
  };
3791
3791
 
3792
3792
  // src/adapters/custom/product/service.ts