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