@akinon/next 1.81.0-rc.3 → 1.81.0-rc.5

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.81.0-rc.5
4
+
5
+ ### Minor Changes
6
+
7
+ - 2d2ab446: ZERO-3226: Add device_info param to WalletPaymentPage request
8
+
9
+ ## 1.81.0-rc.4
10
+
11
+ ### Minor Changes
12
+
13
+ - 7d1b5af1: ZERO-3206: Encode search parameters in product data URL
14
+
3
15
  ## 1.81.0-rc.3
4
16
 
5
17
  ### Minor Changes
@@ -479,15 +479,19 @@ export const checkoutApi = api.injectEndpoints({
479
479
  CheckoutResponse,
480
480
  {
481
481
  payment_token?: string;
482
+ device_info?: {
483
+ [key: string]: any;
484
+ };
482
485
  }
483
486
  >({
484
- query: ({ payment_token }) => ({
487
+ query: ({ payment_token, device_info }) => ({
485
488
  url: buildClientRequestUrl(checkout.setWalletPaymentPage, {
486
489
  useFormData: true
487
490
  }),
488
491
  method: 'POST',
489
492
  body: {
490
- payment_token
493
+ payment_token,
494
+ device_info
491
495
  }
492
496
  }),
493
497
  async onQueryStarted(arg, { dispatch, queryFulfilled }) {
@@ -31,7 +31,7 @@ const getProductDataHandler = ({
31
31
  url +=
32
32
  '?' +
33
33
  Object.keys(searchParams)
34
- .map((key) => `${key}=${searchParams[key]}`)
34
+ .map((key) => `${key}=${encodeURIComponent(searchParams[key])}`)
35
35
  .join('&');
36
36
  }
37
37
 
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.81.0-rc.3",
4
+ "version": "1.81.0-rc.5",
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.81.0-rc.3",
33
+ "@akinon/eslint-plugin-projectzero": "1.81.0-rc.5",
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",