@common-stack/frontend-stack-react 6.0.6-alpha.6 → 6.0.6-alpha.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.
|
@@ -64,7 +64,7 @@ const containerMiddleware = async (req, res, next) => {
|
|
|
64
64
|
logger.debug(`Successfully cleaned up - ID: ${requestId}`);
|
|
65
65
|
}
|
|
66
66
|
catch (error) {
|
|
67
|
-
logger.error(
|
|
67
|
+
logger.error(error, 'Error during container cleanup - ID: [%s]', requestId);
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
next();
|
|
@@ -4,7 +4,7 @@ const stripCircular = (from, seen) => {
|
|
|
4
4
|
const to = Array.isArray(from) ? [] : {};
|
|
5
5
|
seen = seen || [];
|
|
6
6
|
seen.push(from);
|
|
7
|
-
Object.getOwnPropertyNames(from).forEach(key => {
|
|
7
|
+
Object.getOwnPropertyNames(from).forEach((key) => {
|
|
8
8
|
if (!from[key] || (typeof from[key] !== 'object' && !Array.isArray(from[key]))) {
|
|
9
9
|
to[key] = from[key];
|
|
10
10
|
}
|
|
@@ -14,7 +14,7 @@ const initializeCache = ({ cache, initialState, clientState, logger }) => {
|
|
|
14
14
|
logger.debug('Cache restored with initial state');
|
|
15
15
|
}
|
|
16
16
|
catch (err) {
|
|
17
|
-
logger.error('Error restoring cache'
|
|
17
|
+
logger.error(err, 'Error restoring cache');
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
@@ -28,7 +28,7 @@ const initializeCache = ({ cache, initialState, clientState, logger }) => {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
catch (err) {
|
|
31
|
-
logger.error('Error writing to cache'
|
|
31
|
+
logger.error(err, 'Error writing to cache');
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -32,7 +32,7 @@ const createApolloClient = ({ scope, isDev, isDebug, isSSR, getDataIdFromObject,
|
|
|
32
32
|
return !!result.find((item) => item && isBoolean(item));
|
|
33
33
|
}
|
|
34
34
|
catch (e) {
|
|
35
|
-
logger.error('Error occurred in retryLink attempt condition'
|
|
35
|
+
logger.error(e, 'Error occurred in retryLink attempt condition');
|
|
36
36
|
throw e;
|
|
37
37
|
}
|
|
38
38
|
},
|
|
@@ -42,9 +42,10 @@ const createApolloClient = ({ scope, isDev, isDebug, isSSR, getDataIdFromObject,
|
|
|
42
42
|
const connectionParams = async () => {
|
|
43
43
|
logger.debug('Getting WebSocket connection parameters');
|
|
44
44
|
const param = {};
|
|
45
|
-
|
|
45
|
+
const promises = await Promise.all(clientState.connectionParams);
|
|
46
|
+
for (const connectionParam of promises) {
|
|
46
47
|
const result = await connectionParam();
|
|
47
|
-
merge(param,
|
|
48
|
+
merge(param, result);
|
|
48
49
|
}
|
|
49
50
|
return param;
|
|
50
51
|
};
|
|
@@ -20,5 +20,5 @@ interface IReduxStore<S = any> {
|
|
|
20
20
|
* Add any reducers required for this app dirctly in to
|
|
21
21
|
* `combineReducers`
|
|
22
22
|
*/
|
|
23
|
-
export declare const createReduxStore: ({ scope, isDebug, isDev, reducers, rootEpic, enhancers, epicMiddleware, preMiddleware, postMiddleware, middleware, initialState, persistConfig, reduxConfig, }: IReduxStore<any>) => import("
|
|
23
|
+
export declare const createReduxStore: ({ scope, isDebug, isDev, reducers, rootEpic, enhancers, epicMiddleware, preMiddleware, postMiddleware, middleware, initialState, persistConfig, reduxConfig, }: IReduxStore<any>) => import("redux").Store<any, import("redux").UnknownAction, unknown>;
|
|
24
24
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/frontend-stack-react",
|
|
3
|
-
"version": "6.0.6-alpha.
|
|
3
|
+
"version": "6.0.6-alpha.72",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"@apollo/client": "^3.9.0",
|
|
33
33
|
"@cdm-logger/client": "^9.0.3",
|
|
34
34
|
"@cdm-logger/server": "^9.0.3",
|
|
35
|
-
"@
|
|
36
|
-
"@common-stack/client-core": "6.0.6-alpha.
|
|
37
|
-
"@common-stack/client-react": "6.0.6-alpha.
|
|
38
|
-
"@common-stack/components-pro": "6.0.6-alpha.
|
|
39
|
-
"@common-stack/core": "6.0.6-alpha.
|
|
40
|
-
"@common-stack/remix-router-redux": "6.0.6-alpha.
|
|
41
|
-
"@common-stack/server-core": "6.0.6-alpha.
|
|
35
|
+
"@common-stack/cache-api-server": "6.0.6-alpha.72",
|
|
36
|
+
"@common-stack/client-core": "6.0.6-alpha.61",
|
|
37
|
+
"@common-stack/client-react": "6.0.6-alpha.61",
|
|
38
|
+
"@common-stack/components-pro": "6.0.6-alpha.50",
|
|
39
|
+
"@common-stack/core": "6.0.6-alpha.50",
|
|
40
|
+
"@common-stack/remix-router-redux": "6.0.6-alpha.50",
|
|
41
|
+
"@common-stack/server-core": "6.0.6-alpha.72",
|
|
42
42
|
"@reduxjs/toolkit": "^2.2.6",
|
|
43
|
-
"@remix-run/express": "
|
|
44
|
-
"@remix-run/node": "
|
|
45
|
-
"@remix-run/react": "
|
|
43
|
+
"@remix-run/express": "~2.10.1",
|
|
44
|
+
"@remix-run/node": "~2.10.1",
|
|
45
|
+
"@remix-run/react": "~2.10.1",
|
|
46
46
|
"@sentry/browser": "~5.11.2",
|
|
47
47
|
"cors": "^2.8.5",
|
|
48
48
|
"cross-fetch": "^4.0.0",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@apollo/client": ">=3.0.0",
|
|
90
|
-
"@remix-run/react": "^2.9.2",
|
|
91
90
|
"react": ">=18",
|
|
92
|
-
"react-dom": ">=18"
|
|
91
|
+
"react-dom": ">=18",
|
|
92
|
+
"redux": ">=5.0.0"
|
|
93
93
|
},
|
|
94
94
|
"publishConfig": {
|
|
95
95
|
"access": "public"
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"typescript": {
|
|
98
98
|
"definition": "lib/index.d.ts"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "d3f5d29136d61ce971b64030284e8d24b61a2469"
|
|
101
101
|
}
|