@trycourier/react-hooks 7.1.2-internal.e42a3bd.0 → 7.2.1-internal.f925044.0
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/dist/inbox/reducer.js +2 -2
- package/package.json +4 -4
package/dist/inbox/reducer.js
CHANGED
|
@@ -147,7 +147,7 @@ var _default = function _default() {
|
|
|
147
147
|
|
|
148
148
|
case _fetchMessages.INBOX_FETCH_MESSAGES_DONE:
|
|
149
149
|
{
|
|
150
|
-
var _action$payload2, _state$messages, _action$payload$messa, _action$payload3, _action$payload4, _action$payload5, _action$payload6, _action$payload7;
|
|
150
|
+
var _action$payload2, _state$messages, _action$payload$messa, _action$payload3, _action$payload4, _action$meta, _action$payload5, _action$payload6, _action$payload7;
|
|
151
151
|
|
|
152
152
|
var newMessages = (_action$payload2 = action.payload) !== null && _action$payload2 !== void 0 && _action$payload2.appendMessages ? [].concat((0, _toConsumableArray2["default"])((_state$messages = state === null || state === void 0 ? void 0 : state.messages) !== null && _state$messages !== void 0 ? _state$messages : []), (0, _toConsumableArray2["default"])((_action$payload$messa = (_action$payload3 = action.payload) === null || _action$payload3 === void 0 ? void 0 : _action$payload3.messages) !== null && _action$payload$messa !== void 0 ? _action$payload$messa : [])) : (_action$payload4 = action.payload) === null || _action$payload4 === void 0 ? void 0 : _action$payload4.messages;
|
|
153
153
|
var newMessagesFiltered = newMessages === null || newMessages === void 0 ? void 0 : newMessages.filter(function (m) {
|
|
@@ -161,7 +161,7 @@ var _default = function _default() {
|
|
|
161
161
|
});
|
|
162
162
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
163
163
|
isLoading: false,
|
|
164
|
-
searchParams: action.meta.searchParams,
|
|
164
|
+
searchParams: (_action$meta = action.meta) === null || _action$meta === void 0 ? void 0 : _action$meta.searchParams,
|
|
165
165
|
lastMessagesFetched: new Date().getTime(),
|
|
166
166
|
messages: newMessagesFiltered,
|
|
167
167
|
pinned: (_action$payload5 = action.payload) !== null && _action$payload5 !== void 0 && _action$payload5.appendMessages ? state.pinned : sortPinned((_action$payload6 = action.payload) === null || _action$payload6 === void 0 ? void 0 : _action$payload6.pinned, state.brand),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trycourier/react-hooks",
|
|
3
|
-
"version": "7.1
|
|
3
|
+
"version": "7.2.1-internal.f925044.0+f925044",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "typings/index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"concat-md": "^0.3.5"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@trycourier/client-graphql": "^7.1
|
|
24
|
-
"@trycourier/core": "^7.1
|
|
23
|
+
"@trycourier/client-graphql": "^7.2.1-internal.f925044.0+f925044",
|
|
24
|
+
"@trycourier/core": "^7.2.1-internal.f925044.0+f925044",
|
|
25
25
|
"deep-extend": "^0.6.0",
|
|
26
26
|
"jwt-decode": "^4.0.0",
|
|
27
27
|
"rimraf": "^5.0.0"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
},
|
|
48
48
|
"./use-inbox": "./dist/inbox/use-inbox.js"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "f9250442472da01016b3deb8227f5dd3607193f1"
|
|
51
51
|
}
|