@frontegg/js 6.75.0 → 6.76.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.75.0
1
+ /** @license Frontegg v6.76.0
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/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.75.0
1
+ /** @license Frontegg v6.76.0
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/node/version.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- cdnVersion: '6.75.0'
8
+ "cdnVersion": "6.76.0"
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "6.75.0",
3
+ "version": "6.76.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/types": "6.75.0"
9
+ "@frontegg/types": "6.76.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1177,7 +1177,7 @@ __webpack_require__.r(__webpack_exports__);
1177
1177
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1178
1178
  /* harmony export */ });
1179
1179
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1180
- cdnVersion: '6.75.0'
1180
+ "cdnVersion": "6.76.0"
1181
1181
  });
1182
1182
 
1183
1183
  /***/ }),
@@ -12452,12 +12452,13 @@ function* addUser({
12452
12452
  })
12453
12453
  }));
12454
12454
  try {
12455
+ var _roles$map;
12455
12456
  const res = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_6__.api.teams.addUser, body);
12456
12457
  const {
12457
12458
  roles
12458
12459
  } = res,
12459
12460
  userWithoutRoleIds = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(res, _excluded2);
12460
- const roleIds = roles.map(role => role.id);
12461
+ const roleIds = (_roles$map = roles == null ? void 0 : roles.map(role => role.id)) != null ? _roles$map : [];
12461
12462
  const newUser = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, userWithoutRoleIds, {
12462
12463
  roleIds
12463
12464
  });
@@ -18669,7 +18670,7 @@ __webpack_require__.r(__webpack_exports__);
18669
18670
  /* harmony export */ });
18670
18671
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
18671
18672
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
18672
- /** @license Frontegg v6.75.0
18673
+ /** @license Frontegg v6.76.0
18673
18674
  *
18674
18675
  * This source code is licensed under the MIT license found in the
18675
18676
  * LICENSE file in the root directory of this source tree.