@graphcommerce/magento-customer 4.5.1 → 4.5.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/CHANGELOG.md +11 -0
- package/link/onAuthenticationError.ts +2 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1509](https://github.com/graphcommerce-org/graphcommerce/pull/1509) [`711fa6e04`](https://github.com/graphcommerce-org/graphcommerce/commit/711fa6e04519bbe91825fec7e1714277c1a8fa68) Thanks [@paales](https://github.com/paales)! - onAuthenticationError fix thrown exception on error handling
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`0ab7c5465`](https://github.com/graphcommerce-org/graphcommerce/commit/0ab7c5465441cba9bf8cd185a6790ce2f443f4ed)]:
|
|
10
|
+
- @graphcommerce/next-ui@4.8.4
|
|
11
|
+
- @graphcommerce/ecommerce-ui@1.0.18
|
|
12
|
+
- @graphcommerce/magento-store@4.2.9
|
|
13
|
+
|
|
3
14
|
## 4.5.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -26,9 +26,10 @@ export const onAuthenticationError = onError(({ graphQLErrors, operation }) => {
|
|
|
26
26
|
const { cache } = operation.getContext()
|
|
27
27
|
if (graphQLErrors) {
|
|
28
28
|
for (const err of graphQLErrors) {
|
|
29
|
-
if (err.extensions
|
|
29
|
+
if (err.extensions?.category === 'graphql-authorization') {
|
|
30
30
|
// Modify the operation context with a new token
|
|
31
31
|
invalidateToken(cache as InMemoryCache)
|
|
32
|
+
break;
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-customer",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.5.
|
|
5
|
+
"version": "4.5.2",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"type-fest": "^2.12.2"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@graphcommerce/ecommerce-ui": "1.0.
|
|
22
|
+
"@graphcommerce/ecommerce-ui": "1.0.18",
|
|
23
23
|
"@graphcommerce/graphql": "3.2.0",
|
|
24
24
|
"@graphcommerce/graphql-mesh": "4.1.3",
|
|
25
25
|
"@graphcommerce/image": "3.1.6",
|
|
26
26
|
"@graphcommerce/magento-graphql": "3.0.13",
|
|
27
|
-
"@graphcommerce/magento-store": "4.2.
|
|
28
|
-
"@graphcommerce/next-ui": "4.8.
|
|
27
|
+
"@graphcommerce/magento-store": "4.2.9",
|
|
28
|
+
"@graphcommerce/next-ui": "4.8.4",
|
|
29
29
|
"@graphcommerce/react-hook-form": "3.2.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|