@common-stack/frontend-stack-react 4.0.1-alpha.32 → 4.0.1-alpha.36
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.
|
@@ -4,6 +4,7 @@ import {combineReducers,configureStore}from'@reduxjs/toolkit';import {persistRed
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
5
5
|
/* eslint-disable global-require */
|
|
6
6
|
/* eslint-disable no-underscore-dangle */
|
|
7
|
+
const REGISTER_CONTRIBUTIONS = 'contribution/REGISTER_CONTRIBUTIONS';
|
|
7
8
|
/**
|
|
8
9
|
* Add any reducers required for this app dirctly in to
|
|
9
10
|
* `combineReducers`
|
|
@@ -27,7 +28,7 @@ const createReduxStore = ({ scope, isDebug, isDev, reducers, rootEpic, enhancers
|
|
|
27
28
|
reducer: persistedReducer,
|
|
28
29
|
middleware: (getDefaultMiddleware) => getDefaultMiddleware({
|
|
29
30
|
serializableCheck: {
|
|
30
|
-
ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],
|
|
31
|
+
ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER, REGISTER_CONTRIBUTIONS],
|
|
31
32
|
},
|
|
32
33
|
}).concat(...middlewares),
|
|
33
34
|
devTools: isDev || isDebug,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
+
import type { ClusterNode } from 'ioredis';
|
|
2
3
|
/**
|
|
3
4
|
* This is for backend only
|
|
4
5
|
*/
|
|
@@ -10,7 +11,7 @@ export declare const config: Readonly<{
|
|
|
10
11
|
LOCAL_GRAPHQL_URL: string;
|
|
11
12
|
GRAPHQL_URL: string;
|
|
12
13
|
LOG_LEVEL: string;
|
|
13
|
-
REDIS_CLUSTER_URL:
|
|
14
|
+
REDIS_CLUSTER_URL: ClusterNode[];
|
|
14
15
|
REDIS_URL: string;
|
|
15
16
|
REDIS_CLUSTER_ENABLED: boolean;
|
|
16
17
|
REDIS_SENTINEL_ENABLED: boolean;
|
|
@@ -7,11 +7,11 @@ function getRedisClient(logger) {
|
|
|
7
7
|
throw new Error(`No nodes defined for cluster, ${config.REDIS_CLUSTER_URL}`);
|
|
8
8
|
}
|
|
9
9
|
logger?.info('Setting Redis.Cluster connection');
|
|
10
|
-
redisClient = new Cluster(config.REDIS_CLUSTER_URL
|
|
10
|
+
redisClient = new Cluster(config.REDIS_CLUSTER_URL);
|
|
11
11
|
}
|
|
12
12
|
else {
|
|
13
13
|
logger?.info('Setting Redis connection');
|
|
14
|
-
redisClient = new Redis(config.REDIS_URL
|
|
14
|
+
redisClient = new Redis(config.REDIS_URL);
|
|
15
15
|
}
|
|
16
16
|
return redisClient;
|
|
17
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/frontend-stack-react",
|
|
3
|
-
"version": "4.0.1-alpha.
|
|
3
|
+
"version": "4.0.1-alpha.36",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"watch": "npm run build:lib:watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@common-stack/client-react": "4.0.1-alpha.
|
|
32
|
+
"@common-stack/client-react": "4.0.1-alpha.36",
|
|
33
33
|
"@common-stack/core": "4.0.1-alpha.31"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"typescript": {
|
|
51
51
|
"definition": "lib/index.d.ts"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "8bbf23ccf6303d3a3d7720b4469b168b22d23483"
|
|
54
54
|
}
|