@trackunit/react-core-contexts 1.3.121 → 1.3.122
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/index.cjs.js +2 -2
- package/index.esm.js +2 -2
- package/package.json +8 -8
package/index.cjs.js
CHANGED
|
@@ -111,7 +111,7 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlIntern
|
|
|
111
111
|
const invalidToken = graphQLErrors.some(x => {
|
|
112
112
|
return (
|
|
113
113
|
// saw it not unnecessary
|
|
114
|
-
x.extensions
|
|
114
|
+
x.extensions?.code === "UNAUTHENTICATED" ||
|
|
115
115
|
x.message.includes("Invalid token specified") ||
|
|
116
116
|
x.message.includes("Access denied! You need to be authorized to perform this action!"));
|
|
117
117
|
});
|
|
@@ -163,7 +163,7 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlIntern
|
|
|
163
163
|
request(operation) {
|
|
164
164
|
return new utilities.Observable(sink => {
|
|
165
165
|
return this.client.subscribe({ ...operation, query: graphql.print(operation.query) }, {
|
|
166
|
-
next: sink.next
|
|
166
|
+
next: value => sink.next(value),
|
|
167
167
|
complete: sink.complete.bind(sink),
|
|
168
168
|
error: sink.error.bind(sink),
|
|
169
169
|
});
|
package/index.esm.js
CHANGED
|
@@ -91,7 +91,7 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlIntern
|
|
|
91
91
|
const invalidToken = graphQLErrors.some(x => {
|
|
92
92
|
return (
|
|
93
93
|
// saw it not unnecessary
|
|
94
|
-
x.extensions
|
|
94
|
+
x.extensions?.code === "UNAUTHENTICATED" ||
|
|
95
95
|
x.message.includes("Invalid token specified") ||
|
|
96
96
|
x.message.includes("Access denied! You need to be authorized to perform this action!"));
|
|
97
97
|
});
|
|
@@ -143,7 +143,7 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlIntern
|
|
|
143
143
|
request(operation) {
|
|
144
144
|
return new Observable(sink => {
|
|
145
145
|
return this.client.subscribe({ ...operation, query: print(operation.query) }, {
|
|
146
|
-
next: sink.next
|
|
146
|
+
next: value => sink.next(value),
|
|
147
147
|
complete: sink.complete.bind(sink),
|
|
148
148
|
error: sink.error.bind(sink),
|
|
149
149
|
});
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.122",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@apollo/client": "3.
|
|
10
|
+
"@apollo/client": "3.13.8",
|
|
11
11
|
"react": "19.0.0",
|
|
12
12
|
"@js-temporal/polyfill": "^0.4.4",
|
|
13
13
|
"jest-fetch-mock": "^3.0.3",
|
|
14
|
-
"@trackunit/iris-app-api": "1.3.
|
|
15
|
-
"@trackunit/react-core-contexts-api": "1.4.
|
|
16
|
-
"@trackunit/react-core-hooks": "1.3.
|
|
17
|
-
"@trackunit/i18n-library-translation": "1.3.
|
|
18
|
-
"@trackunit/react-components": "1.4.
|
|
19
|
-
"@trackunit/iris-app-runtime-core": "1.4.
|
|
14
|
+
"@trackunit/iris-app-api": "1.3.96",
|
|
15
|
+
"@trackunit/react-core-contexts-api": "1.4.95",
|
|
16
|
+
"@trackunit/react-core-hooks": "1.3.97",
|
|
17
|
+
"@trackunit/i18n-library-translation": "1.3.101",
|
|
18
|
+
"@trackunit/react-components": "1.4.108",
|
|
19
|
+
"@trackunit/iris-app-runtime-core": "1.4.96",
|
|
20
20
|
"graphql": "^16.10.0",
|
|
21
21
|
"graphql-sse": "^2.5.4"
|
|
22
22
|
},
|