umwd-components 0.1.688 → 0.1.689
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/src/data/loaders/e-commerce/getShop.js +1 -1
- package/dist/src/data/loaders/e-commerce/getSingleCategory.js +1 -1
- package/dist/src/data/loaders/e-commerce/getSingleProduct.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/data/loaders/e-commerce/getShop.ts +2 -1
- package/src/data/loaders/e-commerce/getSingleCategory.ts +8 -1
- package/src/data/loaders/e-commerce/getSingleProduct.ts +5 -0
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* @copyright Jelle Paulus
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
|
-
import{__awaiter as
|
|
7
|
+
import{__awaiter as e,__generator as i}from"../../../../node_modules/tslib/tslib.es6.js";import r from"../../../../node_modules/qs/lib/index.js";import{fetchData as t}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var n=o();function a(o){return e(this,void 0,void 0,(function(){var e;return i(this,(function(i){switch(i.label){case 0:return s(),4,(e=new URL("/api/products",n)).search=r.stringify({populate:{price:!0,image:!0,gallery:!0,dimensions:!0,categories:!0,brand:!0},pagination:{pageSize:4,page:o},filters:{is_archive:!1}}),[4,t(e.href)];case 1:return[2,i.sent()]}}))}))}export{a as getShop};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
import{__awaiter as r,__generator as
|
|
6
|
+
import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import t from"../../../../node_modules/qs/lib/index.js";import{fetchData as i}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as s}from"next/cache";var n=o();function c(o){return r(this,void 0,void 0,(function(){var r;return e(this,(function(e){switch(e.label){case 0:return s(),(r=new URL("/api/slugify/slugs/product-category/".concat(o),n)).search=t.stringify({filters:{is_archive:{$eq:!1}},populate:{products:{populate:{image:!0,price:!0}}}}),[4,i(r.href)];case 1:return[2,e.sent()]}}))}))}export{c as getSingleCategory};
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* @copyright Jelle Paulus
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
|
-
import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import i from"../../../../node_modules/qs/lib/index.js";import{fetchData as
|
|
7
|
+
import{__awaiter as r,__generator as e}from"../../../../node_modules/tslib/tslib.es6.js";import i from"../../../../node_modules/qs/lib/index.js";import{fetchData as s}from"../loaders.js";import{getStrapiURL as o}from"../../../lib/utils.js";import{unstable_noStore as t}from"next/cache";var n=o();function a(o){return r(this,void 0,void 0,(function(){var r;return e(this,(function(e){switch(e.label){case 0:return t(),(r=new URL("/api/slugify/slugs/product/".concat(o),n)).search=i.stringify({filters:{is_archive:{$eq:!1}},populate:{price:!0,image:!0,gallery:!0,dimensions:!0,categories:!0,brand:!0,vendors:!0}}),[4,s(r.href)];case 1:return[2,e.sent()]}}))}))}export{a as getSingleProduct};
|