@frontegg/js 6.184.0 → 6.185.0-alpha.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.
@@ -1,4 +1,3 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
2
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
3
  import _createClass from "@babel/runtime/helpers/esm/createClass";
@@ -7,7 +6,7 @@ import { createFronteggStore, getPermissionEntitlements as _getPermissionEntitle
7
6
  import { Metadata } from '@frontegg/types';
8
7
  import { formatName, restoreSearchParams } from '../utils';
9
8
  import { AppHolder } from '../AppHolder';
10
- import { fetch as FronteggFetch, ContextHolder, USE_ENTITLEMENTS_V2_ENDPOINT_FF } from '@frontegg/rest-api';
9
+ import { fetch as FronteggFetch, ContextHolder } from '@frontegg/rest-api';
11
10
  import { RequestSource } from '@frontegg/rest-api';
12
11
  import * as FronteggRestApi from '@frontegg/rest-api';
13
12
  import * as FronteggTypes from '@frontegg/types';
@@ -160,13 +159,9 @@ export var FronteggApp = /*#__PURE__*/function () {
160
159
  custom: customAttributes,
161
160
  jwt: user
162
161
  };
163
- var _this$queryFeatureFla = _this.queryFeatureFlags([USE_ENTITLEMENTS_V2_ENDPOINT_FF]),
164
- _this$queryFeatureFla2 = _slicedToArray(_this$queryFeatureFla, 1),
165
- useEntitlementsV2 = _this$queryFeatureFla2[0];
166
162
  return {
167
163
  entitlements: entitlements,
168
- attributes: attributes,
169
- isV2: useEntitlementsV2
164
+ attributes: attributes
170
165
  };
171
166
  };
172
167
  var appName = formatName(name);
@@ -497,9 +492,8 @@ export var FronteggApp = /*#__PURE__*/function () {
497
492
  function getFeatureEntitlements(key, customAttributes) {
498
493
  var _this$getEntitlements = this.getEntitlementsQueryData(customAttributes),
499
494
  entitlements = _this$getEntitlements.entitlements,
500
- attributes = _this$getEntitlements.attributes,
501
- isV2 = _this$getEntitlements.isV2;
502
- return _getFeatureEntitlements(entitlements, key, attributes, isV2);
495
+ attributes = _this$getEntitlements.attributes;
496
+ return _getFeatureEntitlements(entitlements, key, attributes);
503
497
  }
504
498
 
505
499
  /**
@@ -513,9 +507,8 @@ export var FronteggApp = /*#__PURE__*/function () {
513
507
  value: function getPermissionEntitlements(key, customAttributes) {
514
508
  var _this$getEntitlements2 = this.getEntitlementsQueryData(customAttributes),
515
509
  entitlements = _this$getEntitlements2.entitlements,
516
- attributes = _this$getEntitlements2.attributes,
517
- isV2 = _this$getEntitlements2.isV2;
518
- return _getPermissionEntitlements(entitlements, key, attributes, isV2);
510
+ attributes = _this$getEntitlements2.attributes;
511
+ return _getPermissionEntitlements(entitlements, key, attributes);
519
512
  }
520
513
 
521
514
  /**
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.184.0
1
+ /** @license Frontegg v6.185.0-alpha.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.
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.FronteggApp = void 0;
9
9
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
10
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
12
11
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
12
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
@@ -167,13 +166,9 @@ var FronteggApp = /*#__PURE__*/function () {
167
166
  custom: customAttributes,
168
167
  jwt: user
169
168
  };
170
- var _this$queryFeatureFla = _this.queryFeatureFlags([FronteggRestApi.USE_ENTITLEMENTS_V2_ENDPOINT_FF]),
171
- _this$queryFeatureFla2 = (0, _slicedToArray2["default"])(_this$queryFeatureFla, 1),
172
- useEntitlementsV2 = _this$queryFeatureFla2[0];
173
169
  return {
174
170
  entitlements: entitlements,
175
- attributes: attributes,
176
- isV2: useEntitlementsV2
171
+ attributes: attributes
177
172
  };
178
173
  };
179
174
  var appName = (0, _utils.formatName)(name);
@@ -504,9 +499,8 @@ var FronteggApp = /*#__PURE__*/function () {
504
499
  function getFeatureEntitlements(key, customAttributes) {
505
500
  var _this$getEntitlements = this.getEntitlementsQueryData(customAttributes),
506
501
  entitlements = _this$getEntitlements.entitlements,
507
- attributes = _this$getEntitlements.attributes,
508
- isV2 = _this$getEntitlements.isV2;
509
- return (0, _reduxStore.getFeatureEntitlements)(entitlements, key, attributes, isV2);
502
+ attributes = _this$getEntitlements.attributes;
503
+ return (0, _reduxStore.getFeatureEntitlements)(entitlements, key, attributes);
510
504
  }
511
505
 
512
506
  /**
@@ -520,9 +514,8 @@ var FronteggApp = /*#__PURE__*/function () {
520
514
  value: function getPermissionEntitlements(key, customAttributes) {
521
515
  var _this$getEntitlements2 = this.getEntitlementsQueryData(customAttributes),
522
516
  entitlements = _this$getEntitlements2.entitlements,
523
- attributes = _this$getEntitlements2.attributes,
524
- isV2 = _this$getEntitlements2.isV2;
525
- return (0, _reduxStore.getPermissionEntitlements)(entitlements, key, attributes, isV2);
517
+ attributes = _this$getEntitlements2.attributes;
518
+ return (0, _reduxStore.getPermissionEntitlements)(entitlements, key, attributes);
526
519
  }
527
520
 
528
521
  /**
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.184.0
1
+ /** @license Frontegg v6.185.0-alpha.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.184.0'
8
+ cdnVersion: '6.185.0-alpha.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.184.0",
3
+ "version": "6.185.0-alpha.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.184.0"
9
+ "@frontegg/types": "6.185.0-alpha.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [