@frontegg/js 6.85.0 → 6.87.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.
@@ -95,7 +95,7 @@ export var FronteggApp = /*#__PURE__*/function () {
95
95
  break;
96
96
  }
97
97
  FronteggRestApi.FeatureFlags.set(mockFlagsList, _this.name);
98
- _context3.next = 14;
98
+ _context3.next = 15;
99
99
  break;
100
100
  case 4:
101
101
  _context3.prev = 4;
@@ -103,18 +103,21 @@ export var FronteggApp = /*#__PURE__*/function () {
103
103
  return FronteggRestApi.loadFeatureFlags();
104
104
  case 7:
105
105
  flags = _context3.sent;
106
+ if (_this.options.overrideFeatureFlags) {
107
+ Object.assign(flags, _this.options.overrideFeatureFlags);
108
+ }
106
109
  FronteggRestApi.FeatureFlags.set(flags, _this.name);
107
- _context3.next = 14;
110
+ _context3.next = 15;
108
111
  break;
109
- case 11:
110
- _context3.prev = 11;
112
+ case 12:
113
+ _context3.prev = 12;
111
114
  _context3.t0 = _context3["catch"](4);
112
115
  console.error('failed to get admin portal feature flags', _context3.t0);
113
- case 14:
116
+ case 15:
114
117
  case "end":
115
118
  return _context3.stop();
116
119
  }
117
- }, _callee3, null, [[4, 11]]);
120
+ }, _callee3, null, [[4, 12]]);
118
121
  }));
119
122
  this.updateLocalizationsSetter = function (localizationUpdateFn) {
120
123
  _this.updateLocalizations = localizationUpdateFn;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.85.0
1
+ /** @license Frontegg v6.87.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.
@@ -103,7 +103,7 @@ var FronteggApp = /*#__PURE__*/function () {
103
103
  break;
104
104
  }
105
105
  FronteggRestApi.FeatureFlags.set(_mockFlagsList.mockFlagsList, _this.name);
106
- _context3.next = 14;
106
+ _context3.next = 15;
107
107
  break;
108
108
  case 4:
109
109
  _context3.prev = 4;
@@ -111,18 +111,21 @@ var FronteggApp = /*#__PURE__*/function () {
111
111
  return FronteggRestApi.loadFeatureFlags();
112
112
  case 7:
113
113
  flags = _context3.sent;
114
+ if (_this.options.overrideFeatureFlags) {
115
+ Object.assign(flags, _this.options.overrideFeatureFlags);
116
+ }
114
117
  FronteggRestApi.FeatureFlags.set(flags, _this.name);
115
- _context3.next = 14;
118
+ _context3.next = 15;
116
119
  break;
117
- case 11:
118
- _context3.prev = 11;
120
+ case 12:
121
+ _context3.prev = 12;
119
122
  _context3.t0 = _context3["catch"](4);
120
123
  console.error('failed to get admin portal feature flags', _context3.t0);
121
- case 14:
124
+ case 15:
122
125
  case "end":
123
126
  return _context3.stop();
124
127
  }
125
- }, _callee3, null, [[4, 11]]);
128
+ }, _callee3, null, [[4, 12]]);
126
129
  }));
127
130
  this.updateLocalizationsSetter = function (localizationUpdateFn) {
128
131
  _this.updateLocalizations = localizationUpdateFn;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.85.0
1
+ /** @license Frontegg v6.87.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.85.0'
8
+ cdnVersion: '6.87.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.85.0",
3
+ "version": "6.87.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.85.0"
9
+ "@frontegg/types": "6.87.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [