sanity-plugin-shopify-assets 1.0.1 → 1.0.2
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/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/datastores/shopify.ts +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -2213,7 +2213,7 @@ const fetchSearch = props => {
|
|
|
2213
2213
|
resultsPerPage
|
|
2214
2214
|
} = props;
|
|
2215
2215
|
return defer(() => {
|
|
2216
|
-
return axios.get("https://".concat(projectId, ".api.sanity.
|
|
2216
|
+
return axios.get("https://".concat(projectId, ".api.sanity.io/v1/shopify/assets/").concat(dataset, "?shop=").concat(shop, "&query=").concat(encodeURIComponent(query)).concat(cursor && "&cursor=".concat(cursor), "&limit=").concat(resultsPerPage), {
|
|
2217
2217
|
withCredentials: true,
|
|
2218
2218
|
method: "GET"
|
|
2219
2219
|
});
|
|
@@ -2227,7 +2227,7 @@ const fetchList = props => {
|
|
|
2227
2227
|
cursor,
|
|
2228
2228
|
resultsPerPage
|
|
2229
2229
|
} = props;
|
|
2230
|
-
return defer(() => axios.get("https://".concat(projectId, ".api.sanity.
|
|
2230
|
+
return defer(() => axios.get("https://".concat(projectId, ".api.sanity.io/v1/shopify/assets/").concat(dataset, "?shop=").concat(shop).concat(cursor && "&cursor=".concat(cursor), "&limit=").concat(resultsPerPage), {
|
|
2231
2231
|
withCredentials: true,
|
|
2232
2232
|
method: "GET"
|
|
2233
2233
|
})).pipe(map(result => result.data));
|