@akinon/next 1.71.0-rc.10 → 1.71.0-rc.12
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/CHANGELOG.md +14 -0
- package/api/client.ts +5 -1
- package/data/client/checkout.ts +6 -3
- package/package.json +2 -2
- package/redux/middlewares/checkout.ts +1 -2
- package/utils/app-fetch.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @akinon/next
|
|
2
2
|
|
|
3
|
+
## 1.71.0-rc.12
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 65d3b862: ZERO-3054: Update headers in appFetch
|
|
8
|
+
|
|
9
|
+
## 1.71.0-rc.11
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- cc538c6a: ZERO-3048: Update hepsiPayMiddleware to use Success flag for availability check
|
|
14
|
+
- 5a333a57: ZERO-3061: Add success parameter for completeWalletPage
|
|
15
|
+
- f0b2f416: ZERO-3062: Update proxyRequest to handle multiple values for search parameters
|
|
16
|
+
|
|
3
17
|
## 1.71.0-rc.10
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/api/client.ts
CHANGED
|
@@ -43,7 +43,11 @@ async function proxyRequest(...args) {
|
|
|
43
43
|
Array.from(searchParams.keys())
|
|
44
44
|
.filter((key) => !['slug', 'options'].includes(key))
|
|
45
45
|
.forEach((key) => {
|
|
46
|
-
urlSearchParams.
|
|
46
|
+
urlSearchParams.delete(key);
|
|
47
|
+
|
|
48
|
+
searchParams.getAll(key).forEach((value) => {
|
|
49
|
+
urlSearchParams.append(key, value);
|
|
50
|
+
});
|
|
47
51
|
});
|
|
48
52
|
|
|
49
53
|
const extraHeaders: Record<string, string> = {};
|
package/data/client/checkout.ts
CHANGED
|
@@ -484,10 +484,13 @@ export const checkoutApi = api.injectEndpoints({
|
|
|
484
484
|
dispatch(setPaymentStepBusy(false));
|
|
485
485
|
}
|
|
486
486
|
}),
|
|
487
|
-
setWalletCompletePage: build.mutation<CheckoutResponse,
|
|
488
|
-
query: () => ({
|
|
487
|
+
setWalletCompletePage: build.mutation<CheckoutResponse, boolean>({
|
|
488
|
+
query: (success: boolean) => ({
|
|
489
489
|
url: buildClientRequestUrl(checkout.setWalletCompletePage),
|
|
490
|
-
method: 'POST'
|
|
490
|
+
method: 'POST',
|
|
491
|
+
body: {
|
|
492
|
+
success
|
|
493
|
+
}
|
|
491
494
|
}),
|
|
492
495
|
async onQueryStarted(arg, { dispatch, queryFulfilled }) {
|
|
493
496
|
dispatch(setPaymentStepBusy(true));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/next",
|
|
3
3
|
"description": "Core package for Project Zero Next",
|
|
4
|
-
"version": "1.71.0-rc.
|
|
4
|
+
"version": "1.71.0-rc.12",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"set-cookie-parser": "2.6.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@akinon/eslint-plugin-projectzero": "1.71.0-rc.
|
|
33
|
+
"@akinon/eslint-plugin-projectzero": "1.71.0-rc.12",
|
|
34
34
|
"@types/react-redux": "7.1.30",
|
|
35
35
|
"@types/set-cookie-parser": "2.4.7",
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "6.7.4",
|
|
@@ -368,8 +368,7 @@ export const hepsiPayMiddleware: Middleware = ({
|
|
|
368
368
|
) {
|
|
369
369
|
dispatch(
|
|
370
370
|
setHepsipayAvailability(
|
|
371
|
-
walletSelectionPage.page_context.paymentData.data
|
|
372
|
-
.IsAccountAlreadyLinked
|
|
371
|
+
walletSelectionPage.page_context.paymentData.data.Success
|
|
373
372
|
)
|
|
374
373
|
);
|
|
375
374
|
}
|
package/utils/app-fetch.ts
CHANGED
|
@@ -43,12 +43,12 @@ const appFetch = async <T>({
|
|
|
43
43
|
const requestURL = `${decodeURIComponent(commerceUrl)}${url}`;
|
|
44
44
|
|
|
45
45
|
init.headers = {
|
|
46
|
+
cookie: nextCookies.toString(),
|
|
46
47
|
...(init.headers ?? {}),
|
|
47
48
|
...(ServerVariables.globalHeaders ?? {}),
|
|
48
49
|
'Accept-Language': currentLocale.apiValue,
|
|
49
50
|
'x-currency': currency,
|
|
50
|
-
'x-forwarded-for': ip
|
|
51
|
-
cookie: nextCookies.toString()
|
|
51
|
+
'x-forwarded-for': ip
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
init.next = {
|