@reactables/examples 0.4.3-alpha.0 → 0.4.3-alpha.1

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -13
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -142,19 +142,16 @@ var RxEventTickets = function (getPriceApi) {
142
142
  var payload = _a.payload;
143
143
  return (__assign(__assign({}, state), { controls: payload, calculating: true }));
144
144
  },
145
- effects: function () { return ({
146
- // Add effect for fetching price on controlChange
147
- effects: [
148
- function (controlChange$) {
149
- return controlChange$.pipe(operators.switchMap(function (_a) {
150
- var _b = _a.payload, event = _b.selectedEvent, qty = _b.qty;
151
- return getPriceApi({ event: event, qty: qty });
152
- }),
153
- // Map success response to success action
154
- operators.map(function (price) { return ({ type: 'fetchPriceSuccess', payload: price }); }));
155
- },
156
- ]
157
- }); }
145
+ effects: [
146
+ function (controlChange$) {
147
+ return controlChange$.pipe(operators.switchMap(function (_a) {
148
+ var _b = _a.payload, event = _b.selectedEvent, qty = _b.qty;
149
+ return getPriceApi({ event: event, qty: qty });
150
+ }),
151
+ // Map success response to success action
152
+ operators.map(function (price) { return ({ type: 'fetchPriceSuccess', payload: price }); }));
153
+ },
154
+ ]
158
155
  },
159
156
  fetchPriceSuccess: function (state, _a) {
160
157
  var payload = _a.payload;
package/package.json CHANGED
@@ -14,10 +14,10 @@
14
14
  "author": "David Lai",
15
15
  "license": "ISC",
16
16
  "dependencies": {
17
- "@reactables/core": "^0.4.3-alpha.0"
17
+ "@reactables/core": "^0.4.3-alpha.1"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "rxjs": "^6.0.0 || ^7.0.0"
21
21
  },
22
- "version": "0.4.3-alpha.0"
22
+ "version": "0.4.3-alpha.1"
23
23
  }