@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 +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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.
|
|
282
|
+
### Latest changes: 1.1.2
|
|
283
283
|
|
|
284
284
|
### Patch Changes
|
|
285
285
|
|
|
286
|
-
- [#
|
|
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.
|
|
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.
|
|
259
|
+
options.headers.set(
|
|
260
260
|
"Authorization",
|
|
261
261
|
createAuthorizationHeader(sessionData.accessToken)
|
|
262
262
|
);
|