@shopware/api-client 1.1.1 → 1.1.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/README.md CHANGED
@@ -279,8 +279,8 @@ calling `apiClient.hook` will autocomplete the list of available hooks.
279
279
 
280
280
  Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/api-client/CHANGELOG.md)
281
281
 
282
- ### Latest changes: 1.1.1
282
+ ### Latest changes: 1.1.2
283
283
 
284
284
  ### Patch Changes
285
285
 
286
- - [#1425](https://github.com/shopware/frontends/pull/1425) [`8df7651`](https://github.com/shopware/frontends/commit/8df76511c8afca78c79fe3f009ed32d207913f86) Thanks [@quando1910](https://github.com/quando1910)! - - fix: override header value when invoke adminApiClient and storeAPiClient
286
+ - [#1434](https://github.com/shopware/frontends/pull/1434) [`938c4cf`](https://github.com/shopware/frontends/commit/938c4cfe6438f0e11a34f69bc7a183f10ba7f381) Thanks [@quando1910](https://github.com/quando1910)! - set authentication header instead of appending, when session has expired and is being refreshed
package/dist/index.cjs CHANGED
@@ -262,7 +262,7 @@ function createAdminAPIClient(params) {
262
262
  if (!context.response._data)
263
263
  return;
264
264
  updateSessionData(context.response._data);
265
- options.headers.append(
265
+ options.headers.set(
266
266
  "Authorization",
267
267
  createAuthorizationHeader(sessionData.accessToken)
268
268
  );
package/dist/index.mjs CHANGED
@@ -256,7 +256,7 @@ function createAdminAPIClient(params) {
256
256
  if (!context.response._data)
257
257
  return;
258
258
  updateSessionData(context.response._data);
259
- options.headers.append(
259
+ options.headers.set(
260
260
  "Authorization",
261
261
  createAuthorizationHeader(sessionData.accessToken)
262
262
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware/api-client",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Shopware client for API connection.",
5
5
  "author": "Shopware",
6
6
  "type": "module",