@aprilium/tripsm_global-states 0.0.46 → 0.0.48
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/lib/index.d.ts +3 -1
- package/lib/index.js +2 -2
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { PersistConfig } from 'redux-persist';
|
|
|
6
6
|
import { State as passengerState } from '@aprilium/tripsm_passenger/lib/state';
|
|
7
7
|
import { State as constantState } from '@aprilium/tripsm_constants/lib/state';
|
|
8
8
|
import passengerSaga from '@aprilium/tripsm_passenger/lib/effects';
|
|
9
|
+
import constantsSaga from '@aprilium/tripsm_constants/lib/effects';
|
|
9
10
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
10
11
|
export declare const reducers: {
|
|
11
12
|
passenger: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
|
|
@@ -13,6 +14,7 @@ export declare const reducers: {
|
|
|
13
14
|
};
|
|
14
15
|
export declare const initialSagas: {
|
|
15
16
|
passenger: typeof passengerSaga;
|
|
17
|
+
constants: typeof constantsSaga;
|
|
16
18
|
};
|
|
17
19
|
export type States = {
|
|
18
20
|
passenger: passengerState;
|
|
@@ -20,7 +22,7 @@ export type States = {
|
|
|
20
22
|
};
|
|
21
23
|
export type StateName = 'passenger' | 'constants';
|
|
22
24
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
23
|
-
export declare const sagas: (typeof passengerSaga)[];
|
|
25
|
+
export declare const sagas: (typeof passengerSaga | typeof constantsSaga)[];
|
|
24
26
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
25
27
|
waitForRehydrate?: boolean): void;
|
|
26
28
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -58,11 +58,11 @@ var react_1 = require("redux-persist/integration/react");
|
|
|
58
58
|
var redux_persist_1 = require("redux-persist");
|
|
59
59
|
var lib_1 = require("@aprilium/tripsm_passenger/lib");
|
|
60
60
|
var lib_2 = require("@aprilium/tripsm_constants/lib");
|
|
61
|
-
//import state
|
|
62
61
|
var state_1 = require("@aprilium/tripsm_passenger/lib/state");
|
|
63
62
|
var state_2 = require("@aprilium/tripsm_constants/lib/state");
|
|
64
63
|
//import sagas
|
|
65
64
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
65
|
+
var effects_3 = __importDefault(require("@aprilium/tripsm_constants/lib/effects"));
|
|
66
66
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
67
67
|
exports.reducers = {
|
|
68
68
|
passenger: state_1.passengerReducerFunction,
|
|
@@ -70,7 +70,7 @@ exports.reducers = {
|
|
|
70
70
|
};
|
|
71
71
|
exports.initialSagas = {
|
|
72
72
|
passenger: effects_2.default,
|
|
73
|
-
|
|
73
|
+
constants: effects_3.default
|
|
74
74
|
};
|
|
75
75
|
function setUrlConfig(coreApi, debugMode) {
|
|
76
76
|
if (debugMode === void 0) { debugMode = false; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aprilium/tripsm_global-states",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"build":"tsc"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@aprilium/tripsm_passenger": "^0.0.
|
|
15
|
+
"@aprilium/tripsm_passenger": "^0.0.38",
|
|
16
16
|
"@aprilium/tripsm_common": "^0.0.4",
|
|
17
|
-
"@aprilium/tripsm_constants": "^0.0.
|
|
17
|
+
"@aprilium/tripsm_constants": "^0.0.7",
|
|
18
18
|
"@types/react": "^17.0.0",
|
|
19
19
|
"axios": "^0.21.1",
|
|
20
20
|
"immer": "^9.0.15",
|