@akinon/next 1.110.0-rc.13 → 1.110.0-rc.15

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @akinon/next
2
2
 
3
+ ## 1.110.0-rc.15
4
+
5
+ ### Minor Changes
6
+
7
+ - 95b139d: ZERO-3795: Remove duplicate entry for SavedCard in PluginComponents map
8
+
9
+ ## 1.110.0-rc.14
10
+
11
+ ### Minor Changes
12
+
13
+ - fc752c98: ZERO-3795: Remove unnecessary redirection logic from payment middleware
14
+
3
15
  ## 1.110.0-rc.13
4
16
 
5
17
  ### Minor Changes
@@ -93,7 +93,6 @@ const PluginComponents = new Map([
93
93
  [Component.AkifastQuickLoginButton, Component.AkifastCheckoutButton]
94
94
  ],
95
95
  [Plugin.MultiBasket, [Component.MultiBasket]],
96
- [Plugin.SavedCard, [Component.SavedCard]],
97
96
  [
98
97
  Plugin.SimilarProducts,
99
98
  [
@@ -107,7 +106,6 @@ const PluginComponents = new Map([
107
106
  ]
108
107
  ],
109
108
  [Plugin.SavedCard, [Component.SavedCard, Component.IyzicoSavedCard]],
110
- [Plugin.SavedCard, [Component.SavedCard]],
111
109
  [Plugin.FlowPayment, [Component.FlowPayment]],
112
110
  [Plugin.VirtualTryOn, [Component.VirtualTryOnPlugin]],
113
111
  [Plugin.Hepsipay, [Component.Hepsipay]]
@@ -62,14 +62,6 @@ const withCompleteGpay =
62
62
  ip
63
63
  }
64
64
  );
65
-
66
- return NextResponse.redirect(
67
- `${url.origin}${getUrlPathWithLocale(
68
- '/orders/checkout/',
69
- req.cookies.get('pz-locale')?.value
70
- )}`,
71
- 303
72
- );
73
65
  }
74
66
 
75
67
  const request = await fetch(requestUrl, {
@@ -63,14 +63,6 @@ const withCompleteMasterpass =
63
63
  ip
64
64
  }
65
65
  );
66
-
67
- return NextResponse.redirect(
68
- `${url.origin}${getUrlPathWithLocale(
69
- '/orders/checkout/',
70
- req.cookies.get('pz-locale')?.value
71
- )}`,
72
- 303
73
- );
74
66
  }
75
67
 
76
68
  const request = await fetch(requestUrl, {
@@ -59,14 +59,6 @@ const withCompleteWallet =
59
59
  ip
60
60
  }
61
61
  );
62
-
63
- return NextResponse.redirect(
64
- `${url.origin}${getUrlPathWithLocale(
65
- '/orders/checkout/',
66
- req.cookies.get('pz-locale')?.value
67
- )}`,
68
- 303
69
- );
70
62
  }
71
63
 
72
64
  const request = await fetch(requestUrl, {
@@ -63,14 +63,6 @@ const withRedirectionPayment =
63
63
  ip
64
64
  }
65
65
  );
66
-
67
- return NextResponse.redirect(
68
- `${url.origin}${getUrlPathWithLocale(
69
- '/orders/checkout/',
70
- req.cookies.get('pz-locale')?.value
71
- )}`,
72
- 303
73
- );
74
66
  }
75
67
 
76
68
  const request = await fetch(requestUrl, {
@@ -63,14 +63,6 @@ const withSavedCardRedirection =
63
63
  ip
64
64
  }
65
65
  );
66
-
67
- return NextResponse.redirect(
68
- `${url.origin}${getUrlPathWithLocale(
69
- '/orders/checkout/',
70
- req.cookies.get('pz-locale')?.value
71
- )}`,
72
- 303
73
- );
74
66
  }
75
67
 
76
68
  const request = await fetch(requestUrl, {
@@ -62,14 +62,6 @@ const withThreeDRedirection =
62
62
  ip
63
63
  }
64
64
  );
65
-
66
- return NextResponse.redirect(
67
- `${url.origin}${getUrlPathWithLocale(
68
- '/orders/checkout/',
69
- req.cookies.get('pz-locale')?.value
70
- )}`,
71
- 303
72
- );
73
65
  }
74
66
 
75
67
  const request = await fetch(requestUrl, {
@@ -83,14 +83,6 @@ const withWalletCompleteRedirection =
83
83
  ip
84
84
  }
85
85
  );
86
-
87
- return NextResponse.redirect(
88
- `${url.origin}${getUrlPathWithLocale(
89
- '/orders/checkout/',
90
- req.cookies.get('pz-locale')?.value
91
- )}`,
92
- 303
93
- );
94
86
  }
95
87
 
96
88
  const request = await fetch(requestUrl, {
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.110.0-rc.13",
4
+ "version": "1.110.0-rc.15",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -35,7 +35,7 @@
35
35
  "set-cookie-parser": "2.6.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@akinon/eslint-plugin-projectzero": "1.110.0-rc.13",
38
+ "@akinon/eslint-plugin-projectzero": "1.110.0-rc.15",
39
39
  "@babel/core": "7.26.10",
40
40
  "@babel/preset-env": "7.26.9",
41
41
  "@babel/preset-typescript": "7.27.0",