@aprilium/tripsm_global-states 0.0.62 → 0.0.64

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 CHANGED
@@ -12,6 +12,7 @@ import passengerSaga from '@aprilium/tripsm_passenger/lib/effects';
12
12
  import constantsSaga from '@aprilium/tripsm_constants/lib/effects';
13
13
  import TripSaga from '@aprilium/tripsm_trip/lib/effects';
14
14
  import groupSaga from '@aprilium/tripsm_trip-group/lib/effects';
15
+ import userSaga from '@aprilium/tripsm_user/lib/effects';
15
16
  export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
16
17
  export declare const reducers: {
17
18
  passenger: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
@@ -25,7 +26,7 @@ export declare const initialSagas: {
25
26
  constants: typeof constantsSaga;
26
27
  trip: typeof TripSaga;
27
28
  group: typeof groupSaga;
28
- user: typeof groupSaga;
29
+ user: typeof userSaga;
29
30
  };
30
31
  export type States = {
31
32
  passenger: passengerState;
@@ -36,7 +37,7 @@ export type States = {
36
37
  };
37
38
  export type StateName = 'passenger' | 'constants' | 'trip' | 'group' | 'user';
38
39
  export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
39
- export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof TripSaga | typeof groupSaga)[];
40
+ export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof userSaga | typeof TripSaga | typeof groupSaga)[];
40
41
  export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
41
42
  waitForRehydrate?: boolean): void;
42
43
  declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
package/lib/index.js CHANGED
@@ -59,6 +59,7 @@ 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
61
  var lib_3 = require("@aprilium/tripsm_passenger/lib");
62
+ var lib_4 = require("@aprilium/tripsm_user/lib");
62
63
  var state_1 = require("@aprilium/tripsm_passenger/lib/state");
63
64
  var state_2 = require("@aprilium/tripsm_constants/lib/state");
64
65
  var state_3 = require("@aprilium/tripsm_trip/lib/state");
@@ -69,7 +70,7 @@ var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"
69
70
  var effects_3 = __importDefault(require("@aprilium/tripsm_constants/lib/effects"));
70
71
  var effects_4 = __importDefault(require("@aprilium/tripsm_trip/lib/effects"));
71
72
  var effects_5 = __importDefault(require("@aprilium/tripsm_trip-group/lib/effects"));
72
- var effects_6 = __importDefault(require("@aprilium/tripsm_trip-group/lib/effects"));
73
+ var effects_6 = __importDefault(require("@aprilium/tripsm_user/lib/effects"));
73
74
  exports.sagaMiddleware = (0, redux_saga_1.default)();
74
75
  exports.reducers = {
75
76
  passenger: state_1.passengerReducerFunction,
@@ -99,6 +100,10 @@ function setUrlConfig(coreApi, debugMode) {
99
100
  CORE_BASE_URL: coreApi,
100
101
  DEBUG_MODE: debugMode
101
102
  });
103
+ lib_4.urlsConfig.setURls({
104
+ CORE_BASE_URL: coreApi,
105
+ DEBUG_MODE: debugMode
106
+ });
102
107
  }
103
108
  exports.setUrlConfig = setUrlConfig;
104
109
  exports.sagas = Object.keys(exports.initialSagas).map(function (key) { return exports.initialSagas[key]; });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aprilium/tripsm_global-states",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "description": "global states",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "@aprilium/tripsm_constants": "^0.0.11",
18
18
  "@aprilium/tripsm_trip": "^0.0.1",
19
19
  "@aprilium/tripsm_trip-group": "^0.0.1",
20
- "@aprilium/tripsm_user":"^0.0.3",
20
+ "@aprilium/tripsm_user":"^0.0.4",
21
21
  "@types/react": "^17.0.0",
22
22
  "axios": "^0.21.1",
23
23
  "immer": "^9.0.15",