@graphcommerce/magento-payment-braintree 10.0.0-canary.68 → 10.0.0-canary.72

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
  # Change Log
2
2
 
3
+ ## 10.0.0-canary.72
4
+
5
+ ## 10.0.0-canary.71
6
+
7
+ ## 10.0.0-canary.70
8
+
9
+ ### Major Changes
10
+
11
+ - [#2565](https://github.com/graphcommerce-org/graphcommerce/pull/2565) [`c96dfcd`](https://github.com/graphcommerce-org/graphcommerce/commit/c96dfcdca981baca387c270ad9e2b9515cdd00cc) - Updated to Apollo Client 4 ([@paales](https://github.com/paales))
12
+
13
+ ## 10.0.0-canary.69
14
+
3
15
  ## 10.0.0-canary.68
4
16
 
5
17
  ## 10.0.0-canary.67
@@ -31,7 +31,7 @@ export type StartPaymentOptions = {
31
31
  }
32
32
 
33
33
  let clientPromise: Promise<Client> | undefined
34
- function getClientPromise(apolloClient: ApolloClient<unknown>) {
34
+ function getClientPromise(apolloClient: ApolloClient) {
35
35
  if (!clientPromise) {
36
36
  clientPromise = new Promise((resolve, reject) => {
37
37
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
@@ -39,8 +39,8 @@ function getClientPromise(apolloClient: ApolloClient<unknown>) {
39
39
  const res = await apolloClient.mutate({ mutation: UseBraintreeDocument })
40
40
 
41
41
  const authorization = res.data?.createBraintreeClientToken
42
- if (!authorization || res.errors?.[0]) {
43
- reject(res.errors?.[0])
42
+ if (!authorization || res.error) {
43
+ reject(res.error)
44
44
  return
45
45
  }
46
46
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-payment-braintree",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "10.0.0-canary.68",
5
+ "version": "10.0.0-canary.72",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,22 +19,22 @@
19
19
  "@types/braintree-web": "^3.96.17"
20
20
  },
21
21
  "dependencies": {
22
- "braintree-web": "^3.127.0"
22
+ "braintree-web": "^3.134.0"
23
23
  },
24
24
  "peerDependencies": {
25
- "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.68",
26
- "@graphcommerce/graphql": "^10.0.0-canary.68",
27
- "@graphcommerce/image": "^10.0.0-canary.68",
28
- "@graphcommerce/magento-cart": "^10.0.0-canary.68",
29
- "@graphcommerce/magento-cart-payment-method": "^10.0.0-canary.68",
30
- "@graphcommerce/magento-cart-shipping-address": "^10.0.0-canary.68",
31
- "@graphcommerce/magento-product": "^10.0.0-canary.68",
32
- "@graphcommerce/magento-product-configurable": "^10.0.0-canary.68",
33
- "@graphcommerce/magento-store": "^10.0.0-canary.68",
34
- "@graphcommerce/next-ui": "^10.0.0-canary.68",
35
- "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.68",
36
- "@graphcommerce/react-hook-form": "^10.0.0-canary.68",
37
- "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.68",
25
+ "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.72",
26
+ "@graphcommerce/graphql": "^10.0.0-canary.72",
27
+ "@graphcommerce/image": "^10.0.0-canary.72",
28
+ "@graphcommerce/magento-cart": "^10.0.0-canary.72",
29
+ "@graphcommerce/magento-cart-payment-method": "^10.0.0-canary.72",
30
+ "@graphcommerce/magento-cart-shipping-address": "^10.0.0-canary.72",
31
+ "@graphcommerce/magento-product": "^10.0.0-canary.72",
32
+ "@graphcommerce/magento-product-configurable": "^10.0.0-canary.72",
33
+ "@graphcommerce/magento-store": "^10.0.0-canary.72",
34
+ "@graphcommerce/next-ui": "^10.0.0-canary.72",
35
+ "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.72",
36
+ "@graphcommerce/react-hook-form": "^10.0.0-canary.72",
37
+ "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.72",
38
38
  "@lingui/core": "^5",
39
39
  "@lingui/macro": "^5",
40
40
  "@lingui/react": "^5",