@frontegg/redux-store 7.0.0-alpha.6 → 7.0.0-alpha.7

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.
@@ -166,7 +166,7 @@ export default ((store, api, sharedActions) => {
166
166
  user
167
167
  }) => {
168
168
  var _store$auth6, _store$auth6$applicat, _apps$filter;
169
- const [multiAppsFlag] = sharedActions.__getFeatureFlags(['multi-apps-admin-portal']);
169
+ const [multiAppsFlag] = await sharedActions.__getFeatureFlags(['multi-apps-admin-portal']);
170
170
  if (!multiAppsFlag) {
171
171
  return;
172
172
  }
@@ -192,7 +192,7 @@ export default ((store, api, sharedActions) => {
192
192
  shouldLoadApps,
193
193
  users
194
194
  }) => {
195
- const [multiAppsFlag] = sharedActions.__getFeatureFlags(['multi-apps-admin-portal']);
195
+ const [multiAppsFlag] = await sharedActions.__getFeatureFlags(['multi-apps-admin-portal']);
196
196
  if (!multiAppsFlag || !shouldLoadApps) {
197
197
  return users;
198
198
  }
@@ -194,6 +194,7 @@ export default ((store, api, sharedActions) => {
194
194
  });
195
195
  callback == null ? void 0 : callback(users);
196
196
  } catch (e) {
197
+ console.error('Failed to load users', e);
197
198
  actions.setTeamError({
198
199
  key: TeamStateKeys.USERS,
199
200
  value: errorHandler(e)
@@ -248,6 +249,7 @@ export default ((store, api, sharedActions) => {
248
249
  }
249
250
  });
250
251
  } catch (e) {
252
+ console.error('Failed to add user', e);
251
253
  actions.setTeamState({
252
254
  addUserDialogState: _extends({}, teamState.addUserDialogState, {
253
255
  loading: false,
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.0.0-alpha.6
1
+ /** @license Frontegg v7.0.0-alpha.7
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -173,7 +173,7 @@ var _default = (store, api, sharedActions) => {
173
173
  user
174
174
  }) => {
175
175
  var _store$auth6, _store$auth6$applicat, _apps$filter;
176
- const [multiAppsFlag] = sharedActions.__getFeatureFlags(['multi-apps-admin-portal']);
176
+ const [multiAppsFlag] = await sharedActions.__getFeatureFlags(['multi-apps-admin-portal']);
177
177
  if (!multiAppsFlag) {
178
178
  return;
179
179
  }
@@ -199,7 +199,7 @@ var _default = (store, api, sharedActions) => {
199
199
  shouldLoadApps,
200
200
  users
201
201
  }) => {
202
- const [multiAppsFlag] = sharedActions.__getFeatureFlags(['multi-apps-admin-portal']);
202
+ const [multiAppsFlag] = await sharedActions.__getFeatureFlags(['multi-apps-admin-portal']);
203
203
  if (!multiAppsFlag || !shouldLoadApps) {
204
204
  return users;
205
205
  }
@@ -201,6 +201,7 @@ var _default = (store, api, sharedActions) => {
201
201
  });
202
202
  callback == null ? void 0 : callback(users);
203
203
  } catch (e) {
204
+ console.error('Failed to load users', e);
204
205
  actions.setTeamError({
205
206
  key: _interfaces.TeamStateKeys.USERS,
206
207
  value: (0, _helpers.errorHandler)(e)
@@ -255,6 +256,7 @@ var _default = (store, api, sharedActions) => {
255
256
  }
256
257
  });
257
258
  } catch (e) {
259
+ console.error('Failed to add user', e);
258
260
  actions.setTeamState({
259
261
  addUserDialogState: (0, _extends2.default)({}, teamState.addUserDialogState, {
260
262
  loading: false,
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.0.0-alpha.6
1
+ /** @license Frontegg v7.0.0-alpha.7
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "7.0.0-alpha.6",
3
+ "version": "7.0.0-alpha.7",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",