@devite/shopware-client 1.5.6 → 1.5.7

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.cjs CHANGED
@@ -12891,12 +12891,9 @@ class AccountClient extends Client {
12891
12891
  * @throws {ShopwareError | import('ofetch').FetchError} if the request failed
12892
12892
  */
12893
12893
  async confirmRecoveryPassword(request) {
12894
- const response = await this.post(
12895
- `/account/recovery-password-confirm`,
12896
- this.client.withContextToken({
12897
- body: new JsonPayload(request)
12898
- })
12899
- );
12894
+ const response = await this.post(`/account/recovery-password-confirm`, {
12895
+ body: new JsonPayload(request)
12896
+ });
12900
12897
  if (response.statusCode === 200)
12901
12898
  return response.body.data;
12902
12899
  throw new ShopwareError("Failed to confirm recovery password", response);
@@ -12905,12 +12902,9 @@ class AccountClient extends Client {
12905
12902
  * @throws {ShopwareError | import('ofetch').FetchError} if the request failed
12906
12903
  */
12907
12904
  async requestPasswordRecoveryMail(request) {
12908
- const response = await this.post(
12909
- `/account/recovery-password`,
12910
- this.client.withContextToken({
12911
- body: new JsonPayload(request)
12912
- })
12913
- );
12905
+ const response = await this.post(`/account/recovery-password`, {
12906
+ body: new JsonPayload(request)
12907
+ });
12914
12908
  if (response.statusCode === 200)
12915
12909
  return response.body.data;
12916
12910
  throw new ShopwareError("Failed to request password recovery mail", response);
package/dist/index.mjs CHANGED
@@ -12889,12 +12889,9 @@ class AccountClient extends Client {
12889
12889
  * @throws {ShopwareError | import('ofetch').FetchError} if the request failed
12890
12890
  */
12891
12891
  async confirmRecoveryPassword(request) {
12892
- const response = await this.post(
12893
- `/account/recovery-password-confirm`,
12894
- this.client.withContextToken({
12895
- body: new JsonPayload(request)
12896
- })
12897
- );
12892
+ const response = await this.post(`/account/recovery-password-confirm`, {
12893
+ body: new JsonPayload(request)
12894
+ });
12898
12895
  if (response.statusCode === 200)
12899
12896
  return response.body.data;
12900
12897
  throw new ShopwareError("Failed to confirm recovery password", response);
@@ -12903,12 +12900,9 @@ class AccountClient extends Client {
12903
12900
  * @throws {ShopwareError | import('ofetch').FetchError} if the request failed
12904
12901
  */
12905
12902
  async requestPasswordRecoveryMail(request) {
12906
- const response = await this.post(
12907
- `/account/recovery-password`,
12908
- this.client.withContextToken({
12909
- body: new JsonPayload(request)
12910
- })
12911
- );
12903
+ const response = await this.post(`/account/recovery-password`, {
12904
+ body: new JsonPayload(request)
12905
+ });
12912
12906
  if (response.statusCode === 200)
12913
12907
  return response.body.data;
12914
12908
  throw new ShopwareError("Failed to request password recovery mail", response);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devite/shopware-client",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "Third party API client for Shopware 6.",
5
5
  "repository": "devite-io/shopware-client",
6
6
  "license": "MIT",