@plentymarkets/shop-api 0.94.0 → 0.94.1
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/lib/index.cjs.js +1 -1
- package/lib/index.es.js +1 -1
- package/package.json +2 -2
- package/server/index.js +1 -1
package/lib/index.cjs.js
CHANGED
@@ -2107,7 +2107,7 @@ const doAddCartItems = async (context, params) => {
|
|
2107
2107
|
const doAddCategory = async (context, params) => {
|
2108
2108
|
const url = new URL('rest/storefront/categories/add', context.config.api.url);
|
2109
2109
|
const { data } = await context.client.post(url.href, params);
|
2110
|
-
return { data: data };
|
2110
|
+
return { data: data.data.category };
|
2111
2111
|
};
|
2112
2112
|
|
2113
2113
|
/**
|
package/lib/index.es.js
CHANGED
@@ -2103,7 +2103,7 @@ const doAddCartItems = async (context, params) => {
|
|
2103
2103
|
const doAddCategory = async (context, params) => {
|
2104
2104
|
const url = new URL('rest/storefront/categories/add', context.config.api.url);
|
2105
2105
|
const { data } = await context.client.post(url.href, params);
|
2106
|
-
return { data: data };
|
2106
|
+
return { data: data.data.category };
|
2107
2107
|
};
|
2108
2108
|
|
2109
2109
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@plentymarkets/shop-api",
|
3
|
-
"version": "0.94.
|
3
|
+
"version": "0.94.1",
|
4
4
|
"sideEffects": false,
|
5
5
|
"private": false,
|
6
6
|
"publishConfig": {
|
@@ -45,5 +45,5 @@
|
|
45
45
|
"lib/**/*",
|
46
46
|
"server/**/*"
|
47
47
|
],
|
48
|
-
"gitHead": "
|
48
|
+
"gitHead": "d568b91a0dc80e06154682f044b9ead009615349"
|
49
49
|
}
|
package/server/index.js
CHANGED
@@ -2117,7 +2117,7 @@ const doAddCartItems = async (context, params) => {
|
|
2117
2117
|
const doAddCategory = async (context, params) => {
|
2118
2118
|
const url = new URL('rest/storefront/categories/add', context.config.api.url);
|
2119
2119
|
const { data } = await context.client.post(url.href, params);
|
2120
|
-
return { data: data };
|
2120
|
+
return { data: data.data.category };
|
2121
2121
|
};
|
2122
2122
|
|
2123
2123
|
/**
|