@szymonpiatek/nextwordpress 0.0.20 → 0.0.21
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/client/index.cjs.map +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1063,8 +1063,8 @@ function createTIWishlistMutations(fetcher) {
|
|
|
1063
1063
|
async function addProduct(shareKey, input) {
|
|
1064
1064
|
return tiMutate(`${BASE4}/${shareKey}/add_product`, input);
|
|
1065
1065
|
}
|
|
1066
|
-
async function removeProduct(itemId) {
|
|
1067
|
-
return
|
|
1066
|
+
async function removeProduct(shareKey, itemId) {
|
|
1067
|
+
return tiMutate(`${BASE4}/${shareKey}/remove_product/${itemId}`, {}, "DELETE");
|
|
1068
1068
|
}
|
|
1069
1069
|
return { createWishlist, updateWishlist, deleteWishlist, addProduct, removeProduct };
|
|
1070
1070
|
}
|